Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") [: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.739/1.739, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.000935/0.000935, allocations: 185.2 kB / 490.8 MB, free: 1.973 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.087/1.087, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0008292/0.0008292, allocations: 98.25 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.384e-06/7.394e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1709, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4606/0.6315, allocations: 151.3 MB / 1.359 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001761/0.6317, allocations: 75.38 kB / 1.359 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02491/0.6567, allocations: 10.45 MB / 1.37 GB, free: 16.82 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.351e-05/0.6567, allocations: 18.38 kB / 1.37 GB, free: 16.82 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001034/0.6578, allocations: 0.8131 MB / 1.37 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.965e-05/0.6578, allocations: 8.969 kB / 1.37 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.6579, allocations: 74.97 kB / 1.37 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.6584, allocations: 409.8 kB / 1.371 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.6584, allocations: 17.33 kB / 1.371 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.069e-05/0.6585, allocations: 48.39 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004717/0.659, allocations: 294.2 kB / 1.371 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.6596, allocations: 426 kB / 1.372 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.6596, allocations: 0 / 1.372 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.6597, allocations: 3.328 kB / 1.372 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.6597, allocations: 12.19 kB / 1.372 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.6616, allocations: 1.572 MB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.6619, allocations: 234.2 kB / 1.373 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000437/0.6623, allocations: 282 kB / 1.374 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.6624, allocations: 7.172 kB / 1.374 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.6627, allocations: 222.1 kB / 1.374 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 1.663e-06/0.6627, allocations: 7.938 kB / 1.374 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0005401/0.6632, allocations: 369.2 kB / 1.374 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.6633, allocations: 110.2 kB / 1.374 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.6635, allocations: 287.9 kB / 1.375 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.6636, allocations: 32.94 kB / 1.375 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.6637, allocations: 221.7 kB / 1.375 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.748e-05/0.6638, allocations: 166.5 kB / 1.375 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.6638, allocations: 2.781 kB / 1.375 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.664, allocations: 359.2 kB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.6643, allocations: 171.7 kB / 1.376 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003323/0.6646, allocations: 262.8 kB / 1.376 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000488/0.6651, allocations: 214.2 kB / 1.376 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.6651, allocations: 1.125 kB / 1.376 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009317/0.666, allocations: 0.538 MB / 1.377 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000224/0.6663, allocations: 0.6155 MB / 1.377 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.6663, allocations: 1.094 kB / 1.377 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.6663, allocations: 8.578 kB / 1.377 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.6667, allocations: 104.9 kB / 1.377 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.6667, allocations: 3.656 kB / 1.377 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.6673, allocations: 128.9 kB / 1.377 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.432e-05/0.6673, allocations: 25.08 kB / 1.377 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-06/0.6673, allocations: 7.969 kB / 1.377 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008535/0.6682, allocations: 467.5 kB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.6682, allocations: 2.031 kB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.72e-06/0.6682, allocations: 3.812 kB / 1.378 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.6686, allocations: 86 kB / 1.378 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.6686, allocations: 4.703 kB / 1.378 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.6691, allocations: 115.5 kB / 1.378 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.6691, allocations: 24.44 kB / 1.378 GB, free: 29.41 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: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * 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.000112/0.6692, allocations: 129.5 kB / 1.378 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-05/0.6693, allocations: 44.16 kB / 1.378 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005759/0.6699, allocations: 392.6 kB / 1.379 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.6699, allocations: 6.562 kB / 1.379 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6699, allocations: 7.938 kB / 1.379 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.6699, allocations: 2.438 kB / 1.379 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.6712, allocations: 1.053 MB / 1.38 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.6712, allocations: 0.9375 kB / 1.38 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000406/0.6716, allocations: 99.84 kB / 1.38 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.6716, allocations: 4.359 kB / 1.38 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.6717, allocations: 10.22 kB / 1.38 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.6717, allocations: 4.047 kB / 1.38 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.6717, allocations: 1.281 kB / 1.38 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00082/0.6725, allocations: 0.7696 MB / 1.381 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.6726, allocations: 129 kB / 1.381 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.6726, allocations: 4.703 kB / 1.381 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.6729, allocations: 25.91 kB / 1.381 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.673, allocations: 34.52 kB / 1.381 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.673, allocations: 18.62 kB / 1.381 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001891/0.6732, allocations: 221.9 kB / 1.381 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005519/0.6737, allocations: 208.3 kB / 1.381 GB, free: 28.25 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001623/0.6739, allocations: 132.1 kB / 1.381 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009546/0.6749, allocations: 0.7931 MB / 1.382 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6749, allocations: 0 / 1.382 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.6751, allocations: 193.8 kB / 1.382 GB, free: 27.97 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004635/0.6756, allocations: 77.11 kB / 1.382 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.6768, allocations: 0.7421 MB / 1.383 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005003/0.6773, allocations: 0.9218 MB / 1.384 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.6773, allocations: 0 / 1.384 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of Templates: time 0.01171/0.689, allocations: 8.085 MB / 1.392 GB, free: 23.49 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches