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.001123/0.001124, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009503/0.009503, allocations: 173.3 kB / 16.26 MB, free: 6.676 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.472/1.472, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.565/2.565, allocations: 390.9 MB / 0.6663 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004978/0.0004978, allocations: 8 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8368/0.8373, allocations: 142.4 MB / 0.955 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004816/0.8422, allocations: 3.318 MB / 0.9583 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004016/0.8463, allocations: 1.271 MB / 0.9595 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.8476, allocations: 25.12 kB / 0.9595 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004335/0.8481, allocations: 98.81 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007517/0.8489, allocations: 140.7 kB / 0.9598 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.8501, allocations: 0.5186 MB / 0.9603 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009221/0.8511, allocations: 0.8893 MB / 0.9611 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005246/0.8516, allocations: 343.7 kB / 0.9615 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.8519, allocations: 281.4 kB / 0.9617 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.8522, allocations: 275.1 kB / 0.962 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.553e-05/0.8523, allocations: 21.12 kB / 0.962 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.905e-05/0.8524, allocations: 21.62 kB / 0.962 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.782e-05/0.8525, allocations: 113.8 kB / 0.9621 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002213/0.8527, allocations: 329.5 kB / 0.9625 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005958/0.8533, allocations: 0.7906 MB / 0.9632 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.8533, allocations: 0 / 0.9632 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8534, allocations: 0 / 0.9632 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.8534, allocations: 0 / 0.9632 GB, free: 1.277 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.001773/0.8551, allocations: 1.049 MB / 0.9643 GB, free: 452 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.8552, allocations: 8.938 kB / 0.9643 GB, free: 452 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.8554, allocations: 97.88 kB / 0.9644 GB, free: 400 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009085/0.8563, allocations: 0.6 MB / 0.9649 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/0.8564, allocations: 100.7 kB / 0.965 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.435e-05/0.8565, allocations: 55.44 kB / 0.9651 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.8578, allocations: 0.6199 MB / 0.9657 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.8578, allocations: 1.094 kB / 0.9657 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.235e-05/0.8579, allocations: 21.69 kB / 0.9657 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.8579, allocations: 16.58 kB / 0.9657 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.859, allocations: 440.4 kB / 0.9662 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003253/0.8623, allocations: 2.133 MB / 0.9682 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.8637, allocations: 0.5246 MB / 0.9688 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005471/0.8643, allocations: 236.9 kB / 0.969 GB, free: 13 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/0.8643, allocations: 4.688 kB / 0.969 GB, free: 13 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000787/0.8651, allocations: 300 kB / 0.9693 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 3.406e-06/0.8651, allocations: 1 kB / 0.9693 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001698/0.8668, allocations: 0.6384 MB / 0.9699 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.8669, allocations: 91.2 kB / 0.97 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008567/0.8678, allocations: 0.6105 MB / 0.9706 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.43e-05/0.8679, allocations: 36.67 kB / 0.9706 GB, free: 12 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.8682, allocations: 357.9 kB / 0.971 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.8683, allocations: 160.8 kB / 0.9711 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.148e-05/0.8684, allocations: 49.22 kB / 0.9712 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.8686, allocations: 330.5 kB / 0.9715 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.869, allocations: 184.7 kB / 0.9716 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005789/0.8696, allocations: 289 kB / 0.9719 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.8707, allocations: 0.4918 MB / 0.9724 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/0.8707, allocations: 8.906 kB / 0.9724 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00138/0.8721, allocations: 0.6112 MB / 0.973 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.8723, allocations: 193.2 kB / 0.9732 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.8723, allocations: 3.375 kB / 0.9732 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.8723, allocations: 4.719 kB / 0.9732 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/0.8728, allocations: 108.3 kB / 0.9733 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.8729, allocations: 9.312 kB / 0.9733 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.8733, allocations: 75.69 kB / 0.9734 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.8734, allocations: 17.75 kB / 0.9734 GB, free: 9.949 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.8734, allocations: 7.969 kB / 0.9734 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001163/0.8746, allocations: 0.5045 MB / 0.9739 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.8746, allocations: 2.219 kB / 0.9739 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/0.8746, allocations: 5.125 kB / 0.9739 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000497/0.8751, allocations: 109 kB / 0.974 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.8751, allocations: 8.672 kB / 0.974 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.8755, allocations: 53.45 kB / 0.9741 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.8756, allocations: 18.06 kB / 0.9741 GB, free: 9.621 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.0004964/0.8761, allocations: 284 kB / 0.9744 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.8763, allocations: 76.84 kB / 0.9744 GB, free: 9.324 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.8765, allocations: 85.64 kB / 0.9745 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.8765, allocations: 4.75 kB / 0.9745 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.8765, allocations: 1.062 kB / 0.9745 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.8765, allocations: 3.984 kB / 0.9745 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000945/0.8775, allocations: 0.6141 MB / 0.9751 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.8775, allocations: 5.312 kB / 0.9751 GB, free: 8.742 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/0.878, allocations: 85 kB / 0.9752 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.878, allocations: 6.719 kB / 0.9752 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.683e-05/0.8781, allocations: 10.31 kB / 0.9752 GB, free: 8.711 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.8781, allocations: 2.844 kB / 0.9752 GB, free: 8.711 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.8781, allocations: 4 kB / 0.9752 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.88, allocations: 0.7475 MB / 0.976 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.8803, allocations: 201.4 kB / 0.9762 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.621e-05/0.8804, allocations: 10.41 kB / 0.9762 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004295/0.8808, allocations: 46.08 kB / 0.9762 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.8809, allocations: 31.23 kB / 0.9762 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.881, allocations: 17.39 kB / 0.9763 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006566/0.8816, allocations: 434.4 kB / 0.9767 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.8e-07/0.8816, allocations: 0 / 0.9767 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007351/0.8824, allocations: 210.2 kB / 0.9769 GB, free: 7.766 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.000195/0.8826, allocations: 110.5 kB / 0.977 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001763/0.8844, allocations: 0.8147 MB / 0.9778 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8844, allocations: 0.75 kB / 0.9778 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005094/0.8849, allocations: 233.4 kB / 0.978 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009991/0.8859, allocations: 188.2 kB / 0.9782 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.8881, allocations: 1.472 MB / 0.9796 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.8886, allocations: 0.9144 MB / 0.9805 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003835/0.889, allocations: 93.23 kB / 0.9806 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.8891, allocations: 51.44 kB / 0.9806 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.8891, allocations: 0 / 0.9806 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of Templates: time 0.014/0.9031, allocations: 7.129 MB / 0.9876 GB, free: 13.41 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