Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID") [: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 7.0.3-maint.7.0.x/package.mo): time 1.382/1.382, allocations: 249.4 MB / 256.7 MB, free: 7.027 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001115, allocations: 177.2 kB / 316 MB, free: 3.516 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008944/0.0008941, allocations: 87.39 kB / 0.671 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.533e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1643, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4872/0.6515, allocations: 140.1 MB / 1.021 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.6518, allocations: 83.95 kB / 1.021 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.0476/0.6994, allocations: 16.49 MB / 1.038 GB, free: 1.012 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.833e-05/0.6995, allocations: 23.94 kB / 1.038 GB, free: 0.9883 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001719/0.7012, allocations: 0.9549 MB / 1.038 GB, free: 28 kB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.7013, allocations: 8.031 kB / 1.038 GB, free: 20 kB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001943/0.7015, allocations: 91.05 kB / 1.039 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009953/0.7025, allocations: 0.6032 MB / 1.039 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.7026, allocations: 76.41 kB / 1.039 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.347e-05/0.7027, allocations: 32 kB / 1.039 GB, free: 15.26 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006299/0.7033, allocations: 340.5 kB / 1.04 GB, free: 15.07 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007829/0.7041, allocations: 0.5124 MB / 1.04 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.7041, allocations: 0 / 1.04 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.7042, allocations: 0 / 1.04 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.7042, allocations: 12 kB / 1.04 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002848/0.7071, allocations: 2.103 MB / 1.042 GB, free: 12.8 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008071/0.7079, allocations: 414.9 kB / 1.043 GB, free: 12.53 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.7082, allocations: 162.7 kB / 1.043 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.7082, allocations: 6.906 kB / 1.043 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003726/0.7086, allocations: 227.2 kB / 1.043 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.7086, allocations: 0 / 1.043 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of matching and sorting (n=45): time 0.0007091/0.7093, allocations: 379.2 kB / 1.043 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.7094, allocations: 199.4 kB / 1.043 GB, free: 11.74 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/0.71, allocations: 470.7 kB / 1.044 GB, free: 11.38 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.71, allocations: 29.81 kB / 1.044 GB, free: 11.35 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.7102, allocations: 256 kB / 1.044 GB, free: 11.12 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.7103, allocations: 158.8 kB / 1.044 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.7103, allocations: 0 / 1.044 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.7105, allocations: 378.3 kB / 1.045 GB, free: 10.64 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.7108, allocations: 133.9 kB / 1.045 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.7111, allocations: 277 kB / 1.045 GB, free: 10.32 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.7114, allocations: 161.1 kB / 1.045 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.7114, allocations: 0 / 1.045 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007587/0.7121, allocations: 477.5 kB / 1.046 GB, free: 9.871 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003852/0.7125, allocations: 0.9676 MB / 1.047 GB, free: 8.848 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.7126, allocations: 0 / 1.047 GB, free: 8.848 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.7126, allocations: 8 kB / 1.047 GB, free: 8.84 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.7132, allocations: 119.1 kB / 1.047 GB, free: 8.727 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.7132, allocations: 15.84 kB / 1.047 GB, free: 8.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.7138, allocations: 67.64 kB / 1.047 GB, free: 8.645 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/0.7138, allocations: 23.5 kB / 1.047 GB, free: 8.625 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/0.7138, allocations: 4 kB / 1.047 GB, free: 8.621 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006247/0.7145, allocations: 367.2 kB / 1.047 GB, free: 8.383 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-06/0.7145, allocations: 0 / 1.047 GB, free: 8.383 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.7145, allocations: 8 kB / 1.047 GB, free: 8.375 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.715, allocations: 119.2 kB / 1.047 GB, free: 8.262 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.715, allocations: 7.969 kB / 1.047 GB, free: 8.254 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/0.7155, allocations: 67.64 kB / 1.047 GB, free: 8.188 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.7156, allocations: 19.25 kB / 1.047 GB, free: 8.172 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 0.0001605/0.7157, allocations: 126.7 kB / 1.048 GB, free: 8.047 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.7158, allocations: 75.06 kB / 1.048 GB, free: 7.973 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.716, allocations: 69.05 kB / 1.048 GB, free: 7.934 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.716, allocations: 4 kB / 1.048 GB, free: 7.93 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.7161, allocations: 4 kB / 1.048 GB, free: 7.926 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.7161, allocations: 0 / 1.048 GB, free: 7.926 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.7168, allocations: 0.5801 MB / 1.048 GB, free: 7.453 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.7168, allocations: 0 / 1.048 GB, free: 7.453 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.7173, allocations: 103.8 kB / 1.048 GB, free: 7.355 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.7174, allocations: 0 / 1.048 GB, free: 7.355 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.7174, allocations: 7.375 kB / 1.048 GB, free: 7.352 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.7174, allocations: 0 / 1.048 GB, free: 7.352 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.7174, allocations: 4 kB / 1.048 GB, free: 7.348 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009634/0.7184, allocations: 0.6234 MB / 1.049 GB, free: 6.902 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002595/0.7187, allocations: 207.1 kB / 1.049 GB, free: 6.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.71e-05/0.7188, allocations: 0 / 1.049 GB, free: 6.711 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005733/0.7193, allocations: 63.95 kB / 1.049 GB, free: 6.648 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.447e-05/0.7194, allocations: 31.69 kB / 1.049 GB, free: 6.621 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.7195, allocations: 11.94 kB / 1.049 GB, free: 6.613 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0004016/0.7199, allocations: 371.4 kB / 1.05 GB, free: 6.344 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007004/0.7206, allocations: 211.1 kB / 1.05 GB, free: 6.137 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0002043/0.7208, allocations: 114.7 kB / 1.05 GB, free: 6.016 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001056/0.7219, allocations: 0.6534 MB / 1.051 GB, free: 5.551 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7219, allocations: 0 / 1.051 GB, free: 5.551 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.7222, allocations: 182.8 kB / 1.051 GB, free: 5.434 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008433/0.723, allocations: 167 kB / 1.051 GB, free: 5.309 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.7251, allocations: 0.8839 MB / 1.052 GB, free: 4.508 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006234/0.7257, allocations: 0.9814 MB / 1.053 GB, free: 3.5 MB / 0.6667 GB Notification: Performance of SimCode: time 4.01e-07/0.7257, allocations: 0 / 1.053 GB, free: 3.5 MB / 0.6667 GB Notification: Performance of Templates: time 0.01972/0.7454, allocations: 10.67 MB / 1.063 GB, free: 8.93 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches