Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.715/1.715, allocations: 289.7 MB / 302.2 MB, free: 2.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001205/0.001205, allocations: 176.6 kB / 371.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.1 MB / 0.6309 GB, free: 11.77 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008172/0.0008171, allocations: 87.36 kB / 0.745 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.958e-05, allocations: 7.984 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2775, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8166/1.094, allocations: 139.6 MB / 1.116 GB, free: 44.33 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/1.094, allocations: 73.08 kB / 1.116 GB, free: 44.3 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01471/1.109, allocations: 5.507 MB / 1.122 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.052e-06/1.109, allocations: 0 / 1.122 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.045e-05/1.109, allocations: 4 kB / 1.122 GB, free: 41.2 MB / 0.7448 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.0009035/1.11, allocations: 499.6 kB / 1.122 GB, free: 40.7 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/1.11, allocations: 15.45 kB / 1.122 GB, free: 40.68 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.219e-05/1.11, allocations: 45.75 kB / 1.122 GB, free: 40.64 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/1.11, allocations: 26.03 kB / 1.122 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/1.111, allocations: 234.2 kB / 1.122 GB, free: 40.39 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.956e-05/1.111, allocations: 15.59 kB / 1.122 GB, free: 40.38 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/1.111, allocations: 16 kB / 1.122 GB, free: 40.37 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/1.111, allocations: 187.9 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/1.111, allocations: 1.062 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/1.111, allocations: 3.469 kB / 1.123 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/1.111, allocations: 8 kB / 1.123 GB, free: 40.26 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/1.111, allocations: 82.53 kB / 1.123 GB, free: 40.21 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/1.112, allocations: 491.9 kB / 1.123 GB, free: 39.85 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.112, allocations: 134.4 kB / 1.123 GB, free: 39.76 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/1.112, allocations: 89.44 kB / 1.123 GB, free: 39.7 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/1.113, allocations: 4.188 kB / 1.123 GB, free: 39.7 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/1.113, allocations: 212.1 kB / 1.124 GB, free: 39.57 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=28): time 2.825e-06/1.113, allocations: 4 kB / 1.124 GB, free: 39.56 MB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.0006526/1.113, allocations: 359.9 kB / 1.124 GB, free: 39.32 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/1.114, allocations: 58.73 kB / 1.124 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/1.114, allocations: 135.6 kB / 1.124 GB, free: 39.13 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/1.114, allocations: 43.66 kB / 1.124 GB, free: 39.09 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.93e-05/1.114, allocations: 106.2 kB / 1.124 GB, free: 39 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/1.114, allocations: 66.7 kB / 1.124 GB, free: 38.95 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/1.114, allocations: 14.38 kB / 1.124 GB, free: 38.94 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001397/1.114, allocations: 332.3 kB / 1.125 GB, free: 38.62 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/1.114, allocations: 128.9 kB / 1.125 GB, free: 38.55 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/1.115, allocations: 197 kB / 1.125 GB, free: 38.39 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/1.115, allocations: 205.8 kB / 1.125 GB, free: 38.25 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/1.115, allocations: 0.8438 kB / 1.125 GB, free: 38.25 MB / 0.7448 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007927/1.116, allocations: 477.9 kB / 1.126 GB, free: 37.91 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.199e-05/1.116, allocations: 68.33 kB / 1.126 GB, free: 37.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.116, allocations: 4 kB / 1.126 GB, free: 37.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/1.116, allocations: 0 / 1.126 GB, free: 37.84 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/1.116, allocations: 69.89 kB / 1.126 GB, free: 37.78 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/1.116, allocations: 4 kB / 1.126 GB, free: 37.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004029/1.117, allocations: 94.52 kB / 1.126 GB, free: 37.71 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.719e-05/1.117, allocations: 23.27 kB / 1.126 GB, free: 37.69 MB / 0.7448 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.0001642/1.117, allocations: 151.3 kB / 1.126 GB, free: 37.55 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/1.117, allocations: 23.09 kB / 1.126 GB, free: 37.53 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/1.117, allocations: 11.78 kB / 1.126 GB, free: 37.52 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/1.117, allocations: 5.078 kB / 1.126 GB, free: 37.52 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/1.117, allocations: 3.953 kB / 1.126 GB, free: 37.52 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/1.117, allocations: 3.234 kB / 1.126 GB, free: 37.52 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000636/1.118, allocations: 0.6556 MB / 1.127 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.118, allocations: 0 / 1.127 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.901e-05/1.118, allocations: 12 kB / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.715e-05/1.118, allocations: 0 / 1.127 GB, free: 36.97 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/1.118, allocations: 14.78 kB / 1.127 GB, free: 36.96 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/1.118, allocations: 3.953 kB / 1.127 GB, free: 36.96 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.118, allocations: 4 kB / 1.127 GB, free: 36.96 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/1.118, allocations: 460.4 kB / 1.127 GB, free: 36.61 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/1.119, allocations: 93.67 kB / 1.127 GB, free: 36.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.517e-05/1.119, allocations: 17.94 kB / 1.127 GB, free: 36.49 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/1.119, allocations: 11.47 kB / 1.127 GB, free: 36.48 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.41e-05/1.119, allocations: 26.86 kB / 1.127 GB, free: 36.47 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/1.119, allocations: 17.58 kB / 1.127 GB, free: 36.46 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.822e-05/1.119, allocations: 103.7 kB / 1.127 GB, free: 36.37 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.119, allocations: 0.6562 kB / 1.127 GB, free: 36.37 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003833/1.119, allocations: 74.83 kB / 1.128 GB, free: 36.31 MB / 0.7448 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.0008564/1.12, allocations: 1.026 MB / 1.129 GB, free: 35.39 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005165/1.121, allocations: 435.6 kB / 1.129 GB, free: 35.05 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.121, allocations: 0 / 1.129 GB, free: 35.05 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/1.121, allocations: 114.4 kB / 1.129 GB, free: 34.98 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/1.121, allocations: 35.44 kB / 1.129 GB, free: 34.96 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000668/1.122, allocations: 275.1 kB / 1.129 GB, free: 34.73 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/1.122, allocations: 0.7217 MB / 1.13 GB, free: 34 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.625e-05/1.122, allocations: 29.59 kB / 1.13 GB, free: 33.97 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/1.122, allocations: 46.23 kB / 1.13 GB, free: 33.96 MB / 0.7448 GB Notification: Performance of SimCode: time 4.21e-07/1.122, allocations: 0 / 1.13 GB, free: 33.96 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/1.144, allocations: 4.849 MB / 1.135 GB, free: 31.28 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/1.145, allocations: 172.6 kB / 1.135 GB, free: 31.05 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.823, allocations: 0 / 1.135 GB, free: 31.05 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)