Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") [: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.808/1.808, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001101/0.001101, allocations: 184.6 kB / 487 MB, free: 5.391 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.127/1.127, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0007993/0.0007994, allocations: 91.31 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.007e-06/9.027e-06, allocations: 8 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1855, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5019/0.6874, allocations: 150.4 MB / 1.352 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001647/0.6876, allocations: 74.56 kB / 1.352 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02397/0.7116, allocations: 9.143 MB / 1.361 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.951e-05/0.7117, allocations: 12 kB / 1.361 GB, free: 14.89 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.0008935/0.7126, allocations: 0.7606 MB / 1.362 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.7126, allocations: 13.02 kB / 1.362 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.7127, allocations: 71.16 kB / 1.362 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.7131, allocations: 379.2 kB / 1.362 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.7132, allocations: 23.89 kB / 1.362 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.492e-05/0.7133, allocations: 39.94 kB / 1.362 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004181/0.7137, allocations: 264.4 kB / 1.363 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004995/0.7142, allocations: 404.8 kB / 1.363 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.7142, allocations: 0 / 1.363 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.7142, allocations: 7.984 kB / 1.363 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.7143, allocations: 12 kB / 1.363 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.7158, allocations: 1.463 MB / 1.364 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.716, allocations: 213.8 kB / 1.365 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/0.7164, allocations: 265.1 kB / 1.365 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.7165, allocations: 8 kB / 1.365 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.7167, allocations: 213.7 kB / 1.365 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=49): time 1.673e-06/0.7167, allocations: 0 / 1.365 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49): time 0.000478/0.7172, allocations: 348.3 kB / 1.365 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.7172, allocations: 111.2 kB / 1.366 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.7174, allocations: 273.9 kB / 1.366 GB, free: 10.9 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.7175, allocations: 33.64 kB / 1.366 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.7176, allocations: 209.4 kB / 1.366 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.226e-05/0.7177, allocations: 161.4 kB / 1.366 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.7177, allocations: 0 / 1.366 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.7178, allocations: 351.8 kB / 1.367 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.718, allocations: 143.9 kB / 1.367 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.7182, allocations: 234 kB / 1.367 GB, free: 9.938 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.7185, allocations: 171.4 kB / 1.367 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.7186, allocations: 0 / 1.367 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006595/0.7192, allocations: 465.6 kB / 1.368 GB, free: 9.496 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.7193, allocations: 0.5304 MB / 1.368 GB, free: 8.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.7193, allocations: 3.906 kB / 1.368 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.7193, allocations: 4 kB / 1.368 GB, free: 8.922 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/0.7197, allocations: 98.89 kB / 1.368 GB, free: 8.828 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.7198, allocations: 4 kB / 1.368 GB, free: 8.824 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00038/0.7201, allocations: 95.38 kB / 1.368 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.7202, allocations: 18.86 kB / 1.368 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.95e-06/0.7202, allocations: 4 kB / 1.368 GB, free: 8.715 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005742/0.7208, allocations: 379.6 kB / 1.369 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.374e-06/0.7208, allocations: 0 / 1.369 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.508e-06/0.7208, allocations: 8.156 kB / 1.369 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.7211, allocations: 83.78 kB / 1.369 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.7211, allocations: 4 kB / 1.369 GB, free: 8.371 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.7215, allocations: 75.64 kB / 1.369 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.7215, allocations: 27.91 kB / 1.369 GB, free: 8.273 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * 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 8.943e-05/0.7216, allocations: 120.5 kB / 1.369 GB, free: 8.152 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.7217, allocations: 39.53 kB / 1.369 GB, free: 8.113 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004793/0.7221, allocations: 368 kB / 1.369 GB, free: 7.859 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.7222, allocations: 8.031 kB / 1.369 GB, free: 7.852 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7222, allocations: 0 / 1.369 GB, free: 7.852 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.7222, allocations: 7.891 kB / 1.369 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.7232, allocations: 1.003 MB / 1.37 GB, free: 7.039 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.7232, allocations: 3.938 kB / 1.37 GB, free: 7.035 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003755/0.7236, allocations: 91.77 kB / 1.37 GB, free: 6.949 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.7236, allocations: 4 kB / 1.37 GB, free: 6.945 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.545e-05/0.7236, allocations: 7.984 kB / 1.37 GB, free: 6.938 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.7236, allocations: 7.938 kB / 1.37 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.7236, allocations: 4 kB / 1.37 GB, free: 6.926 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006459/0.7243, allocations: 0.7343 MB / 1.371 GB, free: 6.301 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.432e-05/0.7244, allocations: 120.5 kB / 1.371 GB, free: 6.164 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.7244, allocations: 7.062 kB / 1.371 GB, free: 6.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.7247, allocations: 19.98 kB / 1.371 GB, free: 6.141 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.7247, allocations: 31.83 kB / 1.371 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.7247, allocations: 15.62 kB / 1.371 GB, free: 6.102 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001495/0.7249, allocations: 211.9 kB / 1.372 GB, free: 5.938 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0005383/0.7254, allocations: 186.1 kB / 1.372 GB, free: 5.758 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: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.000157/0.7256, allocations: 126.1 kB / 1.372 GB, free: 5.625 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0007604/0.7264, allocations: 0.6474 MB / 1.372 GB, free: 5.164 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7264, allocations: 0 / 1.372 GB, free: 5.164 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.7266, allocations: 180.4 kB / 1.373 GB, free: 5.043 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.727, allocations: 61.83 kB / 1.373 GB, free: 4.992 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.728, allocations: 0.7117 MB / 1.373 GB, free: 4.328 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003932/0.7284, allocations: 0.896 MB / 1.374 GB, free: 19.41 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.7285, allocations: 4 kB / 1.374 GB, free: 19.4 MB / 0.823 GB Notification: Performance of Templates: time 0.01025/0.7387, allocations: 6.913 MB / 1.381 GB, free: 12.57 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches