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.001378/0.001379, allocations: 108 kB / 15.6 MB, free: 132 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.001364/0.001365, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.571/1.571, allocations: 222.9 MB / 240.2 MB, free: 4.43 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.943/2.943, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 59.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7646/0.7666, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005793/0.7724, allocations: 3.718 MB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002751/0.7752, allocations: 1.321 MB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003718/0.7756, allocations: 23.88 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003521/0.776, allocations: 130.6 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005083/0.7765, allocations: 166.6 kB / 1.023 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.7777, allocations: 0.5812 MB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001084/0.7788, allocations: 0.9565 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005858/0.7794, allocations: 345.6 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004731/0.7799, allocations: 362.4 kB / 1.025 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000419/0.7803, allocations: 358 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.7804, allocations: 80 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.7806, allocations: 80 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.7807, allocations: 187.2 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004613/0.7812, allocations: 373.7 kB / 1.026 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.7823, allocations: 0.8583 MB / 1.027 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.7823, allocations: 0 / 1.027 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.66e-06/0.7823, allocations: 0 / 1.027 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.7823, allocations: 3.938 kB / 1.027 GB, free: 8.957 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.002195/0.7845, allocations: 1.18 MB / 1.028 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.7846, allocations: 12.03 kB / 1.028 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.7847, allocations: 91.81 kB / 1.028 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.7858, allocations: 0.5948 MB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.786, allocations: 104.9 kB / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.7861, allocations: 56.28 kB / 1.029 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.7873, allocations: 0.6003 MB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.7873, allocations: 4 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.578e-05/0.7874, allocations: 20 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.7874, allocations: 12 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.7884, allocations: 427.6 kB / 1.03 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003095/0.7915, allocations: 2.11 MB / 1.032 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.7928, allocations: 0.4962 MB / 1.032 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004905/0.7933, allocations: 220.8 kB / 1.032 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.009e-05/0.7934, allocations: 7.984 kB / 1.032 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007691/0.7941, allocations: 293.9 kB / 1.033 GB, free: 2.492 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.514e-06/0.7942, allocations: 0 / 1.033 GB, free: 2.492 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001583/0.7957, allocations: 0.5996 MB / 1.033 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.384e-05/0.7958, allocations: 93.95 kB / 1.033 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007748/0.7966, allocations: 0.61 MB / 1.034 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.7967, allocations: 41.64 kB / 1.034 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003113/0.797, allocations: 352.8 kB / 1.034 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.7971, allocations: 157.7 kB / 1.034 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.7973, allocations: 94.23 kB / 1.035 GB, free: 0.5117 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.7975, allocations: 326 kB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004605/0.798, allocations: 187 kB / 1.035 GB, free: 4 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005963/0.7986, allocations: 280.2 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/0.7995, allocations: 478 kB / 1.036 GB, free: 15.19 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.7996, allocations: 3.938 kB / 1.036 GB, free: 15.19 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001254/0.8008, allocations: 0.6061 MB / 1.036 GB, free: 14.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/0.8009, allocations: 29.7 kB / 1.036 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.8009, allocations: 4 kB / 1.036 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.8009, allocations: 4 kB / 1.036 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/0.8014, allocations: 107.8 kB / 1.036 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.8014, allocations: 11.98 kB / 1.036 GB, free: 14.41 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/0.8019, allocations: 63.36 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.8019, allocations: 28.14 kB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007506/0.8027, allocations: 305.2 kB / 1.037 GB, free: 14.02 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004758/0.8031, allocations: 268.2 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001039/0.8042, allocations: 453.8 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.907e-06/0.8042, allocations: 4 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001164/0.8054, allocations: 0.5786 MB / 1.038 GB, free: 12.64 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.8054, allocations: 38.94 kB / 1.038 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.8054, allocations: 320 / 1.038 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.332e-06/0.8055, allocations: 8 kB / 1.038 GB, free: 12.59 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.8059, allocations: 103.8 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.8059, allocations: 4 kB / 1.038 GB, free: 12.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.8063, allocations: 51.66 kB / 1.038 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.8063, allocations: 16 kB / 1.038 GB, free: 12.41 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.0002066/0.8066, allocations: 212.1 kB / 1.039 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.8067, allocations: 79.06 kB / 1.039 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.8068, allocations: 83.2 kB / 1.039 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.8068, allocations: 4 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.8069, allocations: 3.938 kB / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.8069, allocations: 0 / 1.039 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008507/0.8077, allocations: 0.6296 MB / 1.039 GB, free: 11.35 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.8077, allocations: 0 / 1.039 GB, free: 11.35 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.8082, allocations: 79.89 kB / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.8082, allocations: 3.938 kB / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.8083, allocations: 19.98 kB / 1.039 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.8083, allocations: 0 / 1.039 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.8083, allocations: 0 / 1.039 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.8099, allocations: 0.7314 MB / 1.04 GB, free: 10.49 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.8102, allocations: 188.2 kB / 1.04 GB, free: 10.29 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.8103, allocations: 8 kB / 1.04 GB, free: 10.28 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.8107, allocations: 35.95 kB / 1.04 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.8108, allocations: 28.09 kB / 1.04 GB, free: 10.22 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.8109, allocations: 19.98 kB / 1.04 GB, free: 10.2 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005318/0.8114, allocations: 439 kB / 1.041 GB, free: 9.777 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8114, allocations: 0 / 1.041 GB, free: 9.777 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006149/0.812, allocations: 219.2 kB / 1.041 GB, free: 9.562 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.0001635/0.8122, allocations: 111.2 kB / 1.041 GB, free: 9.441 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002024/0.8142, allocations: 0.8049 MB / 1.042 GB, free: 8.613 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.8142, allocations: 0 / 1.042 GB, free: 8.613 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005012/0.8148, allocations: 220 kB / 1.042 GB, free: 8.398 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009279/0.8157, allocations: 208.5 kB / 1.042 GB, free: 8.203 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.818, allocations: 1.188 MB / 1.043 GB, free: 6.984 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007296/0.8188, allocations: 0.9296 MB / 1.044 GB, free: 6.027 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004246/0.8192, allocations: 85.14 kB / 1.044 GB, free: 5.945 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.8193, allocations: 47.42 kB / 1.044 GB, free: 5.898 MB / 0.795 GB Notification: Performance of SimCode: time 5.71e-07/0.8193, allocations: 0 / 1.044 GB, free: 5.898 MB / 0.795 GB Notification: Performance of Templates: time 0.017/0.8364, allocations: 7.58 MB / 1.052 GB, free: 14.41 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