Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.77/1.77, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009577/0.0009577, allocations: 173.3 kB / 487 MB, free: 5.332 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.13/1.13, allocations: 221.3 MB / 0.7819 GB, free: 1.336 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.0008171/0.0008171, allocations: 105.5 kB / 0.9213 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.486e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1832, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5102/0.6934, allocations: 150.5 MB / 1.352 GB, free: 15.78 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.6937, allocations: 78.31 kB / 1.352 GB, free: 15.78 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02703/0.7207, allocations: 10.43 MB / 1.362 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.166e-05/0.7208, allocations: 19.75 kB / 1.362 GB, free: 13.74 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.0009513/0.7217, allocations: 0.8199 MB / 1.363 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.7218, allocations: 11.97 kB / 1.363 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.7219, allocations: 75.16 kB / 1.363 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.7223, allocations: 406.5 kB / 1.364 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.7224, allocations: 23.98 kB / 1.364 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.312e-05/0.7224, allocations: 39.98 kB / 1.364 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004519/0.7229, allocations: 296.4 kB / 1.364 GB, free: 12.22 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/0.7234, allocations: 421.9 kB / 1.364 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.7235, allocations: 0 / 1.364 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.7235, allocations: 7.984 kB / 1.364 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.7235, allocations: 15.91 kB / 1.365 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.7252, allocations: 1.567 MB / 1.366 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.7255, allocations: 229.7 kB / 1.366 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003916/0.7259, allocations: 282.5 kB / 1.367 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.7259, allocations: 12.03 kB / 1.367 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.7262, allocations: 223 kB / 1.367 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=53): time 1.633e-06/0.7262, allocations: 0 / 1.367 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of matching and sorting (n=53): time 0.0005123/0.7267, allocations: 369.8 kB / 1.367 GB, free: 9.844 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.7267, allocations: 107.2 kB / 1.367 GB, free: 9.711 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.727, allocations: 291.2 kB / 1.367 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.727, allocations: 40.62 kB / 1.368 GB, free: 9.438 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.7271, allocations: 209.4 kB / 1.368 GB, free: 9.25 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.7272, allocations: 172.5 kB / 1.368 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/0.7273, allocations: 4 kB / 1.368 GB, free: 9.102 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.7273, allocations: 351.7 kB / 1.368 GB, free: 8.766 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.7276, allocations: 174.5 kB / 1.368 GB, free: 8.672 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.7279, allocations: 267.4 kB / 1.369 GB, free: 8.457 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/0.7283, allocations: 220.6 kB / 1.369 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.7283, allocations: 0 / 1.369 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008568/0.7292, allocations: 0.532 MB / 1.369 GB, free: 7.922 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.26e-05/0.7293, allocations: 0.6239 MB / 1.37 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.7293, allocations: 0 / 1.37 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.7293, allocations: 8 kB / 1.37 GB, free: 7.254 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.7298, allocations: 99.5 kB / 1.37 GB, free: 7.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.7298, allocations: 8 kB / 1.37 GB, free: 7.152 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000516/0.7303, allocations: 127.6 kB / 1.37 GB, free: 7.027 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.7304, allocations: 27.67 kB / 1.37 GB, free: 7.004 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.448e-06/0.7304, allocations: 8 kB / 1.37 GB, free: 6.996 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007939/0.7312, allocations: 465.2 kB / 1.371 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.7312, allocations: 0 / 1.371 GB, free: 6.676 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.959e-06/0.7312, allocations: 4 kB / 1.371 GB, free: 6.672 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.7315, allocations: 86.81 kB / 1.371 GB, free: 6.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.7315, allocations: 4.156 kB / 1.371 GB, free: 6.586 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.732, allocations: 115.6 kB / 1.371 GB, free: 6.473 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.732, allocations: 27.36 kB / 1.371 GB, free: 6.449 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: 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 9.728e-05/0.7322, allocations: 120.5 kB / 1.371 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.71e-05/0.7322, allocations: 47.42 kB / 1.371 GB, free: 6.281 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005117/0.7327, allocations: 393 kB / 1.371 GB, free: 6.012 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.7327, allocations: 7.984 kB / 1.371 GB, free: 6.004 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.7327, allocations: 3.984 kB / 1.371 GB, free: 6 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.7328, allocations: 4 kB / 1.371 GB, free: 5.996 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.7338, allocations: 1.044 MB / 1.372 GB, free: 5.156 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.7339, allocations: 4 kB / 1.372 GB, free: 5.152 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.7343, allocations: 99.02 kB / 1.373 GB, free: 5.059 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.7343, allocations: 8.188 kB / 1.373 GB, free: 5.051 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.7343, allocations: 15.23 kB / 1.373 GB, free: 5.039 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.7343, allocations: 4 kB / 1.373 GB, free: 5.035 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.7343, allocations: 0 / 1.373 GB, free: 5.035 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006858/0.735, allocations: 0.7705 MB / 1.373 GB, free: 4.379 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.233e-05/0.7351, allocations: 123.8 kB / 1.373 GB, free: 4.242 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.7351, allocations: 11.98 kB / 1.374 GB, free: 4.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.7354, allocations: 19.98 kB / 1.374 GB, free: 4.211 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.377e-05/0.7354, allocations: 34.05 kB / 1.374 GB, free: 4.184 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.7355, allocations: 23.25 kB / 1.374 GB, free: 4.164 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.000159/0.7356, allocations: 222.3 kB / 1.374 GB, free: 4 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000523/0.7362, allocations: 207.1 kB / 1.374 GB, free: 3.797 MB / 0.8073 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.0001491/0.7363, allocations: 133.7 kB / 1.374 GB, free: 3.66 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0008706/0.7372, allocations: 0.7889 MB / 1.375 GB, free: 3.09 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7372, allocations: 128 / 1.375 GB, free: 3.09 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.7374, allocations: 200.1 kB / 1.375 GB, free: 2.953 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004549/0.7379, allocations: 86.7 kB / 1.375 GB, free: 2.887 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.7389, allocations: 0.7325 MB / 1.376 GB, free: 2.207 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.7394, allocations: 0.9213 MB / 1.377 GB, free: 17.26 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.7394, allocations: 0 / 1.377 GB, free: 17.26 MB / 0.823 GB Notification: Performance of Templates: time 0.0119/0.7513, allocations: 8.077 MB / 1.385 GB, free: 9.277 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches