Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 86.56 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 223.3 MB / 240 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.817/2.817, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004028, allocations: 11.94 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7572, allocations: 153.8 MB / 1.022 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001168/0.7585, allocations: 0.5675 MB / 1.023 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002176/0.7607, allocations: 1.292 MB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.7608, allocations: 0 / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.7609, allocations: 11.88 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.7611, allocations: 23.84 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009378/0.7621, allocations: 247.2 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003714/0.7624, allocations: 231.4 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.7626, allocations: 33.08 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003036/0.7629, allocations: 103.8 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.7632, allocations: 103.6 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.963e-05/0.7633, allocations: 12 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.7634, allocations: 27.98 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.7635, allocations: 35.89 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.7636, allocations: 49.64 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.7639, allocations: 177.6 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.7639, allocations: 0 / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.074e-06/0.764, allocations: 0 / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.764, allocations: 4 kB / 1.025 GB, free: 13.17 MB / 0.7794 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.0011/0.7651, allocations: 0.4908 MB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.7651, allocations: 8.562 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.7652, allocations: 27.8 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.7656, allocations: 230.7 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.006e-05/0.7656, allocations: 12 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.7657, allocations: 23.98 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.7661, allocations: 192.8 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.7661, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.7662, allocations: 7.984 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.7662, allocations: 4 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.7664, allocations: 96.11 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007019/0.7671, allocations: 472.7 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.7674, allocations: 142.6 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.7676, allocations: 93 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.7676, allocations: 4 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003617/0.768, allocations: 207.9 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.768, allocations: 0 / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0009074/0.7689, allocations: 460.3 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.769, allocations: 55.41 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001545/0.7691, allocations: 143.3 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.746e-05/0.7692, allocations: 49.67 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.25e-05/0.7693, allocations: 100.6 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.307e-05/0.7694, allocations: 71.17 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.7694, allocations: 8 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.7696, allocations: 334.8 kB / 1.028 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/0.7699, allocations: 144.7 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.7703, allocations: 209.2 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.7706, allocations: 220.4 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.7706, allocations: 4 kB / 1.029 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008605/0.7715, allocations: 0.4946 MB / 1.029 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.7716, allocations: 67.41 kB / 1.029 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.7716, allocations: 3.984 kB / 1.029 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.7716, allocations: 4 kB / 1.029 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.7719, allocations: 47.92 kB / 1.029 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.7719, allocations: 8.109 kB / 1.029 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.7723, allocations: 104.7 kB / 1.03 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.163e-05/0.7723, allocations: 19.98 kB / 1.03 GB, free: 8.395 MB / 0.7794 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 (39): * Single equations (assignments): 35 * Array equations: 2 * 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.0001887/0.7725, allocations: 169.8 kB / 1.03 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.7726, allocations: 15.81 kB / 1.03 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.7726, allocations: 17.81 kB / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.7726, allocations: 0 / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.7726, allocations: 4 kB / 1.03 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.7726, allocations: 7.984 kB / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008165/0.7735, allocations: 0.6558 MB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.7735, allocations: 0 / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.652e-05/0.7735, allocations: 11.98 kB / 1.03 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.7735, allocations: 0 / 1.03 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.7736, allocations: 15.98 kB / 1.03 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.7736, allocations: 3.938 kB / 1.03 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7736, allocations: 0 / 1.03 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006082/0.7742, allocations: 463.2 kB / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.217e-05/0.7743, allocations: 92.86 kB / 1.031 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.283e-05/0.7743, allocations: 15.98 kB / 1.031 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.7745, allocations: 23.92 kB / 1.031 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.7745, allocations: 15.97 kB / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.7746, allocations: 19.98 kB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.669e-05/0.7747, allocations: 101.5 kB / 1.031 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of sort global known variables: time 9e-08/0.7747, allocations: 0 / 1.031 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003517/0.775, allocations: 71.83 kB / 1.031 GB, free: 6.617 MB / 0.7794 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[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002165/0.7752, allocations: 141.4 kB / 1.031 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007379/0.776, allocations: 456.9 kB / 1.032 GB, free: 6 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.776, allocations: 0 / 1.032 GB, free: 6 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002167/0.7762, allocations: 115.9 kB / 1.032 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.7766, allocations: 43.86 kB / 1.032 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006158/0.7772, allocations: 335.1 kB / 1.032 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.7775, allocations: 0.7207 MB / 1.033 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.346e-05/0.7776, allocations: 17.55 kB / 1.033 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.97e-05/0.7777, allocations: 27.44 kB / 1.033 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7777, allocations: 0 / 1.033 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of Templates: time 0.006985/0.7847, allocations: 3.259 MB / 1.036 GB, free: 1.477 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches