Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.749/1.749, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0009036/0.0009036, allocations: 185.2 kB / 490.8 MB, free: 1.879 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.07/1.07, allocations: 221.4 MB / 0.7863 GB, free: 13.67 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.0008075/0.0008073, allocations: 99.33 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.919e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1694, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.6369, allocations: 157.2 MB / 1.365 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.6371, allocations: 76.47 kB / 1.365 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04026/0.6774, allocations: 16.46 MB / 1.381 GB, free: 14.8 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.52e-05/0.6775, allocations: 26.23 kB / 1.381 GB, free: 14.79 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001354/0.6788, allocations: 0.9481 MB / 1.382 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.6789, allocations: 13.02 kB / 1.382 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.679, allocations: 97.56 kB / 1.382 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007876/0.6798, allocations: 0.5837 MB / 1.383 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-05/0.6799, allocations: 83.58 kB / 1.383 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.738e-05/0.68, allocations: 30.47 kB / 1.383 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005721/0.6806, allocations: 334.2 kB / 1.383 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.6813, allocations: 0.5161 MB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.6813, allocations: 1.281 kB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.6813, allocations: 1.312 kB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.6814, allocations: 12.47 kB / 1.384 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.6836, allocations: 2.101 MB / 1.386 GB, free: 27.99 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/0.6844, allocations: 424.4 kB / 1.386 GB, free: 27.92 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.6846, allocations: 158.8 kB / 1.386 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.6846, allocations: 6.062 kB / 1.386 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.685, allocations: 220.9 kB / 1.387 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 1.993e-06/0.685, allocations: 0 / 1.387 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0006026/0.6856, allocations: 390.9 kB / 1.387 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.6856, allocations: 189 kB / 1.387 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.6861, allocations: 479.4 kB / 1.388 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.6862, allocations: 31.33 kB / 1.388 GB, free: 27.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.6863, allocations: 251.5 kB / 1.388 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.325e-05/0.6864, allocations: 153.8 kB / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.186e-05/0.6864, allocations: 3.938 kB / 1.388 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.6865, allocations: 381.7 kB / 1.388 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.6867, allocations: 140.5 kB / 1.389 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.687, allocations: 268.4 kB / 1.389 GB, free: 26.52 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.6873, allocations: 161.5 kB / 1.389 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.6873, allocations: 0.8438 kB / 1.389 GB, free: 26.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007134/0.688, allocations: 476.8 kB / 1.389 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002372/0.6883, allocations: 0.9603 MB / 1.39 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.6883, allocations: 3.25 kB / 1.39 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.6883, allocations: 5 kB / 1.39 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005042/0.6888, allocations: 128.4 kB / 1.39 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.6888, allocations: 9.125 kB / 1.391 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/0.6893, allocations: 73.97 kB / 1.391 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.6893, allocations: 25.45 kB / 1.391 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.19e-06/0.6894, allocations: 5.719 kB / 1.391 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005436/0.6899, allocations: 364.3 kB / 1.391 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.6899, allocations: 6.891 kB / 1.391 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.202e-06/0.6899, allocations: 5.219 kB / 1.391 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004459/0.6904, allocations: 120.2 kB / 1.391 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.6904, allocations: 5.406 kB / 1.391 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.6908, allocations: 60.28 kB / 1.391 GB, free: 25.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.6908, allocations: 17.16 kB / 1.391 GB, free: 25.2 MB / 0.8386 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.000117/0.691, allocations: 126.5 kB / 1.391 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.551e-05/0.6911, allocations: 71.89 kB / 1.391 GB, free: 25.04 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.6912, allocations: 67.52 kB / 1.391 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.6912, allocations: 9.25 kB / 1.391 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.6912, allocations: 4.062 kB / 1.391 GB, free: 25.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6912, allocations: 0 / 1.391 GB, free: 25.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004907/0.6917, allocations: 0.5763 MB / 1.392 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6917, allocations: 0 / 1.392 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.6922, allocations: 103.2 kB / 1.392 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.6922, allocations: 5.469 kB / 1.392 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.6922, allocations: 2.469 kB / 1.392 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.6923, allocations: 5.5 kB / 1.392 GB, free: 24.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.6923, allocations: 1.312 kB / 1.392 GB, free: 24.67 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008186/0.6931, allocations: 0.6208 MB / 1.393 GB, free: 24.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.6933, allocations: 201.8 kB / 1.393 GB, free: 24.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-05/0.6934, allocations: 4.5 kB / 1.393 GB, free: 24.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.6939, allocations: 73.47 kB / 1.393 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.694, allocations: 27.05 kB / 1.393 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.694, allocations: 16.95 kB / 1.393 GB, free: 24.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0003353/0.6943, allocations: 361 kB / 1.393 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005798/0.6949, allocations: 209.5 kB / 1.394 GB, free: 24.16 MB / 0.8386 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.0001315/0.6951, allocations: 118.7 kB / 1.394 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008608/0.6959, allocations: 0.6482 MB / 1.394 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6959, allocations: 1.188 kB / 1.394 GB, free: 23.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.6962, allocations: 188.2 kB / 1.394 GB, free: 23.94 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007138/0.6969, allocations: 154.5 kB / 1.395 GB, free: 23.9 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.6986, allocations: 0.8847 MB / 1.395 GB, free: 23.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005831/0.6992, allocations: 0.9795 MB / 1.396 GB, free: 22.71 MB / 0.8386 GB Notification: Performance of SimCode: time 3.2e-07/0.6992, allocations: 3.938 kB / 1.396 GB, free: 22.7 MB / 0.8386 GB Notification: Performance of Templates: time 0.01539/0.7146, allocations: 10.65 MB / 1.407 GB, free: 16.04 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches