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.001775/0.001775, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001622/0.001623, allocations: 187 kB / 17.34 MB, free: 5.762 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.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.15 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.27/2.27, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 59.91 kB / 0.9515 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9652/0.9667, allocations: 140.4 MB / 1.089 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004803/0.9716, allocations: 3.709 MB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002856/0.9744, allocations: 1.327 MB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005028/0.975, allocations: 26.12 kB / 1.094 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.9753, allocations: 131.1 kB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005578/0.9759, allocations: 186.4 kB / 1.094 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.9772, allocations: 0.5764 MB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001307/0.9785, allocations: 0.9674 MB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.9791, allocations: 356 kB / 1.096 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005436/0.9797, allocations: 373 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.9801, allocations: 355.3 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.9803, allocations: 78.09 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.9804, allocations: 78.28 kB / 1.097 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.9806, allocations: 178.8 kB / 1.097 GB, free: 420 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003264/0.9809, allocations: 378.9 kB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.9822, allocations: 0.8925 MB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.9822, allocations: 0.625 kB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9822, allocations: 0 / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.311e-05/0.9822, allocations: 0.8438 kB / 1.098 GB, free: 15.71 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.00227/0.9845, allocations: 1.179 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.9845, allocations: 9.938 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.9847, allocations: 94.38 kB / 1.099 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.9859, allocations: 0.6277 MB / 1.1 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.986, allocations: 100.3 kB / 1.1 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.405e-05/0.9861, allocations: 52 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.9874, allocations: 0.6025 MB / 1.101 GB, free: 14 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.9874, allocations: 1.484 kB / 1.101 GB, free: 14 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.915e-05/0.9875, allocations: 21.72 kB / 1.101 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.9875, allocations: 12.69 kB / 1.101 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.9886, allocations: 426.4 kB / 1.101 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.9918, allocations: 2.097 MB / 1.103 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.9931, allocations: 0.4923 MB / 1.103 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.9936, allocations: 225.5 kB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.9937, allocations: 5.562 kB / 1.104 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008164/0.9945, allocations: 280.8 kB / 1.104 GB, free: 12 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=45): time 3.036e-06/0.9945, allocations: 0.6562 kB / 1.104 GB, free: 12 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45): time 0.001665/0.9962, allocations: 0.6056 MB / 1.105 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.9962, allocations: 95.59 kB / 1.105 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008854/0.9971, allocations: 0.6081 MB / 1.105 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.956e-05/0.9972, allocations: 37.86 kB / 1.105 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002971/0.9975, allocations: 355.3 kB / 1.106 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.9977, allocations: 153.8 kB / 1.106 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.9978, allocations: 94.89 kB / 1.106 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.998, allocations: 329.2 kB / 1.106 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.9984, allocations: 187.2 kB / 1.106 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.999, allocations: 279.6 kB / 1.107 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000931/0.9999, allocations: 478 kB / 1.107 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.9999, allocations: 3.938 kB / 1.107 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001257/1.001, allocations: 0.5945 MB / 1.108 GB, free: 9.773 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.361e-05/1.001, allocations: 37.55 kB / 1.108 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.001, allocations: 7.969 kB / 1.108 GB, free: 9.734 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/1.001, allocations: 4.625 kB / 1.108 GB, free: 9.734 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/1.002, allocations: 108.8 kB / 1.108 GB, free: 9.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.237e-05/1.002, allocations: 9.281 kB / 1.108 GB, free: 9.719 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004535/1.002, allocations: 64.36 kB / 1.108 GB, free: 9.684 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/1.002, allocations: 27.94 kB / 1.108 GB, free: 9.672 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006925/1.003, allocations: 304.1 kB / 1.108 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005549/1.004, allocations: 271.2 kB / 1.108 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009024/1.005, allocations: 450 kB / 1.109 GB, free: 9.047 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/1.005, allocations: 0 / 1.109 GB, free: 9.047 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001265/1.006, allocations: 0.5804 MB / 1.109 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/1.006, allocations: 41.2 kB / 1.109 GB, free: 8.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/1.006, allocations: 2.453 kB / 1.109 GB, free: 8.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.156e-06/1.006, allocations: 9.281 kB / 1.11 GB, free: 8.727 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/1.006, allocations: 103.6 kB / 1.11 GB, free: 8.715 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/1.006, allocations: 5.891 kB / 1.11 GB, free: 8.715 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/1.007, allocations: 52.17 kB / 1.11 GB, free: 8.688 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/1.007, allocations: 18.73 kB / 1.11 GB, free: 8.684 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.0002602/1.007, allocations: 212.5 kB / 1.11 GB, free: 8.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/1.007, allocations: 77.84 kB / 1.11 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/1.008, allocations: 80.05 kB / 1.11 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/1.008, allocations: 3.531 kB / 1.11 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/1.008, allocations: 1.406 kB / 1.11 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/1.008, allocations: 2.719 kB / 1.11 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/1.009, allocations: 0.6273 MB / 1.111 GB, free: 8.004 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/1.009, allocations: 0.7969 kB / 1.111 GB, free: 8.004 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004708/1.009, allocations: 84 kB / 1.111 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/1.009, allocations: 1.406 kB / 1.111 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/1.009, allocations: 12.88 kB / 1.111 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/1.009, allocations: 1.797 kB / 1.111 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/1.009, allocations: 0 / 1.111 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/1.011, allocations: 0.7304 MB / 1.111 GB, free: 7.648 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002525/1.011, allocations: 196.1 kB / 1.112 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/1.011, allocations: 11.06 kB / 1.112 GB, free: 7.473 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003914/1.012, allocations: 31.77 kB / 1.112 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/1.012, allocations: 29.98 kB / 1.112 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/1.012, allocations: 17.38 kB / 1.112 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007367/1.012, allocations: 438 kB / 1.112 GB, free: 7.27 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/1.012, allocations: 0 / 1.112 GB, free: 7.27 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000707/1.013, allocations: 210.3 kB / 1.112 GB, free: 7.219 MB / 0.8731 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.0001687/1.013, allocations: 115.9 kB / 1.112 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001762/1.015, allocations: 0.7874 MB / 1.113 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.015, allocations: 1.281 kB / 1.113 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004893/1.016, allocations: 217.1 kB / 1.113 GB, free: 6.699 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009801/1.017, allocations: 212.5 kB / 1.114 GB, free: 6.617 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/1.019, allocations: 1.206 MB / 1.115 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/1.019, allocations: 0.9204 MB / 1.116 GB, free: 5.223 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/1.02, allocations: 51.62 kB / 1.116 GB, free: 5.215 MB / 0.8731 GB Notification: Performance of SimCode: time 5.51e-07/1.02, allocations: 0 / 1.116 GB, free: 5.215 MB / 0.8731 GB Notification: Performance of Templates: time 0.022/1.042, allocations: 8.713 MB / 1.124 GB, free: 4.25 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