Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001458/0.001458, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002228/0.002228, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.48/1.48, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 75.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9278/0.9294, allocations: 140.3 MB / 0.9491 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005457/0.9349, allocations: 3.732 MB / 0.9527 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003147/0.9381, allocations: 1.289 MB / 0.954 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006814/0.9388, allocations: 34.28 kB / 0.954 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.9392, allocations: 94.27 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005818/0.9399, allocations: 133 kB / 0.9542 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.941, allocations: 0.5223 MB / 0.9547 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001142/0.9422, allocations: 0.9679 MB / 0.9557 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005911/0.9428, allocations: 350 kB / 0.956 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004847/0.9433, allocations: 377.5 kB / 0.9564 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.9436, allocations: 348.6 kB / 0.9567 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.9438, allocations: 77.66 kB / 0.9568 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.944, allocations: 78.41 kB / 0.9569 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.9441, allocations: 182.7 kB / 0.957 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002865/0.9444, allocations: 379.5 kB / 0.9574 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008535/0.9453, allocations: 0.8616 MB / 0.9582 GB, free: 2 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.9453, allocations: 1.375 kB / 0.9582 GB, free: 2 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9453, allocations: 0 / 0.9582 GB, free: 2 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.9453, allocations: 0 / 0.9582 GB, free: 2 MB / 0.7169 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.002239/0.9475, allocations: 1.176 MB / 0.9594 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.185e-05/0.9476, allocations: 8.438 kB / 0.9594 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.9479, allocations: 98.33 kB / 0.9595 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00099/0.9488, allocations: 0.5986 MB / 0.9601 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.949, allocations: 94.25 kB / 0.9602 GB, free: 432 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.9491, allocations: 56.03 kB / 0.9602 GB, free: 412 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.9503, allocations: 0.6041 MB / 0.9608 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.9504, allocations: 5 kB / 0.9608 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.682e-05/0.9504, allocations: 25 kB / 0.9608 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.9505, allocations: 13.44 kB / 0.9608 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.9515, allocations: 426.9 kB / 0.9613 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.9547, allocations: 2.106 MB / 0.9633 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.9562, allocations: 0.5023 MB / 0.9638 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004992/0.9567, allocations: 222.9 kB / 0.964 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.355e-05/0.9567, allocations: 4.375 kB / 0.964 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000818/0.9576, allocations: 283.9 kB / 0.9643 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.9576, allocations: 0 / 0.9643 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001829/0.9594, allocations: 0.6142 MB / 0.9649 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/0.9595, allocations: 86.2 kB / 0.965 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.9605, allocations: 0.6136 MB / 0.9656 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.9606, allocations: 37.89 kB / 0.9656 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003217/0.9609, allocations: 349.2 kB / 0.9659 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.9611, allocations: 160.3 kB / 0.9661 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.9613, allocations: 100.2 kB / 0.9662 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000179/0.9615, allocations: 330.3 kB / 0.9665 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005232/0.962, allocations: 184.7 kB / 0.9667 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005666/0.9626, allocations: 277.4 kB / 0.9669 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.9636, allocations: 478.5 kB / 0.9674 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.9636, allocations: 4.969 kB / 0.9674 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001404/0.965, allocations: 0.6007 MB / 0.968 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.147e-05/0.9651, allocations: 38.16 kB / 0.968 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.9651, allocations: 2.344 kB / 0.968 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.9651, allocations: 5.844 kB / 0.968 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005128/0.9657, allocations: 104.1 kB / 0.9681 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.9657, allocations: 12.44 kB / 0.9681 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.9662, allocations: 69.59 kB / 0.9682 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.9662, allocations: 18.5 kB / 0.9682 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006278/0.9668, allocations: 307.5 kB / 0.9685 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004823/0.9673, allocations: 265.4 kB / 0.9688 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009754/0.9683, allocations: 461.4 kB / 0.9692 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.579e-06/0.9683, allocations: 1.375 kB / 0.9692 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001357/0.9697, allocations: 0.576 MB / 0.9698 GB, free: 9.727 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.9698, allocations: 32.8 kB / 0.9698 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.9698, allocations: 2.875 kB / 0.9698 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.9698, allocations: 4.562 kB / 0.9698 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.9703, allocations: 105.4 kB / 0.9699 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.9703, allocations: 5.219 kB / 0.9699 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/0.9708, allocations: 48.39 kB / 0.97 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.9708, allocations: 18.41 kB / 0.97 GB, free: 9.633 MB / 0.7325 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.0002842/0.9711, allocations: 221.6 kB / 0.9702 GB, free: 9.418 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.9712, allocations: 73.56 kB / 0.9703 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.9715, allocations: 79 kB / 0.9703 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.9715, allocations: 3.812 kB / 0.9703 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.9715, allocations: 1.5 kB / 0.9703 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.9715, allocations: 3.984 kB / 0.9704 GB, free: 9.309 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008516/0.9724, allocations: 0.6177 MB / 0.971 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.9724, allocations: 0 / 0.971 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.9728, allocations: 93.72 kB / 0.971 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.9729, allocations: 2.094 kB / 0.971 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.9729, allocations: 15.03 kB / 0.9711 GB, free: 8.762 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.9729, allocations: 6.109 kB / 0.9711 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.9729, allocations: 0 / 0.9711 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.9745, allocations: 0.7295 MB / 0.9718 GB, free: 8.352 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.9748, allocations: 181.1 kB / 0.972 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.909e-05/0.9749, allocations: 11.12 kB / 0.972 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003984/0.9753, allocations: 40.73 kB / 0.972 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.9754, allocations: 35.7 kB / 0.972 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.173e-05/0.9754, allocations: 21.2 kB / 0.9721 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006046/0.9761, allocations: 426.3 kB / 0.9725 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9761, allocations: 0 / 0.9725 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007265/0.9768, allocations: 221.9 kB / 0.9727 GB, free: 7.816 MB / 0.7325 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.000188/0.977, allocations: 118.8 kB / 0.9728 GB, free: 7.711 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001831/0.9788, allocations: 0.8031 MB / 0.9736 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.9788, allocations: 5.375 kB / 0.9736 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004836/0.9793, allocations: 220.3 kB / 0.9738 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.9804, allocations: 200.4 kB / 0.974 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.9828, allocations: 1.442 MB / 0.9754 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.9834, allocations: 0.9206 MB / 0.9763 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004731/0.9839, allocations: 93.8 kB / 0.9764 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.984, allocations: 45.09 kB / 0.9764 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of SimCode: time 5.21e-07/0.984, allocations: 0 / 0.9764 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of Templates: time 0.01447/0.9985, allocations: 7.512 MB / 0.9838 GB, free: 13.92 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches