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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 173 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9106/0.9106, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.305/2.305, allocations: 438.8 MB / 0.6826 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 0.8385 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.278e-05/1.396e-05, allocations: 2.312 kB / 0.8385 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003193/0.003207, allocations: 3.445 MB / 0.8419 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001889/0.005096, allocations: 1.397 MB / 0.8433 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002696/0.005366, allocations: 35.75 kB / 0.8433 GB, free: 9.34 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.005603, allocations: 126.6 kB / 0.8434 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.000376/0.005979, allocations: 194.4 kB / 0.8436 GB, free: 9.023 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006878/0.006667, allocations: 0.5693 MB / 0.8442 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.00735, allocations: 0.968 MB / 0.8451 GB, free: 7.484 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.007644, allocations: 240.2 kB / 0.8453 GB, free: 7.234 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004346/0.008078, allocations: 0.5104 MB / 0.8458 GB, free: 6.723 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.008314, allocations: 255.1 kB / 0.8461 GB, free: 6.473 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.008395, allocations: 80 kB / 0.8462 GB, free: 6.395 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.989e-05/0.008454, allocations: 76 kB / 0.8462 GB, free: 6.32 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.999e-05/0.008554, allocations: 183.2 kB / 0.8464 GB, free: 6.141 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.008707, allocations: 235.2 kB / 0.8466 GB, free: 5.91 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004553/0.009162, allocations: 0.5873 MB / 0.8472 GB, free: 5.32 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.009165, allocations: 4 kB / 0.8472 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.91e-07/0.009165, allocations: 0 / 0.8472 GB, free: 5.316 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.994e-06/0.009172, allocations: 0 / 0.8472 GB, free: 5.316 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001077/0.01025, allocations: 1.063 MB / 0.8482 GB, free: 4.223 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.01028, allocations: 12.62 kB / 0.8482 GB, free: 4.211 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.01039, allocations: 100.8 kB / 0.8483 GB, free: 4.113 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005449/0.01093, allocations: 0.4921 MB / 0.8488 GB, free: 3.586 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.18e-05/0.01101, allocations: 148.3 kB / 0.849 GB, free: 3.414 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.406e-05/0.01108, allocations: 60.33 kB / 0.849 GB, free: 3.355 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004694/0.01155, allocations: 0.6036 MB / 0.8496 GB, free: 2.668 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.01156, allocations: 192 / 0.8496 GB, free: 2.668 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.01159, allocations: 28.12 kB / 0.8496 GB, free: 2.641 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.01161, allocations: 12 kB / 0.8497 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.01179, allocations: 142.8 kB / 0.8498 GB, free: 2.488 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.01304, allocations: 1.454 MB / 0.8512 GB, free: 0.9883 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.01334, allocations: 223.4 kB / 0.8514 GB, free: 0.7578 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.002e-05/0.01343, allocations: 84.8 kB / 0.8515 GB, free: 0.6719 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.01346, allocations: 11.94 kB / 0.8515 GB, free: 0.6602 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.01365, allocations: 205.6 kB / 0.8517 GB, free: 444 kB / 0.8073 GB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.01365, allocations: 4 kB / 0.8517 GB, free: 440 kB / 0.8073 GB Notification: Performance of matching and sorting (n=45): time 0.0003207/0.01397, allocations: 257.5 kB / 0.852 GB, free: 176 kB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.01402, allocations: 114.7 kB / 0.8521 GB, free: 36 kB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.01433, allocations: 0.5117 MB / 0.8526 GB, free: 15.52 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.01437, allocations: 37.7 kB / 0.8526 GB, free: 15.47 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.01449, allocations: 282.8 kB / 0.8529 GB, free: 15.19 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 7.934e-05/0.01457, allocations: 162.6 kB / 0.853 GB, free: 15.03 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.444e-05/0.01466, allocations: 98.25 kB / 0.8531 GB, free: 14.93 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.01476, allocations: 386.6 kB / 0.8535 GB, free: 14.54 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.996e-05/0.01485, allocations: 85.16 kB / 0.8536 GB, free: 14.45 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.015, allocations: 239.2 kB / 0.8538 GB, free: 14.16 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.01521, allocations: 266.8 kB / 0.8541 GB, free: 13.85 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.01522, allocations: 0 / 0.8541 GB, free: 13.85 MB / 0.823 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000297/0.01551, allocations: 333.7 kB / 0.8544 GB, free: 13.51 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.01554, allocations: 33.7 kB / 0.8544 GB, free: 13.47 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.01555, allocations: 4 kB / 0.8544 GB, free: 13.46 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.01556, allocations: 12.25 kB / 0.8544 GB, free: 13.45 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.01579, allocations: 103.9 kB / 0.8545 GB, free: 13.35 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.0158, allocations: 7.938 kB / 0.8545 GB, free: 13.34 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.01596, allocations: 55.66 kB / 0.8546 GB, free: 13.29 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.01598, allocations: 12 kB / 0.8546 GB, free: 13.28 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001456/0.01612, allocations: 171.1 kB / 0.8548 GB, free: 13.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001367/0.01626, allocations: 235.2 kB / 0.855 GB, free: 12.81 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001994/0.01646, allocations: 266.6 kB / 0.8552 GB, free: 12.51 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.232e-06/0.01646, allocations: 0 / 0.8552 GB, free: 12.51 MB / 0.823 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0002855/0.01675, allocations: 337.7 kB / 0.8556 GB, free: 12.16 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.01676, allocations: 33.7 kB / 0.8556 GB, free: 12.12 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.01677, allocations: 8 kB / 0.8556 GB, free: 12.12 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.268e-06/0.01677, allocations: 4 kB / 0.8556 GB, free: 12.11 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.01697, allocations: 99.88 kB / 0.8557 GB, free: 12.02 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.01697, allocations: 15.88 kB / 0.8557 GB, free: 12 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.01712, allocations: 52.03 kB / 0.8558 GB, free: 11.95 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.01714, allocations: 16 kB / 0.8558 GB, free: 11.93 MB / 0.823 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 (limPID.I.trigger_internal,limPIDRev.I.trigger_internal,limPIDOri.I.local_reset,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.01724, allocations: 209.6 kB / 0.856 GB, free: 11.72 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.461e-05/0.0173, allocations: 55.94 kB / 0.856 GB, free: 11.67 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.069e-05/0.01737, allocations: 74.77 kB / 0.8561 GB, free: 11.59 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.01737, allocations: 7.938 kB / 0.8561 GB, free: 11.58 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.01737, allocations: 0 / 0.8561 GB, free: 11.58 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.01738, allocations: 3.984 kB / 0.8561 GB, free: 11.58 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.01765, allocations: 321.3 kB / 0.8564 GB, free: 11.25 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.01765, allocations: 4 kB / 0.8564 GB, free: 11.24 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.01784, allocations: 79.84 kB / 0.8565 GB, free: 11.16 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01785, allocations: 0 / 0.8565 GB, free: 11.16 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.01787, allocations: 11.98 kB / 0.8565 GB, free: 11.15 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.01787, allocations: 0 / 0.8565 GB, free: 11.15 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.01787, allocations: 0 / 0.8565 GB, free: 11.15 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.01822, allocations: 327.5 kB / 0.8568 GB, free: 10.82 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.01833, allocations: 71.45 kB / 0.8569 GB, free: 10.75 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.01837, allocations: 12 kB / 0.8569 GB, free: 10.73 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.01852, allocations: 35.91 kB / 0.8569 GB, free: 10.7 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.01857, allocations: 27.94 kB / 0.857 GB, free: 10.67 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.01859, allocations: 19.92 kB / 0.857 GB, free: 10.65 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001687/0.01876, allocations: 244.6 kB / 0.8572 GB, free: 10.42 MB / 0.823 GB Notification: Performance of sort global known variables: time 5.1e-08/0.01876, allocations: 0 / 0.8572 GB, free: 10.42 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003164/0.01907, allocations: 227.3 kB / 0.8574 GB, free: 10.2 MB / 0.823 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.213e-05/0.01916, allocations: 92.36 kB / 0.8575 GB, free: 10.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0004352/0.0196, allocations: 0.5114 MB / 0.858 GB, free: 9.543 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.01961, allocations: 8 kB / 0.858 GB, free: 9.535 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.01972, allocations: 106.3 kB / 0.8581 GB, free: 9.43 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.02012, allocations: 214.2 kB / 0.8583 GB, free: 9.227 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.02121, allocations: 1.063 MB / 0.8594 GB, free: 8.125 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.518e-05/0.02128, allocations: 146.5 kB / 0.8595 GB, free: 7.961 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002239/0.02151, allocations: 92.95 kB / 0.8596 GB, free: 7.871 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.02183, allocations: 213.2 kB / 0.8598 GB, free: 7.66 MB / 0.823 GB Notification: Performance of SimCode: time 6.31e-07/0.02183, allocations: 4 kB / 0.8598 GB, free: 7.656 MB / 0.823 GB Notification: Performance of Templates: time 0.0104/0.03224, allocations: 8.65 MB / 0.8683 GB, free: 15.21 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.13377168495208]