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.362/2.362, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001532/0.001531, allocations: 186.9 kB / 498.1 MB, free: 5.754 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.598/1.598, allocations: 223.2 MB / 0.7948 GB, free: 18.95 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.0009048/0.0009048, allocations: 96.31 kB / 0.9346 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 9.688 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2798, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.4657, allocations: 149.9 MB / 1.369 GB, free: 3.355 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.4661, allocations: 71.95 kB / 1.369 GB, free: 3.285 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01682/0.4829, allocations: 5.566 MB / 1.375 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.924e-06/0.483, allocations: 4 kB / 1.375 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.37e-05/0.483, allocations: 4 kB / 1.375 GB, free: 13.7 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.0008978/0.4839, allocations: 0.4994 MB / 1.375 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.484, allocations: 12.03 kB / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.075e-05/0.484, allocations: 42.55 kB / 1.375 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.491e-05/0.4841, allocations: 23.77 kB / 1.375 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.4845, allocations: 242.9 kB / 1.376 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/0.4846, allocations: 32.14 kB / 1.376 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.4847, allocations: 16 kB / 1.376 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.4851, allocations: 194.2 kB / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.4851, allocations: 0 / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.4851, allocations: 11.98 kB / 1.376 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.4851, allocations: 4 kB / 1.376 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.4854, allocations: 96.58 kB / 1.376 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007676/0.4861, allocations: 481.3 kB / 1.376 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.4864, allocations: 152.2 kB / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.4865, allocations: 192 / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.4868, allocations: 211.4 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.4869, allocations: 0 / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of matching and sorting (n=28): time 0.0008968/0.4878, allocations: 473.4 kB / 1.377 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.4878, allocations: 63.39 kB / 1.377 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.488, allocations: 131.6 kB / 1.377 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/0.488, allocations: 41.7 kB / 1.377 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.4881, allocations: 104.6 kB / 1.378 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.543e-05/0.4882, allocations: 67.19 kB / 1.378 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.4882, allocations: 8 kB / 1.378 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.4883, allocations: 330.8 kB / 1.378 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.4887, allocations: 148.3 kB / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.489, allocations: 204.8 kB / 1.378 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.4893, allocations: 212.7 kB / 1.379 GB, free: 9.699 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4894, allocations: 4 kB / 1.379 GB, free: 9.695 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000889/0.4902, allocations: 494.7 kB / 1.379 GB, free: 9.195 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.82e-05/0.4903, allocations: 71.39 kB / 1.379 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.4903, allocations: 3.953 kB / 1.379 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.4904, allocations: 4 kB / 1.379 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.4906, allocations: 63.91 kB / 1.379 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4907, allocations: 8.109 kB / 1.379 GB, free: 9.035 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/0.4911, allocations: 95.72 kB / 1.379 GB, free: 8.941 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.4911, allocations: 19.98 kB / 1.379 GB, free: 8.922 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.0001844/0.4913, allocations: 175.7 kB / 1.379 GB, free: 8.742 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.4914, allocations: 15.81 kB / 1.379 GB, free: 8.727 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.4914, allocations: 13.88 kB / 1.379 GB, free: 8.711 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.4914, allocations: 7.953 kB / 1.379 GB, free: 8.703 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4915, allocations: 4 kB / 1.379 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.4915, allocations: 3.984 kB / 1.379 GB, free: 8.695 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008525/0.4923, allocations: 0.674 MB / 1.38 GB, free: 7.965 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4923, allocations: 3.938 kB / 1.38 GB, free: 7.961 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.055e-05/0.4924, allocations: 15.92 kB / 1.38 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.4924, allocations: 3.953 kB / 1.38 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.4924, allocations: 11.98 kB / 1.38 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4925, allocations: 7.984 kB / 1.38 GB, free: 7.922 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4925, allocations: 0 / 1.38 GB, free: 7.922 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/0.4931, allocations: 472.3 kB / 1.381 GB, free: 7.445 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.4932, allocations: 96.8 kB / 1.381 GB, free: 7.332 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.4933, allocations: 19.94 kB / 1.381 GB, free: 7.312 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.4934, allocations: 11.98 kB / 1.381 GB, free: 7.301 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.4935, allocations: 19.97 kB / 1.381 GB, free: 7.281 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.4935, allocations: 19.98 kB / 1.381 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.741e-05/0.4936, allocations: 100.3 kB / 1.381 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4936, allocations: 0 / 1.381 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003709/0.494, allocations: 68 kB / 1.381 GB, free: 7.098 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.001107/0.4951, allocations: 1.046 MB / 1.382 GB, free: 6.027 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007189/0.4958, allocations: 458.5 kB / 1.382 GB, free: 5.555 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4958, allocations: 4.25 kB / 1.382 GB, free: 5.551 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.4961, allocations: 119.9 kB / 1.383 GB, free: 5.434 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.4964, allocations: 31.92 kB / 1.383 GB, free: 5.402 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.4977, allocations: 1.509 MB / 1.384 GB, free: 3.82 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.498, allocations: 0.721 MB / 1.385 GB, free: 3.07 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.4981, allocations: 22.12 kB / 1.385 GB, free: 3.051 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.154e-05/0.4982, allocations: 51.42 kB / 1.385 GB, free: 3 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.4982, allocations: 0 / 1.385 GB, free: 3 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.5157, allocations: 4.809 MB / 1.389 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.516, allocations: 196.2 kB / 1.39 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.246, allocations: 3.938 kB / 1.39 GB, free: 14.11 MB / 0.9011 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