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.001292/0.001293, allocations: 110.1 kB / 16.42 MB, free: 6.445 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.001185/0.001185, allocations: 186.6 kB / 17.35 MB, free: 5.742 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.122/2.122, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 59.91 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7706/0.772, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00423/0.7763, allocations: 3.713 MB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002416/0.7787, allocations: 1.326 MB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003592/0.7791, allocations: 25.62 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.7794, allocations: 127.8 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004684/0.7799, allocations: 185.8 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.781, allocations: 0.5731 MB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001072/0.7821, allocations: 0.971 MB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005325/0.7827, allocations: 351.8 kB / 1.096 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004634/0.7831, allocations: 377.7 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.7835, allocations: 350.9 kB / 1.096 GB, free: 276 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.7837, allocations: 77.75 kB / 1.096 GB, free: 276 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.7839, allocations: 78.84 kB / 1.097 GB, free: 276 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.784, allocations: 181.9 kB / 1.097 GB, free: 148 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003513/0.7844, allocations: 383.8 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.7856, allocations: 0.8845 MB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.7856, allocations: 0.5625 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7856, allocations: 0 / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.307e-05/0.7856, allocations: 0.5938 kB / 1.098 GB, free: 15.45 MB / 0.8731 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.002444/0.788, allocations: 1.183 MB / 1.099 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.7881, allocations: 8.688 kB / 1.099 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.7883, allocations: 94.09 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.7895, allocations: 0.6247 MB / 1.1 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.7896, allocations: 100.3 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.7897, allocations: 52.12 kB / 1.1 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.7909, allocations: 0.6065 MB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.791, allocations: 0.5312 kB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.234e-05/0.791, allocations: 22.5 kB / 1.101 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.7911, allocations: 16.53 kB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.7922, allocations: 422.3 kB / 1.101 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.7953, allocations: 2.097 MB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.7967, allocations: 0.5001 MB / 1.103 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005237/0.7972, allocations: 216.2 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.7973, allocations: 5 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.798, allocations: 281.4 kB / 1.104 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=45): time 2.615e-06/0.7981, allocations: 0 / 1.104 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45): time 0.001681/0.7997, allocations: 0.6135 MB / 1.105 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.7998, allocations: 90.75 kB / 1.105 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007643/0.8006, allocations: 0.6083 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.137e-05/0.8006, allocations: 32.55 kB / 1.105 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.8009, allocations: 360.8 kB / 1.106 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.8011, allocations: 154.3 kB / 1.106 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.8013, allocations: 94 kB / 1.106 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.8014, allocations: 330.4 kB / 1.106 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004773/0.8019, allocations: 184.1 kB / 1.106 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.8024, allocations: 277.6 kB / 1.107 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.8034, allocations: 480.3 kB / 1.107 GB, free: 9.781 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.8034, allocations: 1.125 kB / 1.107 GB, free: 9.781 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001323/0.8048, allocations: 0.6027 MB / 1.108 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.8048, allocations: 33.12 kB / 1.108 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.8049, allocations: 2.812 kB / 1.108 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.8049, allocations: 9.594 kB / 1.108 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.8054, allocations: 104.9 kB / 1.108 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.8054, allocations: 10.52 kB / 1.108 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.8059, allocations: 70.53 kB / 1.108 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.8059, allocations: 19.8 kB / 1.108 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006124/0.8066, allocations: 308.9 kB / 1.108 GB, free: 9.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004847/0.8071, allocations: 265.7 kB / 1.108 GB, free: 9.059 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008685/0.8079, allocations: 446.5 kB / 1.109 GB, free: 8.785 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.617e-06/0.8079, allocations: 9.047 kB / 1.109 GB, free: 8.777 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001163/0.8091, allocations: 0.5795 MB / 1.109 GB, free: 8.5 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.8092, allocations: 33.53 kB / 1.109 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.8092, allocations: 8.328 kB / 1.109 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.8092, allocations: 4.656 kB / 1.11 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.8097, allocations: 104.2 kB / 1.11 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.8097, allocations: 6.062 kB / 1.11 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.8101, allocations: 46.27 kB / 1.11 GB, free: 8.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.8102, allocations: 19.53 kB / 1.11 GB, free: 8.426 MB / 0.8731 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.0002252/0.8104, allocations: 219.2 kB / 1.11 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.8105, allocations: 78.23 kB / 1.11 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.8107, allocations: 83.81 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.8108, allocations: 3.562 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.8108, allocations: 0 / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.811, allocations: 195.7 kB / 1.11 GB, free: 7.941 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.8112, allocations: 7.641 kB / 1.11 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/0.8116, allocations: 34.55 kB / 1.11 GB, free: 7.93 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.8117, allocations: 42.8 kB / 1.11 GB, free: 7.914 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001498/0.8132, allocations: 0.5545 MB / 1.111 GB, free: 7.656 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001702/0.815, allocations: 0.8912 MB / 1.112 GB, free: 7.168 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005447/0.8155, allocations: 208.1 kB / 1.112 GB, free: 7.094 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006692/0.8162, allocations: 433.5 kB / 1.112 GB, free: 6.906 MB / 0.8731 GB Notification: Performance of Backend: time 6.51e-07/0.8162, allocations: 3.938 kB / 1.112 GB, free: 6.902 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001697/0.8179, allocations: 0.7154 MB / 1.113 GB, free: 6.531 MB / 0.8731 GB Notification: Performance of SimCode: time 0.002513/0.8204, allocations: 1.65 MB / 1.115 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of Templates: time 0.02296/0.8434, allocations: 10.51 MB / 1.125 GB, free: 4.684 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches