Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.165/2.165, allocations: 390.5 MB / 398 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 191.9 kB / 491.2 MB, free: 1.574 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.649/1.649, allocations: 221.5 MB / 0.7868 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009899/0.0009895, allocations: 99.81 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.078e-05/2.082e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2832, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.189/1.472, allocations: 150 MB / 1.359 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/1.472, allocations: 71.88 kB / 1.359 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01603/1.488, allocations: 5.522 MB / 1.364 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.474e-06/1.488, allocations: 0 / 1.364 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.36e-05/1.488, allocations: 4 kB / 1.364 GB, free: 32.62 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006514/1.489, allocations: 498.7 kB / 1.365 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/1.489, allocations: 15.5 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/1.489, allocations: 24.78 kB / 1.365 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/1.49, allocations: 237.6 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/1.49, allocations: 6.859 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/1.49, allocations: 22.66 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001565/1.49, allocations: 73.78 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/1.49, allocations: 174.1 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/1.49, allocations: 1.922 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/1.49, allocations: 5.578 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/1.49, allocations: 0 / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/1.491, allocations: 451.8 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/1.491, allocations: 124.3 kB / 1.366 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/1.491, allocations: 82.22 kB / 1.366 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/1.491, allocations: 7.969 kB / 1.366 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002581/1.491, allocations: 200.8 kB / 1.366 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.874e-06/1.491, allocations: 0 / 1.366 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0005349/1.492, allocations: 353 kB / 1.367 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/1.492, allocations: 57.86 kB / 1.367 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.434e-05/1.492, allocations: 128.8 kB / 1.367 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/1.492, allocations: 40.64 kB / 1.367 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.635e-05/1.492, allocations: 110.1 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/1.492, allocations: 64.92 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/1.492, allocations: 3.844 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00013/1.492, allocations: 330.2 kB / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/1.493, allocations: 121.2 kB / 1.367 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/1.493, allocations: 180.3 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000429/1.493, allocations: 155 kB / 1.368 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.493, allocations: 0 / 1.368 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007002/1.494, allocations: 395.2 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/1.494, allocations: 78.42 kB / 1.368 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/1.494, allocations: 0 / 1.368 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/1.494, allocations: 3.844 kB / 1.368 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/1.494, allocations: 66 kB / 1.368 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/1.494, allocations: 7.812 kB / 1.368 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/1.495, allocations: 91.7 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/1.495, allocations: 21.97 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * 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.0001473/1.495, allocations: 154.9 kB / 1.368 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003932/1.495, allocations: 335.2 kB / 1.369 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/1.495, allocations: 11.62 kB / 1.369 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/1.496, allocations: 17.2 kB / 1.369 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/1.496, allocations: 3.875 kB / 1.369 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/1.496, allocations: 2.906 kB / 1.369 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.496, allocations: 0 / 1.369 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005823/1.496, allocations: 0.6071 MB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.496, allocations: 0 / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.676e-05/1.496, allocations: 15.08 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/1.496, allocations: 3.953 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/1.496, allocations: 14.08 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.496, allocations: 7.812 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.496, allocations: 0 / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004226/1.497, allocations: 437.6 kB / 1.37 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.455e-05/1.497, allocations: 92.55 kB / 1.37 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/1.497, allocations: 27.8 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/1.497, allocations: 6.797 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/1.497, allocations: 20.33 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/1.497, allocations: 20.59 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.276e-05/1.497, allocations: 96.69 kB / 1.37 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.497, allocations: 0 / 1.37 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003442/1.497, allocations: 64.28 kB / 1.37 GB, free: 29.85 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0007657/1.498, allocations: 1.01 MB / 1.371 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004593/1.499, allocations: 410.5 kB / 1.372 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/1.499, allocations: 0 / 1.372 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/1.499, allocations: 111.5 kB / 1.372 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/1.499, allocations: 33.38 kB / 1.372 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006433/1.5, allocations: 257.6 kB / 1.372 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/1.5, allocations: 0.7234 MB / 1.373 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.672e-05/1.5, allocations: 23.28 kB / 1.373 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.492e-05/1.5, allocations: 49.22 kB / 1.373 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.5, allocations: 0 / 1.373 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/1.528, allocations: 4.411 MB / 1.377 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002574/1.529, allocations: 160.4 kB / 1.377 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/3.395, allocations: 0 / 1.377 GB, free: 27.68 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat does not exist to compare? outputFormat=mat