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.259/2.259, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001123/0.001122, allocations: 188.8 kB / 487.4 MB, free: 5.055 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.605/1.605, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009114/0.0009114, allocations: 87.91 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.934e-05/1.957e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2383, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9029/1.141, allocations: 149.2 MB / 1.352 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/1.142, allocations: 70.06 kB / 1.352 GB, free: 18.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01578/1.157, allocations: 5.514 MB / 1.357 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.963e-06/1.157, allocations: 0 / 1.357 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.281e-05/1.157, allocations: 3.844 kB / 1.357 GB, free: 33.52 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.0006949/1.158, allocations: 0.4921 MB / 1.358 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/1.158, allocations: 15.69 kB / 1.358 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/1.158, allocations: 24.25 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/1.159, allocations: 234.4 kB / 1.358 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/1.159, allocations: 11.06 kB / 1.358 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/1.159, allocations: 18.84 kB / 1.358 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001635/1.159, allocations: 73.48 kB / 1.358 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/1.159, allocations: 176.6 kB / 1.358 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/1.159, allocations: 0 / 1.358 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/1.159, allocations: 3.141 kB / 1.358 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/1.159, allocations: 7.828 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006065/1.16, allocations: 446.9 kB / 1.359 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/1.16, allocations: 133.8 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/1.16, allocations: 82.95 kB / 1.359 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/1.16, allocations: 4.156 kB / 1.359 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/1.16, allocations: 204.4 kB / 1.359 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 2.034e-06/1.16, allocations: 0 / 1.359 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0005868/1.161, allocations: 348.3 kB / 1.359 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/1.161, allocations: 56.84 kB / 1.359 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/1.161, allocations: 130.6 kB / 1.36 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.588e-05/1.161, allocations: 38.27 kB / 1.36 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/1.161, allocations: 104.7 kB / 1.36 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/1.161, allocations: 71.06 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/1.161, allocations: 3.844 kB / 1.36 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001521/1.162, allocations: 332.9 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/1.162, allocations: 118.5 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/1.162, allocations: 182.4 kB / 1.36 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004395/1.163, allocations: 157.3 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.163, allocations: 3.844 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006773/1.163, allocations: 392.7 kB / 1.361 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/1.163, allocations: 72.84 kB / 1.361 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/1.163, allocations: 5.297 kB / 1.361 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/1.163, allocations: 0 / 1.361 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002439/1.164, allocations: 61.84 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/1.164, allocations: 7.797 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/1.164, allocations: 94.83 kB / 1.361 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/1.164, allocations: 23.19 kB / 1.361 GB, free: 31.55 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.0001531/1.164, allocations: 146.8 kB / 1.361 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004051/1.165, allocations: 334.4 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/1.165, allocations: 17.38 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/1.165, allocations: 13.25 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/1.165, allocations: 11.73 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/1.165, allocations: 0 / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/1.165, allocations: 1.406 kB / 1.362 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005745/1.165, allocations: 0.6062 MB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/1.165, allocations: 5.875 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.66e-05/1.165, allocations: 8.906 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-05/1.165, allocations: 3.844 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/1.165, allocations: 13.28 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/1.165, allocations: 0 / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/1.165, allocations: 1.359 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004328/1.166, allocations: 437.5 kB / 1.363 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/1.166, allocations: 100.5 kB / 1.363 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.472e-05/1.166, allocations: 23.38 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/1.166, allocations: 11.53 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/1.166, allocations: 17.33 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/1.166, allocations: 22.28 kB / 1.363 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.417e-05/1.166, allocations: 99.92 kB / 1.363 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.166, allocations: 0 / 1.363 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003682/1.167, allocations: 65.67 kB / 1.363 GB, free: 30.74 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.000837/1.168, allocations: 1.008 MB / 1.364 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004741/1.168, allocations: 409.9 kB / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/1.168, allocations: 0 / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/1.168, allocations: 109.2 kB / 1.365 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/1.168, allocations: 30.75 kB / 1.365 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006307/1.169, allocations: 256.9 kB / 1.365 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/1.169, allocations: 0.7248 MB / 1.366 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.73e-05/1.169, allocations: 23.27 kB / 1.366 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/1.17, allocations: 48.5 kB / 1.366 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.17, allocations: 0 / 1.366 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/1.192, allocations: 4.418 MB / 1.37 GB, free: 28.74 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/1.192, allocations: 154.5 kB / 1.37 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.886, allocations: 0 / 1.37 GB, free: 28.55 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