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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001705/0.001705, allocations: 101.2 kB / 16.27 MB, free: 6.418 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.001873/0.001873, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.455/1.455, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 482.4 MB / 0.7553 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 69.64 kB / 0.9245 GB, free: 4 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9931/0.9951, allocations: 162.2 MB / 1.083 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005704/1.001, allocations: 3.723 MB / 1.087 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003587/1.004, allocations: 1.323 MB / 1.088 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000795/1.005, allocations: 29.88 kB / 1.088 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0004276/1.006, allocations: 123.5 kB / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0006928/1.006, allocations: 171.7 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001522/1.008, allocations: 0.5708 MB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001383/1.009, allocations: 0.9546 MB / 1.09 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000646/1.01, allocations: 348.8 kB / 1.09 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/1.011, allocations: 361.2 kB / 1.09 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004773/1.011, allocations: 351.2 kB / 1.091 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001504/1.011, allocations: 81.19 kB / 1.091 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/1.011, allocations: 79.25 kB / 1.091 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002197/1.012, allocations: 189.8 kB / 1.091 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004685/1.012, allocations: 374.8 kB / 1.091 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001183/1.013, allocations: 0.864 MB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/1.013, allocations: 0 / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.435e-06/1.013, allocations: 5.531 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.793e-05/1.013, allocations: 0 / 1.092 GB, free: 11.86 MB / 0.8419 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.00253/1.016, allocations: 1.176 MB / 1.093 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/1.016, allocations: 8.969 kB / 1.093 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/1.016, allocations: 97.61 kB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/1.017, allocations: 0.592 MB / 1.094 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/1.018, allocations: 100.7 kB / 1.094 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/1.018, allocations: 52.62 kB / 1.094 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/1.019, allocations: 0.6018 MB / 1.095 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/1.019, allocations: 5 kB / 1.095 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/1.019, allocations: 22.89 kB / 1.095 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/1.019, allocations: 12.19 kB / 1.095 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/1.02, allocations: 426.4 kB / 1.095 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003384/1.024, allocations: 2.105 MB / 1.097 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/1.025, allocations: 0.5032 MB / 1.098 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005048/1.025, allocations: 219.6 kB / 1.098 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/1.026, allocations: 5.734 kB / 1.098 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007513/1.026, allocations: 280.3 kB / 1.098 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 3.076e-06/1.026, allocations: 0 / 1.098 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001704/1.028, allocations: 0.6155 MB / 1.099 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/1.028, allocations: 86.52 kB / 1.099 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009092/1.029, allocations: 0.6123 MB / 1.099 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/1.029, allocations: 41.83 kB / 1.1 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000344/1.029, allocations: 352.3 kB / 1.1 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/1.03, allocations: 153.2 kB / 1.1 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/1.03, allocations: 97.75 kB / 1.1 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000161/1.03, allocations: 325 kB / 1.1 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/1.03, allocations: 186.7 kB / 1.101 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005734/1.031, allocations: 284.1 kB / 1.101 GB, free: 6.48 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/1.032, allocations: 484.8 kB / 1.101 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/1.032, allocations: 5.062 kB / 1.101 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001381/1.034, allocations: 0.599 MB / 1.102 GB, free: 5.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/1.034, allocations: 33.17 kB / 1.102 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.034, allocations: 10.56 kB / 1.102 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/1.034, allocations: 5.312 kB / 1.102 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005042/1.034, allocations: 108.1 kB / 1.102 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/1.034, allocations: 5.578 kB / 1.102 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/1.035, allocations: 60.94 kB / 1.102 GB, free: 5.828 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/1.035, allocations: 18.77 kB / 1.102 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007208/1.035, allocations: 314.7 kB / 1.102 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004993/1.036, allocations: 261.5 kB / 1.103 GB, free: 5.48 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008978/1.037, allocations: 458.8 kB / 1.103 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/1.037, allocations: 0.7969 kB / 1.103 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001209/1.038, allocations: 0.5748 MB / 1.104 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/1.038, allocations: 34.12 kB / 1.104 GB, free: 4.895 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/1.038, allocations: 3.031 kB / 1.104 GB, free: 4.895 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.436e-06/1.038, allocations: 5.531 kB / 1.104 GB, free: 4.895 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004622/1.039, allocations: 108.3 kB / 1.104 GB, free: 4.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.039, allocations: 5.094 kB / 1.104 GB, free: 4.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/1.039, allocations: 59.19 kB / 1.104 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/1.039, allocations: 18.7 kB / 1.104 GB, free: 4.84 MB / 0.8419 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.0002625/1.039, allocations: 210.8 kB / 1.104 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/1.04, allocations: 70.06 kB / 1.104 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/1.04, allocations: 79.67 kB / 1.104 GB, free: 4.543 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/1.04, allocations: 9.297 kB / 1.104 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.04, allocations: 0 / 1.104 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/1.04, allocations: 7.469 kB / 1.104 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009418/1.041, allocations: 0.6266 MB / 1.105 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/1.041, allocations: 1.375 kB / 1.105 GB, free: 4.16 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/1.041, allocations: 87.38 kB / 1.105 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/1.041, allocations: 1.375 kB / 1.105 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/1.041, allocations: 12.06 kB / 1.105 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/1.041, allocations: 2.078 kB / 1.105 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.041, allocations: 5.375 kB / 1.105 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/1.043, allocations: 0.7263 MB / 1.106 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/1.043, allocations: 191.7 kB / 1.106 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.19e-05/1.043, allocations: 7.562 kB / 1.106 GB, free: 3.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/1.044, allocations: 40.53 kB / 1.106 GB, free: 3.621 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/1.044, allocations: 29.48 kB / 1.106 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.989e-05/1.044, allocations: 16.77 kB / 1.106 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006266/1.045, allocations: 433.5 kB / 1.106 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/1.045, allocations: 4 kB / 1.106 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007728/1.045, allocations: 210.4 kB / 1.107 GB, free: 3.371 MB / 0.8419 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.0001876/1.046, allocations: 127.1 kB / 1.107 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001973/1.047, allocations: 0.7988 MB / 1.108 GB, free: 2.898 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/1.047, allocations: 1.75 kB / 1.108 GB, free: 2.898 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005093/1.048, allocations: 217.6 kB / 1.108 GB, free: 2.828 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/1.049, allocations: 204.4 kB / 1.108 GB, free: 2.758 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/1.052, allocations: 1.218 MB / 1.109 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/1.052, allocations: 0.9134 MB / 1.11 GB, free: 1.355 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/1.052, allocations: 55.05 kB / 1.11 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of SimCode: time 6.11e-07/1.052, allocations: 0 / 1.11 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of Templates: time 0.02111/1.073, allocations: 8.642 MB / 1.118 GB, free: 15.16 MB / 0.8575 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches