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.001315/0.001315, allocations: 109.1 kB / 16.41 MB, free: 6.438 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.001339/0.001339, allocations: 190.7 kB / 17.35 MB, free: 5.703 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.365/1.365, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.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.542/2.542, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 60.09 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8438/0.8454, allocations: 151.6 MB / 1.167 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004589/0.85, allocations: 3.717 MB / 1.171 GB, free: 60 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002414/0.8524, allocations: 1.332 MB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003364/0.8528, allocations: 23.88 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.8531, allocations: 126.6 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.8536, allocations: 178.5 kB / 1.173 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.8547, allocations: 0.5729 MB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008888/0.8556, allocations: 0.9681 MB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004706/0.8561, allocations: 353.5 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.8564, allocations: 374.5 kB / 1.175 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003315/0.8568, allocations: 350 kB / 1.175 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.8569, allocations: 80 kB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.857, allocations: 76 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.8572, allocations: 183.2 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.8574, allocations: 385.7 kB / 1.176 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007517/0.8582, allocations: 0.8928 MB / 1.177 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.8582, allocations: 0 / 1.177 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.292e-06/0.8582, allocations: 0 / 1.177 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.8582, allocations: 0 / 1.177 GB, free: 10.19 MB / 0.9044 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.001925/0.8602, allocations: 1.183 MB / 1.178 GB, free: 8.949 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.8602, allocations: 12.92 kB / 1.178 GB, free: 8.938 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.8604, allocations: 91.81 kB / 1.178 GB, free: 8.848 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000996/0.8614, allocations: 0.6143 MB / 1.178 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.8615, allocations: 100.9 kB / 1.179 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.022e-05/0.8616, allocations: 56.38 kB / 1.179 GB, free: 8.023 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.8626, allocations: 0.6042 MB / 1.179 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.8626, allocations: 0 / 1.179 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.228e-05/0.8627, allocations: 24 kB / 1.179 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.8627, allocations: 12 kB / 1.179 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009369/0.8637, allocations: 423.6 kB / 1.18 GB, free: 6.93 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.8663, allocations: 2.094 MB / 1.182 GB, free: 4.75 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.8674, allocations: 0.5035 MB / 1.182 GB, free: 4.234 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004488/0.8679, allocations: 217.3 kB / 1.182 GB, free: 4.02 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.868, allocations: 4 kB / 1.182 GB, free: 4.016 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000624/0.8686, allocations: 285.9 kB / 1.183 GB, free: 3.723 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 2.265e-06/0.8686, allocations: 4 kB / 1.183 GB, free: 3.719 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001418/0.87, allocations: 0.6023 MB / 1.183 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.8701, allocations: 92.8 kB / 1.183 GB, free: 3 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006699/0.8708, allocations: 0.614 MB / 1.184 GB, free: 2.379 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.8708, allocations: 33.7 kB / 1.184 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.8711, allocations: 356.8 kB / 1.184 GB, free: 1.984 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.8712, allocations: 157.7 kB / 1.184 GB, free: 1.828 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.8714, allocations: 102.1 kB / 1.185 GB, free: 1.723 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.8715, allocations: 333.9 kB / 1.185 GB, free: 1.391 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004381/0.8719, allocations: 183 kB / 1.185 GB, free: 1.211 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.8724, allocations: 276.2 kB / 1.185 GB, free: 0.9062 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009073/0.8734, allocations: 474 kB / 1.186 GB, free: 412 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.8734, allocations: 0 / 1.186 GB, free: 412 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001274/0.8747, allocations: 0.606 MB / 1.186 GB, free: 15.78 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.8747, allocations: 33.7 kB / 1.186 GB, free: 15.74 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.8747, allocations: 4 kB / 1.186 GB, free: 15.74 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.8748, allocations: 4 kB / 1.186 GB, free: 15.73 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004993/0.8753, allocations: 111.8 kB / 1.187 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.8753, allocations: 7.984 kB / 1.187 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.8757, allocations: 63.67 kB / 1.187 GB, free: 15.55 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.8757, allocations: 23.98 kB / 1.187 GB, free: 15.53 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006236/0.8764, allocations: 309.2 kB / 1.187 GB, free: 15.23 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004526/0.8768, allocations: 264.2 kB / 1.187 GB, free: 14.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008289/0.8777, allocations: 450 kB / 1.188 GB, free: 14.46 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.874e-06/0.8777, allocations: 0 / 1.188 GB, free: 14.46 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001079/0.8788, allocations: 0.5864 MB / 1.188 GB, free: 13.86 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.8788, allocations: 36.19 kB / 1.188 GB, free: 13.82 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.8788, allocations: 8.312 kB / 1.188 GB, free: 13.81 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.882e-06/0.8788, allocations: 4 kB / 1.188 GB, free: 13.8 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/0.8793, allocations: 103.8 kB / 1.188 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.8793, allocations: 4 kB / 1.188 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.8797, allocations: 51.56 kB / 1.188 GB, free: 13.65 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.8798, allocations: 23.94 kB / 1.188 GB, free: 13.62 MB / 0.92 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.0001915/0.88, allocations: 218.3 kB / 1.189 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.944e-05/0.88, allocations: 75.16 kB / 1.189 GB, free: 13.33 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.8802, allocations: 83.2 kB / 1.189 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.8802, allocations: 0 / 1.189 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8802, allocations: 0 / 1.189 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.8805, allocations: 192 kB / 1.189 GB, free: 13.04 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.8806, allocations: 12 kB / 1.189 GB, free: 13.03 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.881, allocations: 35.95 kB / 1.189 GB, free: 13 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.965e-05/0.8811, allocations: 39.89 kB / 1.189 GB, free: 12.96 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001402/0.8825, allocations: 0.556 MB / 1.19 GB, free: 12.39 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001575/0.8841, allocations: 0.8892 MB / 1.19 GB, free: 11.48 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004244/0.8845, allocations: 208.4 kB / 1.191 GB, free: 11.28 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004781/0.885, allocations: 427.1 kB / 1.191 GB, free: 10.87 MB / 0.92 GB Notification: Performance of Backend: time 4.81e-07/0.885, allocations: 0 / 1.191 GB, free: 10.87 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001618/0.8866, allocations: 0.7166 MB / 1.192 GB, free: 10.12 MB / 0.92 GB Notification: Performance of SimCode: time 0.00246/0.8891, allocations: 1.669 MB / 1.193 GB, free: 8.414 MB / 0.92 GB Notification: Performance of Templates: time 0.01937/0.9085, allocations: 10.51 MB / 1.204 GB, free: 14 MB / 0.9356 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=480 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches