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.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01169/0.01169, allocations: 100.7 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002427/0.002428, allocations: 198.7 kB / 16.68 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.788/2.788, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 63.91 kB / 1.054 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9865/0.9879, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005819/0.9938, allocations: 3.714 MB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003043/0.9969, allocations: 1.317 MB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007143/0.9976, allocations: 23.88 kB / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0004689/0.9981, allocations: 130.6 kB / 1.213 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0008305/0.999, allocations: 179.5 kB / 1.213 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001491/1, allocations: 0.5635 MB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001505/1.002, allocations: 0.9721 MB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007698/1.003, allocations: 345.6 kB / 1.215 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006498/1.003, allocations: 374.4 kB / 1.215 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005448/1.004, allocations: 354.1 kB / 1.215 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002073/1.004, allocations: 80 kB / 1.216 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/1.004, allocations: 80 kB / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002006/1.005, allocations: 179.2 kB / 1.216 GB, free: 5.289 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000494/1.005, allocations: 385.7 kB / 1.216 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001131/1.006, allocations: 0.885 MB / 1.217 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/1.006, allocations: 0 / 1.217 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.235e-06/1.006, allocations: 0 / 1.217 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.113e-05/1.006, allocations: 0 / 1.217 GB, free: 4.027 MB / 0.9356 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.002813/1.009, allocations: 1.183 MB / 1.218 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/1.009, allocations: 11.97 kB / 1.218 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/1.01, allocations: 95.81 kB / 1.218 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/1.011, allocations: 0.6182 MB / 1.219 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/1.011, allocations: 105 kB / 1.219 GB, free: 1.906 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-05/1.011, allocations: 56.38 kB / 1.219 GB, free: 1.852 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/1.012, allocations: 0.6041 MB / 1.22 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/1.012, allocations: 0 / 1.22 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.352e-05/1.012, allocations: 20 kB / 1.22 GB, free: 1.188 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/1.012, allocations: 12 kB / 1.22 GB, free: 1.176 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/1.013, allocations: 427.6 kB / 1.22 GB, free: 0.7578 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003296/1.017, allocations: 2.094 MB / 1.222 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/1.018, allocations: 0.5065 MB / 1.223 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005713/1.019, allocations: 216.8 kB / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.621e-05/1.019, allocations: 4 kB / 1.223 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006725/1.019, allocations: 286.6 kB / 1.223 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/1.02, allocations: 0 / 1.223 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.001581/1.021, allocations: 0.6099 MB / 1.224 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/1.021, allocations: 88.86 kB / 1.224 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007886/1.022, allocations: 0.6178 MB / 1.224 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/1.022, allocations: 37.7 kB / 1.224 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/1.022, allocations: 348.8 kB / 1.225 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/1.022, allocations: 165.7 kB / 1.225 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/1.023, allocations: 94.16 kB / 1.225 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000122/1.023, allocations: 330 kB / 1.225 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/1.023, allocations: 179 kB / 1.225 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005237/1.024, allocations: 284.2 kB / 1.226 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/1.025, allocations: 473.9 kB / 1.226 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.964e-06/1.025, allocations: 3.938 kB / 1.226 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001262/1.026, allocations: 0.6021 MB / 1.227 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/1.026, allocations: 31.89 kB / 1.227 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/1.026, allocations: 7.984 kB / 1.227 GB, free: 9.574 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/1.026, allocations: 4 kB / 1.227 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005033/1.027, allocations: 112.1 kB / 1.227 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/1.027, allocations: 8 kB / 1.227 GB, free: 9.453 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/1.027, allocations: 63.44 kB / 1.227 GB, free: 9.391 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/1.027, allocations: 20 kB / 1.227 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005551/1.028, allocations: 305.2 kB / 1.227 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004604/1.028, allocations: 268.2 kB / 1.228 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008392/1.029, allocations: 458 kB / 1.228 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/1.029, allocations: 7.938 kB / 1.228 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001167/1.03, allocations: 0.5787 MB / 1.229 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.676e-05/1.03, allocations: 37.69 kB / 1.229 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/1.03, allocations: 0 / 1.229 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/1.03, allocations: 8 kB / 1.229 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004307/1.031, allocations: 95.89 kB / 1.229 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/1.031, allocations: 11.92 kB / 1.229 GB, free: 7.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/1.031, allocations: 55.83 kB / 1.229 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/1.031, allocations: 16 kB / 1.229 GB, free: 7.457 MB / 0.9512 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * 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.0001841/1.031, allocations: 216 kB / 1.229 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/1.032, allocations: 75.14 kB / 1.229 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/1.032, allocations: 79.22 kB / 1.229 GB, free: 7.082 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/1.032, allocations: 4 kB / 1.229 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.032, allocations: 0 / 1.229 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/1.032, allocations: 3.984 kB / 1.229 GB, free: 7.074 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007324/1.033, allocations: 0.6257 MB / 1.23 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.033, allocations: 0 / 1.23 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/1.033, allocations: 87.88 kB / 1.23 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.033, allocations: 0 / 1.23 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/1.033, allocations: 12 kB / 1.23 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.644e-06/1.033, allocations: 0 / 1.23 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.033, allocations: 8 kB / 1.23 GB, free: 6.293 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/1.035, allocations: 0.7211 MB / 1.231 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/1.035, allocations: 188.1 kB / 1.231 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.924e-05/1.035, allocations: 15.94 kB / 1.231 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004059/1.035, allocations: 39.95 kB / 1.231 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-05/1.036, allocations: 31.95 kB / 1.231 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.724e-05/1.036, allocations: 16 kB / 1.231 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005146/1.036, allocations: 427 kB / 1.231 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/1.036, allocations: 0 / 1.231 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006302/1.037, allocations: 219.3 kB / 1.231 GB, free: 4.625 MB / 0.9512 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 0.0001734/1.037, allocations: 118.8 kB / 1.232 GB, free: 4.504 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001664/1.039, allocations: 0.7894 MB / 1.232 GB, free: 3.695 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.039, allocations: 0 / 1.232 GB, free: 3.695 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004791/1.039, allocations: 211.8 kB / 1.233 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009302/1.04, allocations: 208.6 kB / 1.233 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/1.042, allocations: 1.172 MB / 1.234 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/1.043, allocations: 0.9141 MB / 1.235 GB, free: 1.137 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000378/1.043, allocations: 97.11 kB / 1.235 GB, free: 1.043 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/1.043, allocations: 47.44 kB / 1.235 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of SimCode: time 3.9e-07/1.043, allocations: 4 kB / 1.235 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of Templates: time 0.01568/1.059, allocations: 7.844 MB / 1.243 GB, free: 9.234 MB / 0.9669 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches