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.001568/0.001568, allocations: 106.5 kB / 16.27 MB, free: 5.984 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.001573/0.001574, allocations: 191.7 kB / 17.2 MB, free: 5.621 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.399/1.399, allocations: 222.9 MB / 240.9 MB, free: 15.24 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.576/2.576, allocations: 437.1 MB / 0.7111 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001929, allocations: 67.39 kB / 0.8699 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3311, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005434/0.3366, allocations: 3.707 MB / 1.022 GB, free: 6.918 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002697/0.3393, allocations: 1.332 MB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.3397, allocations: 27.88 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003505/0.3401, allocations: 122.6 kB / 1.023 GB, free: 5.43 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005116/0.3406, allocations: 174.5 kB / 1.023 GB, free: 5.258 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.3419, allocations: 0.5836 MB / 1.024 GB, free: 4.684 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001027/0.3429, allocations: 0.9526 MB / 1.025 GB, free: 3.73 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006005/0.3435, allocations: 357.5 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006281/0.3442, allocations: 354.4 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004793/0.3447, allocations: 350.1 kB / 1.026 GB, free: 2.672 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.3448, allocations: 76 kB / 1.026 GB, free: 2.598 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.345, allocations: 84 kB / 1.026 GB, free: 2.516 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.3452, allocations: 187.2 kB / 1.026 GB, free: 2.332 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0004228/0.3456, allocations: 373.7 kB / 1.026 GB, free: 1.965 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.3466, allocations: 0.8644 MB / 1.027 GB, free: 1.098 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3466, allocations: 0 / 1.027 GB, free: 1.098 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.896e-06/0.3467, allocations: 0 / 1.027 GB, free: 1.098 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.3467, allocations: 0 / 1.027 GB, free: 1.098 MB / 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.002458/0.3491, allocations: 1.18 MB / 1.028 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.3492, allocations: 12.92 kB / 1.028 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.3494, allocations: 91.81 kB / 1.028 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.3505, allocations: 0.5948 MB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.3506, allocations: 96.97 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.3508, allocations: 60.27 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.352, allocations: 0.5964 MB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.352, allocations: 4 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.3521, allocations: 20 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.3521, allocations: 12 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.3531, allocations: 427.6 kB / 1.03 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003064/0.3562, allocations: 2.114 MB / 1.032 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.3575, allocations: 0.5057 MB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004794/0.358, allocations: 212.8 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.358, allocations: 11.94 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.3587, allocations: 278 kB / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=45): time 2.384e-06/0.3588, allocations: 4 kB / 1.033 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of matching and sorting (n=45): time 0.001559/0.3603, allocations: 0.6151 MB / 1.034 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.3604, allocations: 92.86 kB / 1.034 GB, free: 9.914 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007714/0.3612, allocations: 0.61 MB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.3613, allocations: 37.7 kB / 1.035 GB, free: 9.254 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/0.3616, allocations: 360.8 kB / 1.035 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.3618, allocations: 157.7 kB / 1.035 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.3619, allocations: 90.25 kB / 1.035 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3621, allocations: 326 kB / 1.036 GB, free: 8.324 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.3625, allocations: 187 kB / 1.036 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005597/0.3631, allocations: 276.2 kB / 1.036 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009889/0.3641, allocations: 477.9 kB / 1.036 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.3641, allocations: 7.938 kB / 1.036 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00128/0.3654, allocations: 0.5945 MB / 1.037 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.92e-05/0.3655, allocations: 33.69 kB / 1.037 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3655, allocations: 4 kB / 1.037 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3655, allocations: 4 kB / 1.037 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/0.366, allocations: 107.8 kB / 1.037 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.366, allocations: 8 kB / 1.037 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.3665, allocations: 63.41 kB / 1.037 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.713e-05/0.3665, allocations: 24.03 kB / 1.037 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006084/0.3671, allocations: 313.2 kB / 1.038 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004793/0.3676, allocations: 264.3 kB / 1.038 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008689/0.3685, allocations: 453.8 kB / 1.038 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.072e-06/0.3685, allocations: 7.984 kB / 1.038 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001169/0.3697, allocations: 0.5786 MB / 1.039 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.3697, allocations: 33.7 kB / 1.039 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3698, allocations: 320 / 1.039 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.3698, allocations: 12 kB / 1.039 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.3702, allocations: 103.8 kB / 1.039 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3703, allocations: 4 kB / 1.039 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/0.3706, allocations: 47.67 kB / 1.039 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.3707, allocations: 19.98 kB / 1.039 GB, free: 4.559 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.0002228/0.3709, allocations: 217.7 kB / 1.039 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.3711, allocations: 79.06 kB / 1.039 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.3712, allocations: 83.22 kB / 1.039 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3713, allocations: 7.938 kB / 1.039 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3713, allocations: 0 / 1.039 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3713, allocations: 3.984 kB / 1.039 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000745/0.372, allocations: 0.6218 MB / 1.04 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.372, allocations: 0 / 1.04 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.3725, allocations: 87.88 kB / 1.04 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3725, allocations: 0 / 1.04 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.3726, allocations: 12 kB / 1.04 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.3726, allocations: 0 / 1.04 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3726, allocations: 4 kB / 1.04 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.3741, allocations: 0.7314 MB / 1.041 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002525/0.3744, allocations: 192 kB / 1.041 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.3745, allocations: 12 kB / 1.041 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004055/0.3749, allocations: 31.95 kB / 1.041 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.375, allocations: 31.95 kB / 1.041 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.912e-05/0.3751, allocations: 19.98 kB / 1.041 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005424/0.3756, allocations: 435 kB / 1.041 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3756, allocations: 0 / 1.041 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006468/0.3763, allocations: 211.4 kB / 1.042 GB, free: 1.715 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.0001777/0.3765, allocations: 111.2 kB / 1.042 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001841/0.3783, allocations: 0.7999 MB / 1.043 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.3783, allocations: 5.188 kB / 1.043 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004916/0.3788, allocations: 215.9 kB / 1.043 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009227/0.3797, allocations: 200.2 kB / 1.043 GB, free: 376 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.3821, allocations: 1.24 MB / 1.044 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005454/0.3826, allocations: 0.918 MB / 1.045 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.3828, allocations: 51.42 kB / 1.045 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of SimCode: time 7.01e-07/0.3828, allocations: 3.938 kB / 1.045 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.01455/0.3974, allocations: 8.635 MB / 1.054 GB, free: 5.5 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=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/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