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.437/2.437, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001466/0.001466, allocations: 175.9 kB / 0.4901 GB, free: 2.234 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.798/1.798, allocations: 223.1 MB / 0.7992 GB, free: 15.69 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.0008985/0.0008984, allocations: 90.95 kB / 0.9396 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003639, allocations: 9.312 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3029, allocations: 143 MB / 1.229 GB, free: 85.37 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1938/0.4968, allocations: 150.7 MB / 1.376 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.4971, allocations: 71.95 kB / 1.377 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.5139, allocations: 5.578 MB / 1.382 GB, free: 8.785 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.613e-06/0.514, allocations: 0 / 1.382 GB, free: 8.785 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.514, allocations: 0 / 1.382 GB, free: 8.785 MB / 0.8855 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.000736/0.5147, allocations: 0.5033 MB / 1.382 GB, free: 8.219 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.5148, allocations: 12.56 kB / 1.382 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.105e-05/0.5148, allocations: 46.53 kB / 1.383 GB, free: 8.152 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.5149, allocations: 27.77 kB / 1.383 GB, free: 8.125 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.5153, allocations: 244.3 kB / 1.383 GB, free: 7.848 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.5153, allocations: 12.23 kB / 1.383 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.5154, allocations: 23.98 kB / 1.383 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004317/0.5158, allocations: 191.4 kB / 1.383 GB, free: 7.621 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.5159, allocations: 4 kB / 1.383 GB, free: 7.617 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.5159, allocations: 7.984 kB / 1.383 GB, free: 7.609 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.5159, allocations: 8 kB / 1.383 GB, free: 7.602 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.5161, allocations: 95.45 kB / 1.383 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007337/0.5169, allocations: 481.2 kB / 1.384 GB, free: 6.988 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.5172, allocations: 143.1 kB / 1.384 GB, free: 6.84 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.5172, allocations: 4.188 kB / 1.384 GB, free: 6.836 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003664/0.5176, allocations: 219.2 kB / 1.384 GB, free: 6.609 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=28): time 2.044e-06/0.5176, allocations: 0 / 1.384 GB, free: 6.609 MB / 0.8855 GB Notification: Performance of matching and sorting (n=28): time 0.0008993/0.5185, allocations: 466.2 kB / 1.384 GB, free: 6.148 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.5185, allocations: 59.41 kB / 1.384 GB, free: 6.078 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.5187, allocations: 133.9 kB / 1.385 GB, free: 5.941 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.5187, allocations: 41.7 kB / 1.385 GB, free: 5.895 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.505e-05/0.5188, allocations: 104.6 kB / 1.385 GB, free: 5.789 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.5189, allocations: 67.23 kB / 1.385 GB, free: 5.723 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.5189, allocations: 16 kB / 1.385 GB, free: 5.707 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5191, allocations: 326.8 kB / 1.385 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003104/0.5194, allocations: 144.3 kB / 1.385 GB, free: 5.234 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.5197, allocations: 204.8 kB / 1.385 GB, free: 5.012 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.5201, allocations: 208.8 kB / 1.386 GB, free: 4.797 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.227e-06/0.5201, allocations: 4 kB / 1.386 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008357/0.5209, allocations: 0.4909 MB / 1.386 GB, free: 4.285 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.819e-05/0.521, allocations: 71.39 kB / 1.386 GB, free: 4.203 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.521, allocations: 7.953 kB / 1.386 GB, free: 4.195 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.5211, allocations: 4 kB / 1.386 GB, free: 4.191 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.5213, allocations: 63.84 kB / 1.386 GB, free: 4.129 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.5213, allocations: 4 kB / 1.386 GB, free: 4.125 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.5218, allocations: 95.72 kB / 1.386 GB, free: 4.031 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.5218, allocations: 19.98 kB / 1.386 GB, free: 4.012 MB / 0.8855 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 () * Number of clocked 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.0001777/0.522, allocations: 169.8 kB / 1.387 GB, free: 3.836 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.5221, allocations: 15.81 kB / 1.387 GB, free: 3.82 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.116e-05/0.5221, allocations: 21.94 kB / 1.387 GB, free: 3.797 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.5221, allocations: 7.953 kB / 1.387 GB, free: 3.789 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.5221, allocations: 0 / 1.387 GB, free: 3.789 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.5221, allocations: 3.938 kB / 1.387 GB, free: 3.785 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008231/0.523, allocations: 0.6781 MB / 1.387 GB, free: 3.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.523, allocations: 7.984 kB / 1.387 GB, free: 3.043 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.64e-05/0.523, allocations: 8 kB / 1.387 GB, free: 3.035 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.523, allocations: 3.953 kB / 1.387 GB, free: 3.031 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.5231, allocations: 15.97 kB / 1.387 GB, free: 3.016 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.5231, allocations: 4 kB / 1.387 GB, free: 3.012 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.5231, allocations: 3.938 kB / 1.387 GB, free: 3.008 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006479/0.5238, allocations: 467.1 kB / 1.388 GB, free: 2.535 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.5238, allocations: 88.95 kB / 1.388 GB, free: 2.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.5239, allocations: 23.92 kB / 1.388 GB, free: 2.406 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.524, allocations: 12 kB / 1.388 GB, free: 2.395 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.5241, allocations: 15.97 kB / 1.388 GB, free: 2.379 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.5241, allocations: 19.97 kB / 1.388 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.541e-05/0.5242, allocations: 104.9 kB / 1.388 GB, free: 2.258 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5242, allocations: 4 kB / 1.388 GB, free: 2.254 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003671/0.5246, allocations: 71.98 kB / 1.388 GB, free: 2.184 MB / 0.8855 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]) * Number of clocked states: 0 () * 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.001013/0.5256, allocations: 1.036 MB / 1.389 GB, free: 1.121 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006753/0.5263, allocations: 454.5 kB / 1.389 GB, free: 0.6523 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.5263, allocations: 0 / 1.389 GB, free: 0.6523 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002224/0.5265, allocations: 131.9 kB / 1.39 GB, free: 0.5234 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.5268, allocations: 30.81 kB / 1.39 GB, free: 0.4961 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.5281, allocations: 1.509 MB / 1.391 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.5284, allocations: 0.7249 MB / 1.392 GB, free: 14.15 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 7.764e-05/0.5285, allocations: 21.95 kB / 1.392 GB, free: 14.13 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.155e-05/0.5286, allocations: 47.36 kB / 1.392 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of SimCode: time 3.01e-07/0.5286, allocations: 0 / 1.392 GB, free: 14.09 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.547, allocations: 4.815 MB / 1.397 GB, free: 9.469 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/0.5474, allocations: 199.2 kB / 1.397 GB, free: 9.223 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.732/2.279, allocations: 0 / 1.397 GB, free: 9.223 MB / 0.9011 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