Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.81/1.81, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.801/1.801, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005125/0.0005128, allocations: 14.22 kB / 0.6737 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2301, allocations: 116.3 MB / 0.7872 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001057/0.2312, allocations: 477.5 kB / 0.7877 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2326, allocations: 1.123 MB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.32e-05/0.2327, allocations: 4 kB / 0.7888 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.2327, allocations: 3.938 kB / 0.7888 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.677e-05/0.2328, allocations: 7.984 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.2333, allocations: 115.3 kB / 0.7889 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001084/0.2334, allocations: 63.86 kB / 0.789 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.2335, allocations: 16.19 kB / 0.789 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.2336, allocations: 43.89 kB / 0.789 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.582e-05/0.2337, allocations: 39.83 kB / 0.7891 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.2337, allocations: 4 kB / 0.7891 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.15e-05/0.2338, allocations: 19.98 kB / 0.7891 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.2338, allocations: 11.98 kB / 0.7891 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.336e-05/0.2339, allocations: 37.64 kB / 0.7891 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.234, allocations: 80.08 kB / 0.7892 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.234, allocations: 4 kB / 0.7892 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.874e-06/0.234, allocations: 0 / 0.7892 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.917e-06/0.2341, allocations: 4 kB / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006011/0.2347, allocations: 408.7 kB / 0.7896 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2347, allocations: 8.031 kB / 0.7896 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.2348, allocations: 38.56 kB / 0.7897 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.2348, allocations: 7.906 kB / 0.7897 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2349, allocations: 178.9 kB / 0.7898 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.235, allocations: 15.88 kB / 0.7899 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.235, allocations: 12 kB / 0.7899 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.2352, allocations: 73.66 kB / 0.7899 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.2352, allocations: 0 / 0.7899 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.2352, allocations: 4 kB / 0.7899 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2353, allocations: 0 / 0.7899 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.2355, allocations: 63.94 kB / 0.79 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.236, allocations: 348.6 kB / 0.7903 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.2362, allocations: 66.55 kB / 0.7904 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.2362, allocations: 0 / 0.7904 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.2364, allocations: 99.52 kB / 0.7905 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.2365, allocations: 0 / 0.7905 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004432/0.2369, allocations: 157.5 kB / 0.7906 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.237, allocations: 67.34 kB / 0.7907 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.125e-05/0.2371, allocations: 113.8 kB / 0.7908 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.2371, allocations: 29.7 kB / 0.7908 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.2372, allocations: 100 kB / 0.7909 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.2372, allocations: 19.75 kB / 0.791 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.2372, allocations: 8 kB / 0.791 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.2373, allocations: 318.8 kB / 0.7913 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.2375, allocations: 59.97 kB / 0.7913 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.2376, allocations: 97.05 kB / 0.7914 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.2378, allocations: 89.67 kB / 0.7915 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2378, allocations: 0 / 0.7915 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004197/0.2383, allocations: 223.1 kB / 0.7917 GB, free: 7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.2383, allocations: 37.69 kB / 0.7918 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2383, allocations: 0 / 0.7918 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2383, allocations: 4 kB / 0.7918 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.2385, allocations: 19.92 kB / 0.7918 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2385, allocations: 0 / 0.7918 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.2387, allocations: 63.17 kB / 0.7918 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.2388, allocations: 8 kB / 0.7918 GB, free: 6.867 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.2389, allocations: 117.8 kB / 0.792 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.2389, allocations: 8 kB / 0.792 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004511/0.2394, allocations: 142.2 kB / 0.7921 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2394, allocations: 0 / 0.7921 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.2394, allocations: 3.938 kB / 0.7921 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.2394, allocations: 0 / 0.7921 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006227/0.2401, allocations: 398.4 kB / 0.7925 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.2401, allocations: 4 kB / 0.7925 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-05/0.2402, allocations: 11.94 kB / 0.7925 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2402, allocations: 4 kB / 0.7925 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.2402, allocations: 3.984 kB / 0.7925 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2402, allocations: 0 / 0.7925 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.2402, allocations: 7.953 kB / 0.7925 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.2406, allocations: 223.5 kB / 0.7927 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.2407, allocations: 85.02 kB / 0.7928 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.2407, allocations: 0 / 0.7928 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.395e-05/0.2408, allocations: 11.98 kB / 0.7928 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.2409, allocations: 3.984 kB / 0.7928 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.2409, allocations: 7.953 kB / 0.7928 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.534e-05/0.2409, allocations: 91.27 kB / 0.7929 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.241, allocations: 0 / 0.7929 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002793/0.2412, allocations: 28 kB / 0.7929 GB, free: 5.633 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000741/0.242, allocations: 0.7669 MB / 0.7937 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004297/0.2424, allocations: 183.3 kB / 0.7939 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2424, allocations: 320 / 0.7939 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.2426, allocations: 55.89 kB / 0.7939 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.2429, allocations: 7.984 kB / 0.7939 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.2441, allocations: 1.166 MB / 0.7951 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.2444, allocations: 0.6965 MB / 0.7957 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.284e-05/0.2445, allocations: 4 kB / 0.7958 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.81e-05/0.2445, allocations: 23.42 kB / 0.7958 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of SimCode: time 1.834e-06/0.2445, allocations: 4 kB / 0.7958 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3801/0.6246, allocations: 2.183 MB / 0.7979 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002903/0.625, allocations: 188 kB / 0.7981 GB, free: 344 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/2.161, allocations: 0.75 kB / 0.7981 GB, free: 344 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) Environment - environmentSimulation: