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.009345/0.009345, allocations: 103.4 kB / 15.74 MB, free: 6.008 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.002382/0.002382, allocations: 198.4 kB / 16.68 MB, free: 5.93 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.526/1.526, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.772/2.772, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 1.054 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.064, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00584/1.07, allocations: 3.713 MB / 1.211 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003119/1.073, allocations: 1.317 MB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008259/1.074, allocations: 27.88 kB / 1.213 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005225/1.074, allocations: 126.6 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0009797/1.075, allocations: 178.5 kB / 1.213 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001558/1.077, allocations: 0.5755 MB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001419/1.078, allocations: 0.9682 MB / 1.214 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006547/1.079, allocations: 349.6 kB / 1.215 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006459/1.08, allocations: 370.4 kB / 1.215 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005165/1.08, allocations: 354.1 kB / 1.215 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001526/1.08, allocations: 80 kB / 1.216 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/1.08, allocations: 80 kB / 1.216 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000158/1.081, allocations: 187.2 kB / 1.216 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000335/1.081, allocations: 373.7 kB / 1.216 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009051/1.082, allocations: 0.8928 MB / 1.217 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.082, allocations: 0 / 1.217 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.467e-06/1.082, allocations: 0 / 1.217 GB, free: 4.047 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.276e-05/1.082, allocations: 3.938 kB / 1.217 GB, free: 4.043 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.00204/1.084, allocations: 1.176 MB / 1.218 GB, free: 2.812 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/1.084, allocations: 8.031 kB / 1.218 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/1.084, allocations: 95.81 kB / 1.218 GB, free: 2.711 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/1.085, allocations: 0.6259 MB / 1.219 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/1.085, allocations: 92.97 kB / 1.219 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/1.085, allocations: 56.38 kB / 1.219 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/1.086, allocations: 0.6003 MB / 1.22 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/1.086, allocations: 3.938 kB / 1.22 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/1.086, allocations: 24 kB / 1.22 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/1.086, allocations: 12 kB / 1.22 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008993/1.087, allocations: 427.6 kB / 1.22 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002711/1.09, allocations: 2.09 MB / 1.222 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/1.091, allocations: 0.5079 MB / 1.223 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/1.092, allocations: 220.7 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.784e-05/1.092, allocations: 8 kB / 1.223 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005791/1.092, allocations: 274.6 kB / 1.223 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 1.763e-06/1.092, allocations: 0 / 1.223 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.001353/1.094, allocations: 0.6176 MB / 1.224 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/1.094, allocations: 84.86 kB / 1.224 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006694/1.094, allocations: 0.6178 MB / 1.224 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/1.094, allocations: 37.7 kB / 1.224 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/1.095, allocations: 348.8 kB / 1.225 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/1.095, allocations: 157.7 kB / 1.225 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/1.095, allocations: 98.16 kB / 1.225 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001038/1.095, allocations: 334 kB / 1.225 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/1.096, allocations: 183 kB / 1.225 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004795/1.096, allocations: 276.2 kB / 1.226 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008704/1.097, allocations: 481.9 kB / 1.226 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/1.097, allocations: 7.938 kB / 1.226 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001179/1.098, allocations: 0.5943 MB / 1.227 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.192e-05/1.098, allocations: 35.89 kB / 1.227 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/1.098, allocations: 3.984 kB / 1.227 GB, free: 9.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/1.098, allocations: 8 kB / 1.227 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/1.099, allocations: 103.9 kB / 1.227 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/1.099, allocations: 12.19 kB / 1.227 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/1.099, allocations: 67.44 kB / 1.227 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/1.099, allocations: 16 kB / 1.227 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005406/1.1, allocations: 309.2 kB / 1.227 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004071/1.1, allocations: 264.3 kB / 1.228 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008179/1.101, allocations: 458 kB / 1.228 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.971e-06/1.101, allocations: 3.938 kB / 1.228 GB, free: 8.297 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00126/1.102, allocations: 0.571 MB / 1.229 GB, free: 7.711 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/1.102, allocations: 37.69 kB / 1.229 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/1.102, allocations: 4 kB / 1.229 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/1.102, allocations: 4 kB / 1.229 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000421/1.103, allocations: 103.8 kB / 1.229 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/1.103, allocations: 11.97 kB / 1.229 GB, free: 7.547 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/1.103, allocations: 47.58 kB / 1.229 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.922e-05/1.103, allocations: 20.16 kB / 1.229 GB, free: 7.48 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.000242/1.103, allocations: 221.9 kB / 1.229 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/1.104, allocations: 75.14 kB / 1.229 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/1.104, allocations: 75.22 kB / 1.229 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.104, allocations: 4 kB / 1.229 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.104, allocations: 4 kB / 1.229 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/1.104, allocations: 7.922 kB / 1.229 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000827/1.105, allocations: 0.6257 MB / 1.23 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/1.105, allocations: 0 / 1.23 GB, free: 6.414 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/1.105, allocations: 87.88 kB / 1.23 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-05/1.105, allocations: 7.984 kB / 1.23 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/1.105, allocations: 4 kB / 1.23 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/1.105, allocations: 4 kB / 1.23 GB, free: 6.312 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.105, allocations: 3.938 kB / 1.23 GB, free: 6.309 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/1.107, allocations: 0.7251 MB / 1.231 GB, free: 5.566 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002603/1.107, allocations: 192.1 kB / 1.231 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.711e-05/1.107, allocations: 12 kB / 1.231 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/1.108, allocations: 39.95 kB / 1.231 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.108, allocations: 31.95 kB / 1.231 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/1.108, allocations: 12 kB / 1.231 GB, free: 5.266 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0005082/1.108, allocations: 435 kB / 1.231 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/1.108, allocations: 0 / 1.231 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006444/1.109, allocations: 215.3 kB / 1.231 GB, free: 4.637 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.00016/1.109, allocations: 115.2 kB / 1.232 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001522/1.111, allocations: 0.7894 MB / 1.232 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.111, allocations: 0 / 1.232 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004387/1.111, allocations: 215.7 kB / 1.233 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008577/1.112, allocations: 202.6 kB / 1.233 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/1.114, allocations: 1.168 MB / 1.234 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/1.115, allocations: 0.9141 MB / 1.235 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000364/1.115, allocations: 101 kB / 1.235 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/1.115, allocations: 47.44 kB / 1.235 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of SimCode: time 4.7e-07/1.115, allocations: 0 / 1.235 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of Templates: time 0.01584/1.131, allocations: 7.659 MB / 1.242 GB, free: 9.438 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