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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001505/0.001505, allocations: 103.9 kB / 16.35 MB, free: 5.824 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.001526/0.001526, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.442/2.442, allocations: 437.1 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 60.69 kB / 0.8707 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3405, allocations: 151.6 MB / 1.019 GB, free: 9.871 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005315/0.3459, allocations: 3.73 MB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.3488, allocations: 1.321 MB / 1.024 GB, free: 4.785 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004443/0.3493, allocations: 23.88 kB / 1.024 GB, free: 4.762 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003518/0.3496, allocations: 126.6 kB / 1.024 GB, free: 4.637 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005196/0.3503, allocations: 175 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.3515, allocations: 0.5791 MB / 1.025 GB, free: 3.898 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009705/0.3524, allocations: 0.9681 MB / 1.026 GB, free: 2.93 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000522/0.353, allocations: 349.6 kB / 1.026 GB, free: 2.574 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003981/0.3534, allocations: 362.4 kB / 1.026 GB, free: 2.219 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.3537, allocations: 350.1 kB / 1.027 GB, free: 1.875 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.3539, allocations: 83.94 kB / 1.027 GB, free: 1.793 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.754e-05/0.354, allocations: 76 kB / 1.027 GB, free: 1.719 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001594/0.3541, allocations: 183.2 kB / 1.027 GB, free: 1.539 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000297/0.3544, allocations: 377.7 kB / 1.027 GB, free: 1.168 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008214/0.3553, allocations: 0.8911 MB / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3553, allocations: 0 / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3553, allocations: 0 / 1.028 GB, free: 280 kB / 0.795 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.3553, allocations: 0 / 1.028 GB, free: 280 kB / 0.795 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.002078/0.3574, allocations: 1.184 MB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3574, allocations: 8.922 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.3576, allocations: 95.81 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.3586, allocations: 0.6143 MB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.3587, allocations: 92.97 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.789e-05/0.3588, allocations: 56.28 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.3599, allocations: 0.608 MB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3599, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/0.36, allocations: 24 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.36, allocations: 12 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009206/0.3609, allocations: 423.6 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/0.3637, allocations: 2.102 MB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3648, allocations: 0.4965 MB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.3653, allocations: 220.7 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.682e-05/0.3654, allocations: 12 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006039/0.366, allocations: 282.1 kB / 1.034 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=45): time 2.194e-06/0.366, allocations: 0 / 1.034 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=45): time 0.001404/0.3674, allocations: 0.6139 MB / 1.035 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.3675, allocations: 88.86 kB / 1.035 GB, free: 9.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007019/0.3682, allocations: 0.61 MB / 1.035 GB, free: 8.457 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.3682, allocations: 37.7 kB / 1.035 GB, free: 8.414 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002616/0.3685, allocations: 352.7 kB / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.3686, allocations: 157.7 kB / 1.036 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.3688, allocations: 94.25 kB / 1.036 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3689, allocations: 326 kB / 1.036 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.3693, allocations: 187 kB / 1.037 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/0.3698, allocations: 276.2 kB / 1.037 GB, free: 7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008539/0.3707, allocations: 477.9 kB / 1.037 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3707, allocations: 7.938 kB / 1.037 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001105/0.3718, allocations: 0.5983 MB / 1.038 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.3718, allocations: 37.69 kB / 1.038 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3719, allocations: 4 kB / 1.038 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.3719, allocations: 5.094 kB / 1.038 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004735/0.3724, allocations: 107.8 kB / 1.038 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.3724, allocations: 4 kB / 1.038 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.3728, allocations: 67.41 kB / 1.038 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-05/0.3728, allocations: 20.16 kB / 1.038 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005164/0.3733, allocations: 309.8 kB / 1.038 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004321/0.3738, allocations: 272.2 kB / 1.039 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007607/0.3745, allocations: 457.8 kB / 1.039 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.3746, allocations: 0 / 1.039 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001016/0.3756, allocations: 0.5786 MB / 1.04 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.3756, allocations: 33.7 kB / 1.04 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3756, allocations: 4.312 kB / 1.04 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.192e-06/0.3756, allocations: 8 kB / 1.04 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004188/0.3761, allocations: 107.8 kB / 1.04 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3761, allocations: 4 kB / 1.04 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.3764, allocations: 43.67 kB / 1.04 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.3765, allocations: 20 kB / 1.04 GB, free: 3.719 MB / 0.8106 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.0001951/0.3767, allocations: 221.3 kB / 1.04 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.345e-05/0.3768, allocations: 79.06 kB / 1.04 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.3769, allocations: 75.22 kB / 1.04 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.377, allocations: 4 kB / 1.04 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.377, allocations: 4 kB / 1.04 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.377, allocations: 7.922 kB / 1.04 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006634/0.3777, allocations: 0.6219 MB / 1.041 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3777, allocations: 0 / 1.041 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.3781, allocations: 83.88 kB / 1.041 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.3781, allocations: 4 kB / 1.041 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.3782, allocations: 12 kB / 1.041 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3782, allocations: 0 / 1.041 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3782, allocations: 0 / 1.041 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.3796, allocations: 0.7364 MB / 1.042 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.3798, allocations: 188.1 kB / 1.042 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.3799, allocations: 12 kB / 1.042 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003768/0.3803, allocations: 31.95 kB / 1.042 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.3804, allocations: 32.08 kB / 1.042 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.996e-05/0.3804, allocations: 23.97 kB / 1.042 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004838/0.3809, allocations: 435.1 kB / 1.042 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3809, allocations: 0 / 1.042 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005871/0.3815, allocations: 215.3 kB / 1.043 GB, free: 0.8672 MB / 0.8106 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.0001562/0.3817, allocations: 111.2 kB / 1.043 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001473/0.3832, allocations: 0.7815 MB / 1.043 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3832, allocations: 0 / 1.043 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004345/0.3836, allocations: 223.9 kB / 1.044 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008358/0.3845, allocations: 204.5 kB / 1.044 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.3864, allocations: 1.172 MB / 1.045 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.3869, allocations: 0.918 MB / 1.046 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003388/0.3872, allocations: 97.05 kB / 1.046 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.3874, allocations: 47.42 kB / 1.046 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3874, allocations: 0 / 1.046 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of Templates: time 0.01371/0.4011, allocations: 7.575 MB / 1.053 GB, free: 5.754 MB / 0.8262 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 -s cvode -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