Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001085/0.001085, allocations: 172.9 kB / 492.3 MB, free: 0.6133 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.564/1.564, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009556/0.0009556, allocations: 94.7 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.598e-05/2.6e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2625, allocations: 142.4 MB / 1.213 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9732/1.236, allocations: 149.9 MB / 1.359 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003337/1.236, allocations: 71.48 kB / 1.359 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02413/1.26, allocations: 5.546 MB / 1.364 GB, free: 34.49 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.963e-06/1.26, allocations: 0 / 1.364 GB, free: 34.49 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.774e-05/1.26, allocations: 3.844 kB / 1.364 GB, free: 34.49 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.0009317/1.261, allocations: 0.4938 MB / 1.365 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/1.261, allocations: 11.72 kB / 1.365 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.346e-05/1.261, allocations: 46.94 kB / 1.365 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/1.262, allocations: 23.5 kB / 1.365 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/1.262, allocations: 236.8 kB / 1.365 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.259e-05/1.262, allocations: 14.41 kB / 1.365 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/1.262, allocations: 24.92 kB / 1.365 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004554/1.263, allocations: 183 kB / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/1.263, allocations: 0 / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/1.263, allocations: 10.02 kB / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/1.263, allocations: 3.969 kB / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/1.263, allocations: 83.55 kB / 1.365 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008568/1.264, allocations: 486.7 kB / 1.366 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/1.264, allocations: 128.6 kB / 1.366 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/1.264, allocations: 97.58 kB / 1.366 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/1.264, allocations: 192 / 1.366 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/1.265, allocations: 216.3 kB / 1.366 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 2.585e-06/1.265, allocations: 0 / 1.366 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0008522/1.266, allocations: 350 kB / 1.367 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/1.266, allocations: 61.12 kB / 1.367 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/1.266, allocations: 138 kB / 1.367 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.857e-05/1.266, allocations: 44.27 kB / 1.367 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.853e-05/1.266, allocations: 106.4 kB / 1.367 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.452e-05/1.266, allocations: 71.31 kB / 1.367 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/1.266, allocations: 10.38 kB / 1.367 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001225/1.266, allocations: 328.3 kB / 1.367 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003755/1.267, allocations: 129.8 kB / 1.368 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/1.267, allocations: 200.3 kB / 1.368 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/1.268, allocations: 197 kB / 1.368 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/1.268, allocations: 0 / 1.368 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001057/1.269, allocations: 481 kB / 1.368 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.374e-05/1.269, allocations: 73.81 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/1.269, allocations: 0 / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/1.269, allocations: 7.797 kB / 1.368 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/1.269, allocations: 62.5 kB / 1.368 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/1.269, allocations: 3.844 kB / 1.368 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/1.27, allocations: 95.98 kB / 1.369 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-05/1.27, allocations: 21.83 kB / 1.369 GB, free: 32.33 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.0001856/1.27, allocations: 156.4 kB / 1.369 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/1.27, allocations: 18.06 kB / 1.369 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/1.27, allocations: 12.72 kB / 1.369 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/1.27, allocations: 7.797 kB / 1.369 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.27, allocations: 4 kB / 1.369 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/1.27, allocations: 2.766 kB / 1.369 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009614/1.271, allocations: 0.652 MB / 1.369 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.271, allocations: 7.984 kB / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/1.271, allocations: 6.766 kB / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/1.271, allocations: 3.875 kB / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/1.271, allocations: 17.47 kB / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/1.271, allocations: 0 / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.271, allocations: 0 / 1.369 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007439/1.272, allocations: 458 kB / 1.37 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/1.272, allocations: 104.5 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/1.272, allocations: 17.45 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/1.273, allocations: 14.38 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/1.273, allocations: 16.53 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/1.273, allocations: 17.67 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.807e-05/1.273, allocations: 102.1 kB / 1.37 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2e-07/1.273, allocations: 0 / 1.37 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000592/1.273, allocations: 73.59 kB / 1.37 GB, free: 31.53 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.001194/1.275, allocations: 1.019 MB / 1.371 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008289/1.275, allocations: 437.2 kB / 1.372 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.275, allocations: 0 / 1.372 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002488/1.276, allocations: 120.1 kB / 1.372 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/1.276, allocations: 34.14 kB / 1.372 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009515/1.277, allocations: 274.8 kB / 1.372 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/1.278, allocations: 0.728 MB / 1.373 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.767e-05/1.278, allocations: 27.92 kB / 1.373 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.621e-05/1.278, allocations: 49.27 kB / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.278, allocations: 0 / 1.373 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/1.297, allocations: 4.849 MB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.297, allocations: 164.7 kB / 1.378 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.945, allocations: 10.23 kB / 1.378 GB, free: 29.21 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat does not exist to compare? outputFormat=mat