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: 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_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.771/1.771, allocations: 387.2 MB / 394.5 MB, free: 13.57 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.0009816/0.0009816, allocations: 185.2 kB / 487 MB, free: 5.309 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.101/1.101, allocations: 221.3 MB / 0.7819 GB, free: 1.316 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.0008545/0.0008543, allocations: 112.5 kB / 0.9213 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.741e-06/5.771e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1836, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4921/0.6757, allocations: 149.1 MB / 1.351 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.6759, allocations: 69.23 kB / 1.351 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01443/0.6903, allocations: 5.198 MB / 1.356 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.6904, allocations: 2.469 kB / 1.356 GB, free: 15.61 MB / 0.8073 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.0005208/0.6909, allocations: 0.489 MB / 1.356 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.6909, allocations: 9.125 kB / 1.356 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.576e-05/0.691, allocations: 22.77 kB / 1.357 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.6913, allocations: 244.1 kB / 1.357 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.6914, allocations: 11.44 kB / 1.357 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-05/0.6914, allocations: 22.38 kB / 1.357 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001573/0.6916, allocations: 71.31 kB / 1.357 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.6918, allocations: 179.1 kB / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.6919, allocations: 0 / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.6919, allocations: 7.125 kB / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.6919, allocations: 3.25 kB / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005897/0.6925, allocations: 454.3 kB / 1.357 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.6927, allocations: 130.2 kB / 1.358 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.6928, allocations: 86.14 kB / 1.358 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.6928, allocations: 2.406 kB / 1.358 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.6931, allocations: 195.5 kB / 1.358 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.6931, allocations: 0 / 1.358 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28): time 0.0004586/0.6936, allocations: 238.6 kB / 1.358 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.391e-05/0.6936, allocations: 64.38 kB / 1.358 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.746e-05/0.6937, allocations: 126.8 kB / 1.358 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.6937, allocations: 39.5 kB / 1.358 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.6938, allocations: 96.45 kB / 1.358 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.163e-05/0.6938, allocations: 69.59 kB / 1.358 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.6939, allocations: 3.562 kB / 1.358 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.091e-05/0.6939, allocations: 331.7 kB / 1.359 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.6941, allocations: 120.7 kB / 1.359 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.6944, allocations: 184.1 kB / 1.359 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/0.6948, allocations: 167.7 kB / 1.359 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6949, allocations: 0 / 1.359 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008003/0.6957, allocations: 409.2 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.6957, allocations: 5.625 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.6957, allocations: 1.719 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.6957, allocations: 4.375 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.696, allocations: 61.92 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.696, allocations: 3.953 kB / 1.36 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004133/0.6964, allocations: 94.89 kB / 1.36 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.123e-05/0.6965, allocations: 22.8 kB / 1.36 GB, free: 13.71 MB / 0.8073 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.0001143/0.6966, allocations: 144.7 kB / 1.36 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.6966, allocations: 18.16 kB / 1.36 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.6967, allocations: 17.73 kB / 1.36 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6967, allocations: 2.906 kB / 1.36 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6967, allocations: 4.906 kB / 1.36 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.6967, allocations: 1.359 kB / 1.36 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005108/0.6972, allocations: 0.5113 MB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6972, allocations: 0 / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.081e-05/0.6973, allocations: 8.406 kB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.6973, allocations: 1.125 kB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.6973, allocations: 21.38 kB / 1.361 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6973, allocations: 1.594 kB / 1.361 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6973, allocations: 0 / 1.361 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003935/0.6977, allocations: 345.8 kB / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/0.6978, allocations: 101.5 kB / 1.361 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.6978, allocations: 16.88 kB / 1.361 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.698, allocations: 7.203 kB / 1.361 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/0.698, allocations: 25.11 kB / 1.361 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.6981, allocations: 19.39 kB / 1.361 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.252e-05/0.6981, allocations: 95.69 kB / 1.361 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003523/0.6985, allocations: 62.62 kB / 1.361 GB, free: 12.95 MB / 0.8073 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.0001824/0.6987, allocations: 136.5 kB / 1.361 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0005541/0.6992, allocations: 343.9 kB / 1.362 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6992, allocations: 4.062 kB / 1.362 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.6994, allocations: 112.6 kB / 1.362 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.6996, allocations: 25.61 kB / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.7, allocations: 202.9 kB / 1.362 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.7002, allocations: 0.7483 MB / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/0.7002, allocations: 0 / 1.363 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of Templates: time 0.005669/0.7059, allocations: 3.48 MB / 1.366 GB, free: 9.344 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches