Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") [: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 10.0.0-master/package.mo): time 1.702/1.702, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009286/0.0009286, allocations: 169.4 kB / 490.8 MB, free: 1.926 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.059/1.059, allocations: 221.4 MB / 0.7863 GB, free: 13.64 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.0008164/0.0008164, allocations: 88.67 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.506e-06, allocations: 7.938 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.174, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.6414, allocations: 149.9 MB / 1.358 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/0.6416, allocations: 70.25 kB / 1.358 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.008001/0.6496, allocations: 2.962 MB / 1.361 GB, free: 16.97 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.6497, allocations: 2.156 kB / 1.361 GB, free: 16.97 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004183/0.6501, allocations: 430.6 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.6501, allocations: 13.12 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.6502, allocations: 16.12 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.442e-05/0.6503, allocations: 181 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.6503, allocations: 7.5 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.6503, allocations: 9.688 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.171e-05/0.6504, allocations: 28.84 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.6505, allocations: 67.42 kB / 1.362 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.6505, allocations: 1.219 kB / 1.362 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.6505, allocations: 1 kB / 1.362 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.6505, allocations: 5.188 kB / 1.362 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.6512, allocations: 396.5 kB / 1.362 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.387e-05/0.6512, allocations: 33.89 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.909e-05/0.6513, allocations: 15.23 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.6513, allocations: 0.9375 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.589e-05/0.6514, allocations: 76.69 kB / 1.362 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.6514, allocations: 0 / 1.362 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0001641/0.6515, allocations: 86.27 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.77e-05/0.6516, allocations: 53.44 kB / 1.362 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.64e-05/0.6516, allocations: 127.7 kB / 1.362 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.6517, allocations: 27.64 kB / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.6517, allocations: 105.4 kB / 1.363 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.6518, allocations: 28.39 kB / 1.363 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.6518, allocations: 1.219 kB / 1.363 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.951e-05/0.6519, allocations: 322.3 kB / 1.363 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.61e-05/0.652, allocations: 36.94 kB / 1.363 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.183e-05/0.6521, allocations: 123.1 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.6523, allocations: 72.41 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6524, allocations: 4.938 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004354/0.6528, allocations: 198.1 kB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.738e-06/0.6528, allocations: 7.156 kB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.6528, allocations: 3 kB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.6528, allocations: 4 kB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.653, allocations: 32.39 kB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.653, allocations: 8.344 kB / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.6532, allocations: 57.62 kB / 1.363 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.6532, allocations: 15.28 kB / 1.363 GB, free: 31.12 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * 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 6.865e-05/0.6533, allocations: 109.5 kB / 1.364 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.6533, allocations: 14.39 kB / 1.364 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.6534, allocations: 21.45 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6534, allocations: 3.562 kB / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.6534, allocations: 0 / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.6534, allocations: 0 / 1.364 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.6537, allocations: 345.9 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.6537, allocations: 1.453 kB / 1.364 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.6539, allocations: 23.7 kB / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.6539, allocations: 1.188 kB / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.6539, allocations: 2.719 kB / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.6539, allocations: 1.344 kB / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6539, allocations: 0 / 1.364 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001903/0.6541, allocations: 208.6 kB / 1.364 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.6541, allocations: 89.14 kB / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.6541, allocations: 1.062 kB / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.6542, allocations: 17.3 kB / 1.364 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.6543, allocations: 9.953 kB / 1.364 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.6543, allocations: 5.656 kB / 1.364 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.767e-05/0.6544, allocations: 100.5 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002597/0.6546, allocations: 28.7 kB / 1.364 GB, free: 30.39 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001368/0.6548, allocations: 129.4 kB / 1.364 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001881/0.655, allocations: 120 kB / 1.365 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.655, allocations: 1.781 kB / 1.365 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.906e-05/0.655, allocations: 34.52 kB / 1.365 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.6552, allocations: 14.42 kB / 1.365 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.6556, allocations: 179 kB / 1.365 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.6558, allocations: 0.7266 MB / 1.366 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6558, allocations: 0 / 1.366 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.003524/0.6594, allocations: 1.564 MB / 1.367 GB, free: 29.3 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches