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.408/2.408, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.00124/0.001241, allocations: 168.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.0009494/0.0009494, allocations: 95.55 kB / 0.9318 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.296e-05/3.308e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2984, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9503/1.249, allocations: 150.7 MB / 1.366 GB, free: 3.418 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/1.249, allocations: 75.33 kB / 1.366 GB, free: 3.379 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01596/1.265, allocations: 5.55 MB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.492e-06/1.265, allocations: 0 / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.386e-05/1.265, allocations: 8 kB / 1.371 GB, free: 14.64 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.0007537/1.266, allocations: 497.4 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/1.266, allocations: 12.03 kB / 1.372 GB, free: 14.1 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.341e-05/1.266, allocations: 45.47 kB / 1.372 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.108e-05/1.266, allocations: 27.77 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/1.266, allocations: 239.6 kB / 1.372 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/1.266, allocations: 11.55 kB / 1.372 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/1.266, allocations: 23.11 kB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/1.267, allocations: 183 kB / 1.372 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/1.267, allocations: 0 / 1.372 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/1.267, allocations: 7.734 kB / 1.372 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/1.267, allocations: 4 kB / 1.372 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/1.267, allocations: 83.44 kB / 1.373 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/1.268, allocations: 492.9 kB / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/1.268, allocations: 128.8 kB / 1.373 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/1.268, allocations: 91.91 kB / 1.373 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/1.268, allocations: 192 / 1.373 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/1.268, allocations: 211.6 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/1.268, allocations: 4 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0006166/1.269, allocations: 361 kB / 1.374 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/1.269, allocations: 59.34 kB / 1.374 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/1.269, allocations: 132 kB / 1.374 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.667e-05/1.269, allocations: 52.44 kB / 1.374 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.069e-05/1.269, allocations: 101.6 kB / 1.374 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/1.269, allocations: 63.81 kB / 1.374 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/1.27, allocations: 11.12 kB / 1.374 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001172/1.27, allocations: 333.9 kB / 1.375 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/1.27, allocations: 132.6 kB / 1.375 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/1.27, allocations: 193.2 kB / 1.375 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/1.27, allocations: 202.3 kB / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.27, allocations: 0 / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007124/1.271, allocations: 473.8 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/1.271, allocations: 75.28 kB / 1.376 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/1.271, allocations: 4 kB / 1.376 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/1.271, allocations: 0 / 1.376 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/1.272, allocations: 63.78 kB / 1.376 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/1.272, allocations: 7.984 kB / 1.376 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000399/1.272, allocations: 94.06 kB / 1.376 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/1.272, allocations: 23.92 kB / 1.376 GB, free: 10.65 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.0001426/1.272, allocations: 155.7 kB / 1.376 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.013e-05/1.272, allocations: 23.8 kB / 1.376 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/1.272, allocations: 13.55 kB / 1.376 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.272, allocations: 4 kB / 1.376 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.272, allocations: 0 / 1.376 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/1.272, allocations: 0 / 1.376 GB, free: 10.46 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007056/1.273, allocations: 0.6543 MB / 1.377 GB, free: 9.852 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/1.273, allocations: 0 / 1.377 GB, free: 9.852 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.113e-05/1.273, allocations: 12 kB / 1.377 GB, free: 9.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/1.273, allocations: 7.938 kB / 1.377 GB, free: 9.832 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/1.273, allocations: 11.36 kB / 1.377 GB, free: 9.824 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/1.273, allocations: 7.938 kB / 1.377 GB, free: 9.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.273, allocations: 4 kB / 1.377 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005412/1.274, allocations: 464 kB / 1.377 GB, free: 9.418 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/1.274, allocations: 92.86 kB / 1.377 GB, free: 9.309 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.467e-05/1.274, allocations: 19.88 kB / 1.377 GB, free: 9.293 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/1.274, allocations: 15.86 kB / 1.377 GB, free: 9.281 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/1.274, allocations: 19.97 kB / 1.377 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/1.274, allocations: 15.86 kB / 1.377 GB, free: 9.25 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.643e-05/1.274, allocations: 104.5 kB / 1.377 GB, free: 9.156 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.274, allocations: 0 / 1.377 GB, free: 9.156 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003423/1.275, allocations: 75.23 kB / 1.377 GB, free: 9.09 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.0008944/1.275, allocations: 1.016 MB / 1.378 GB, free: 8.125 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005984/1.276, allocations: 436.7 kB / 1.379 GB, free: 7.773 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.276, allocations: 0 / 1.379 GB, free: 7.773 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/1.276, allocations: 115.3 kB / 1.379 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/1.277, allocations: 36.42 kB / 1.379 GB, free: 7.664 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006727/1.277, allocations: 277.5 kB / 1.379 GB, free: 7.391 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/1.277, allocations: 0.7207 MB / 1.38 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.055e-05/1.278, allocations: 22.08 kB / 1.38 GB, free: 6.621 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-05/1.278, allocations: 49.42 kB / 1.38 GB, free: 6.598 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.278, allocations: 0 / 1.38 GB, free: 6.598 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/1.293, allocations: 4.868 MB / 1.385 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/1.294, allocations: 177.8 kB / 1.385 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/2.998, allocations: 3.5 kB / 1.385 GB, free: 1.699 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