Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001421/0.001421, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001276/0.001276, allocations: 192.3 kB / 16.25 MB, free: 6.629 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.534/1.534, allocations: 222.9 MB / 239.9 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.946/2.946, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002548/0.002548, allocations: 63.89 kB / 0.8687 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.827/0.8296, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005463/0.8351, allocations: 3.735 MB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002788/0.8379, allocations: 1.297 MB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000512/0.8384, allocations: 23.88 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003615/0.8388, allocations: 91.11 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005297/0.8394, allocations: 135.1 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.8406, allocations: 0.5424 MB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001114/0.8418, allocations: 0.9642 MB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.8424, allocations: 353.6 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004839/0.8429, allocations: 366.3 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000385/0.8433, allocations: 346.1 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.8434, allocations: 80 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.8435, allocations: 76 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.8437, allocations: 183.2 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003557/0.844, allocations: 381.7 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009427/0.845, allocations: 0.866 MB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.845, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.944e-06/0.845, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.265e-05/0.845, allocations: 0 / 1.026 GB, free: 9.266 MB / 0.7794 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.002254/0.8473, allocations: 1.168 MB / 1.027 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.8473, allocations: 12.03 kB / 1.027 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001813/0.8475, allocations: 99.8 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000967/0.8485, allocations: 0.5948 MB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.8486, allocations: 92.97 kB / 1.028 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.757e-05/0.8488, allocations: 56.28 kB / 1.028 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.85, allocations: 0.6041 MB / 1.029 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.85, allocations: 4 kB / 1.029 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.143e-05/0.8501, allocations: 24 kB / 1.029 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.8501, allocations: 12 kB / 1.029 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009944/0.8511, allocations: 427.6 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.8541, allocations: 2.118 MB / 1.031 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.8553, allocations: 0.4951 MB / 1.032 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/0.8558, allocations: 222.8 kB / 1.032 GB, free: 3.105 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.695e-05/0.8559, allocations: 9.094 kB / 1.032 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000772/0.8567, allocations: 277.9 kB / 1.032 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.746e-06/0.8567, allocations: 0 / 1.032 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001568/0.8582, allocations: 0.6112 MB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.431e-05/0.8583, allocations: 84.86 kB / 1.033 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007699/0.8591, allocations: 0.614 MB / 1.033 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.8592, allocations: 33.7 kB / 1.033 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.8595, allocations: 360.7 kB / 1.034 GB, free: 1.078 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.8597, allocations: 153.7 kB / 1.034 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.8598, allocations: 94.25 kB / 1.034 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.86, allocations: 329.9 kB / 1.034 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004391/0.8604, allocations: 179 kB / 1.034 GB, free: 332 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005116/0.861, allocations: 284.2 kB / 1.035 GB, free: 8 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/0.8619, allocations: 473.9 kB / 1.035 GB, free: 15.51 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.8619, allocations: 7.938 kB / 1.035 GB, free: 15.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001241/0.8632, allocations: 0.5943 MB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.8632, allocations: 37.69 kB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.8632, allocations: 4 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.8633, allocations: 4.312 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004963/0.8638, allocations: 115.8 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.8638, allocations: 4 kB / 1.036 GB, free: 14.72 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000401/0.8642, allocations: 71.34 kB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.8642, allocations: 16 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005938/0.8648, allocations: 305.2 kB / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000479/0.8653, allocations: 272.2 kB / 1.036 GB, free: 14.04 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008577/0.8662, allocations: 461.8 kB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.8662, allocations: 0 / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001111/0.8673, allocations: 0.5825 MB / 1.037 GB, free: 12.95 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.8674, allocations: 33.7 kB / 1.038 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.8674, allocations: 8 kB / 1.038 GB, free: 12.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.166e-06/0.8674, allocations: 4 kB / 1.038 GB, free: 12.9 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.8679, allocations: 103.9 kB / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.8679, allocations: 8.25 kB / 1.038 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.8682, allocations: 47.67 kB / 1.038 GB, free: 12.74 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.8683, allocations: 20 kB / 1.038 GB, free: 12.72 MB / 0.795 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.0002352/0.8685, allocations: 212.9 kB / 1.038 GB, free: 12.51 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.8686, allocations: 79 kB / 1.038 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.8688, allocations: 75.22 kB / 1.038 GB, free: 12.35 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.8688, allocations: 8 kB / 1.038 GB, free: 12.34 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.8689, allocations: 0 / 1.038 GB, free: 12.34 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.8689, allocations: 11.92 kB / 1.038 GB, free: 12.33 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007784/0.8697, allocations: 0.6257 MB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.8697, allocations: 0 / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.8701, allocations: 83.88 kB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.8702, allocations: 4 kB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.492e-05/0.8702, allocations: 8 kB / 1.039 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.8702, allocations: 0 / 1.039 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.8702, allocations: 0 / 1.039 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.8718, allocations: 0.7392 MB / 1.04 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.8721, allocations: 180.2 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.8721, allocations: 16 kB / 1.04 GB, free: 10.59 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004025/0.8725, allocations: 31.95 kB / 1.04 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.8727, allocations: 39.89 kB / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.8727, allocations: 11.98 kB / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005548/0.8733, allocations: 431.1 kB / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8733, allocations: 0 / 1.04 GB, free: 10.09 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006389/0.8739, allocations: 219.2 kB / 1.04 GB, free: 9.879 MB / 0.795 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.0002107/0.8741, allocations: 123.2 kB / 1.041 GB, free: 9.746 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001802/0.876, allocations: 0.8043 MB / 1.041 GB, free: 8.918 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.876, allocations: 0 / 1.041 GB, free: 8.918 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004816/0.8765, allocations: 215.9 kB / 1.041 GB, free: 8.707 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009615/0.8774, allocations: 207.8 kB / 1.042 GB, free: 8.512 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.8797, allocations: 1.437 MB / 1.043 GB, free: 7.043 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005818/0.8803, allocations: 0.9141 MB / 1.044 GB, free: 6.102 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004199/0.8807, allocations: 89.11 kB / 1.044 GB, free: 6.016 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.8809, allocations: 55.44 kB / 1.044 GB, free: 5.961 MB / 0.795 GB Notification: Performance of SimCode: time 6.31e-07/0.8809, allocations: 0 / 1.044 GB, free: 5.961 MB / 0.795 GB Notification: Performance of Templates: time 0.01572/0.8966, allocations: 7.523 MB / 1.051 GB, free: 14.53 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches