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.00153/0.00153, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001846/0.001846, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.488/1.488, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.595/2.595, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.91 kB / 0.8685 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6103/0.6116, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004579/0.6162, allocations: 3.733 MB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002307/0.6185, allocations: 1.301 MB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003122/0.6189, allocations: 23.88 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002891/0.6192, allocations: 95.09 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004274/0.6196, allocations: 143.1 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.6206, allocations: 0.528 MB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007666/0.6214, allocations: 0.8978 MB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004628/0.6219, allocations: 341.6 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.6222, allocations: 322.3 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.6226, allocations: 322.1 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.534e-05/0.6227, allocations: 40 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.013e-05/0.6227, allocations: 36 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.6229, allocations: 147.2 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002521/0.6231, allocations: 329.8 kB / 1.025 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000617/0.6238, allocations: 0.8153 MB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.6238, allocations: 3.984 kB / 1.025 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.41e-07/0.6238, allocations: 0 / 1.025 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.6238, allocations: 0 / 1.025 GB, free: 9.742 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.001921/0.6257, allocations: 1.176 MB / 1.027 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.6258, allocations: 12.03 kB / 1.027 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.6259, allocations: 91.81 kB / 1.027 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008841/0.6268, allocations: 0.5948 MB / 1.027 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.6269, allocations: 101 kB / 1.027 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.627, allocations: 56.28 kB / 1.027 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.6281, allocations: 0.608 MB / 1.028 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.6281, allocations: 0 / 1.028 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.6282, allocations: 24 kB / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.6282, allocations: 12 kB / 1.028 GB, free: 6.918 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009545/0.6291, allocations: 435.6 kB / 1.028 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/0.6319, allocations: 2.11 MB / 1.03 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.6333, allocations: 0.5006 MB / 1.031 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005037/0.6338, allocations: 222.3 kB / 1.031 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.6338, allocations: 4 kB / 1.031 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008821/0.6347, allocations: 281.9 kB / 1.031 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 4.358e-06/0.6347, allocations: 7.938 kB / 1.031 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001635/0.6364, allocations: 0.6023 MB / 1.032 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/0.6365, allocations: 88.86 kB / 1.032 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008245/0.6373, allocations: 0.614 MB / 1.033 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.6374, allocations: 33.7 kB / 1.033 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003162/0.6377, allocations: 356.7 kB / 1.033 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.6379, allocations: 153.7 kB / 1.033 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.6381, allocations: 94.25 kB / 1.033 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.6383, allocations: 326 kB / 1.034 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005077/0.6388, allocations: 183 kB / 1.034 GB, free: 0.7891 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005149/0.6393, allocations: 289.3 kB / 1.034 GB, free: 484 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009455/0.6403, allocations: 474 kB / 1.035 GB, free: 15.97 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.6403, allocations: 3.938 kB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001314/0.6416, allocations: 0.5944 MB / 1.035 GB, free: 15.36 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.551e-05/0.6417, allocations: 37.69 kB / 1.035 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.6417, allocations: 4 kB / 1.035 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.6417, allocations: 4 kB / 1.035 GB, free: 15.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/0.6422, allocations: 111.8 kB / 1.035 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.6422, allocations: 4 kB / 1.035 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004475/0.6427, allocations: 75.56 kB / 1.035 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.6427, allocations: 20 kB / 1.035 GB, free: 15.1 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000565/0.6433, allocations: 305.2 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004458/0.6438, allocations: 264.3 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008128/0.6446, allocations: 465.8 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.6446, allocations: 4 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001064/0.6457, allocations: 0.5786 MB / 1.037 GB, free: 13.41 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.6457, allocations: 34.02 kB / 1.037 GB, free: 13.37 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6457, allocations: 8 kB / 1.037 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.941e-06/0.6457, allocations: 4 kB / 1.037 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.6462, allocations: 99.89 kB / 1.037 GB, free: 13.26 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.6462, allocations: 11.92 kB / 1.037 GB, free: 13.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003802/0.6466, allocations: 43.67 kB / 1.037 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.6466, allocations: 20 kB / 1.037 GB, free: 13.19 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.0001737/0.6468, allocations: 212.1 kB / 1.037 GB, free: 12.97 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.582e-05/0.6469, allocations: 83 kB / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.6471, allocations: 79.22 kB / 1.038 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.6471, allocations: 4 kB / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.6471, allocations: 0 / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.6471, allocations: 3.984 kB / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006368/0.6477, allocations: 0.6256 MB / 1.038 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.6478, allocations: 7.984 kB / 1.038 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004674/0.6482, allocations: 83.88 kB / 1.038 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.6482, allocations: 8 kB / 1.038 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.6483, allocations: 8 kB / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.6483, allocations: 0 / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6483, allocations: 0 / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.6498, allocations: 0.7325 MB / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.65, allocations: 184.2 kB / 1.039 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.753e-05/0.6501, allocations: 12 kB / 1.039 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.6505, allocations: 31.95 kB / 1.039 GB, free: 11.03 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.6506, allocations: 39.83 kB / 1.039 GB, free: 10.99 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.66e-05/0.6506, allocations: 19.98 kB / 1.039 GB, free: 10.97 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004616/0.6511, allocations: 431.1 kB / 1.04 GB, free: 10.56 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6511, allocations: 0 / 1.04 GB, free: 10.56 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005662/0.6517, allocations: 219.2 kB / 1.04 GB, free: 10.34 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.0001347/0.6518, allocations: 119.2 kB / 1.04 GB, free: 10.21 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001488/0.6533, allocations: 0.7815 MB / 1.041 GB, free: 9.406 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6533, allocations: 4 kB / 1.041 GB, free: 9.402 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004564/0.6538, allocations: 215.9 kB / 1.041 GB, free: 9.191 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008768/0.6547, allocations: 186.4 kB / 1.041 GB, free: 9.012 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.6567, allocations: 1.436 MB / 1.043 GB, free: 7.543 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.6571, allocations: 0.9144 MB / 1.043 GB, free: 6.602 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003744/0.6575, allocations: 93.23 kB / 1.044 GB, free: 6.512 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.6576, allocations: 51.42 kB / 1.044 GB, free: 6.461 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.6576, allocations: 0 / 1.044 GB, free: 6.461 MB / 0.795 GB Notification: Performance of Templates: time 0.01253/0.6702, allocations: 7.193 MB / 1.051 GB, free: 15.35 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=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/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