Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001427/0.001427, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.453/1.453, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.74/2.74, allocations: 461.8 MB / 0.7348 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 67.28 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3341, allocations: 157.4 MB / 1.053 GB, free: 8.395 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00574/0.3399, allocations: 3.714 MB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002938/0.3429, allocations: 1.309 MB / 1.058 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007841/0.3437, allocations: 27.88 kB / 1.058 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005089/0.3443, allocations: 95.09 kB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0008694/0.3452, allocations: 143 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.3466, allocations: 0.5296 MB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001234/0.3478, allocations: 0.8978 MB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006818/0.3485, allocations: 337.6 kB / 1.06 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005679/0.3491, allocations: 322.2 kB / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005158/0.3496, allocations: 322.1 kB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.3498, allocations: 36 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.3499, allocations: 36 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3501, allocations: 147.3 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003866/0.3505, allocations: 337.7 kB / 1.061 GB, free: 140 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.3511, allocations: 0.6395 MB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3512, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.71e-07/0.3512, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.389e-05/0.3512, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 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.002568/0.3538, allocations: 1.18 MB / 1.063 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.3538, allocations: 12.03 kB / 1.063 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002159/0.354, allocations: 95.75 kB / 1.063 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.3551, allocations: 0.5909 MB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3552, allocations: 101 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-05/0.3553, allocations: 52.28 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.3565, allocations: 0.608 MB / 1.064 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3566, allocations: 4 kB / 1.064 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-05/0.3566, allocations: 20 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.3567, allocations: 12 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.3577, allocations: 423.7 kB / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.3607, allocations: 2.122 MB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.362, allocations: 499 kB / 1.067 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.3625, allocations: 220.8 kB / 1.067 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.3625, allocations: 4 kB / 1.067 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000743/0.3633, allocations: 293.9 kB / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 3.186e-06/0.3633, allocations: 0 / 1.067 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001453/0.3647, allocations: 0.6113 MB / 1.068 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.765e-05/0.3648, allocations: 88.86 kB / 1.068 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007522/0.3656, allocations: 0.61 MB / 1.069 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.3656, allocations: 37.7 kB / 1.069 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.3659, allocations: 361.7 kB / 1.069 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.3661, allocations: 149.8 kB / 1.069 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.3662, allocations: 98.23 kB / 1.069 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3664, allocations: 322 kB / 1.07 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.3669, allocations: 191 kB / 1.07 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000508/0.3674, allocations: 280.2 kB / 1.07 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009485/0.3683, allocations: 474 kB / 1.071 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.3684, allocations: 7.875 kB / 1.071 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001246/0.3696, allocations: 0.6023 MB / 1.071 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.613e-05/0.3697, allocations: 33.73 kB / 1.071 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3697, allocations: 4 kB / 1.071 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.3697, allocations: 4 kB / 1.071 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.3702, allocations: 107.8 kB / 1.071 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.3702, allocations: 8 kB / 1.071 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.3706, allocations: 63.41 kB / 1.071 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.3707, allocations: 20 kB / 1.071 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005547/0.3712, allocations: 313.2 kB / 1.072 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004592/0.3717, allocations: 264.2 kB / 1.072 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008602/0.3726, allocations: 454 kB / 1.072 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.639e-06/0.3726, allocations: 4 kB / 1.072 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001089/0.3737, allocations: 0.5786 MB / 1.073 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3737, allocations: 35.42 kB / 1.073 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3737, allocations: 0 / 1.073 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.3738, allocations: 4 kB / 1.073 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.3742, allocations: 108.2 kB / 1.073 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.3742, allocations: 7.938 kB / 1.073 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.3746, allocations: 51.66 kB / 1.073 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.3746, allocations: 16 kB / 1.073 GB, free: 2.941 MB / 0.8262 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.0001993/0.3748, allocations: 216 kB / 1.073 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.375, allocations: 75.06 kB / 1.073 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.3751, allocations: 87.2 kB / 1.073 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3751, allocations: 4 kB / 1.073 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.3752, allocations: 0 / 1.073 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3752, allocations: 0 / 1.073 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007226/0.3759, allocations: 0.6257 MB / 1.074 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3759, allocations: 0 / 1.074 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004516/0.3764, allocations: 79.89 kB / 1.074 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.3764, allocations: 0 / 1.074 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.3764, allocations: 15.98 kB / 1.074 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3764, allocations: 0 / 1.074 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3764, allocations: 7.938 kB / 1.074 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.3779, allocations: 0.7314 MB / 1.075 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.3782, allocations: 200 kB / 1.075 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.38e-05/0.3783, allocations: 11.94 kB / 1.075 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003835/0.3787, allocations: 31.97 kB / 1.075 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.686e-05/0.3788, allocations: 35.94 kB / 1.075 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.3788, allocations: 15.98 kB / 1.075 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005352/0.3794, allocations: 431 kB / 1.076 GB, free: 312 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3794, allocations: 4 kB / 1.076 GB, free: 308 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006347/0.38, allocations: 215.4 kB / 1.076 GB, free: 92 kB / 0.8262 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.0001797/0.3802, allocations: 115.1 kB / 1.076 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001602/0.3818, allocations: 0.7809 MB / 1.077 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3818, allocations: 4 kB / 1.077 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004559/0.3823, allocations: 220.7 kB / 1.077 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008715/0.3832, allocations: 179.3 kB / 1.077 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.3856, allocations: 1.48 MB / 1.079 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.3861, allocations: 0.9143 MB / 1.079 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.3863, allocations: 59.38 kB / 1.079 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of SimCode: time 6.42e-07/0.3863, allocations: 4 kB / 1.079 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.0143/0.4006, allocations: 8.625 MB / 1.088 GB, free: 3.672 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches