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.001448/0.001449, allocations: 108 kB / 15.61 MB, free: 152 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.001676/0.001676, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.371 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.598/2.598, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 0.8692 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6676/0.6688, allocations: 151.6 MB / 1.017 GB, free: 2.531 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005288/0.6741, allocations: 3.715 MB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002579/0.6768, allocations: 1.321 MB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003877/0.6772, allocations: 23.88 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.6775, allocations: 126.6 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005468/0.6781, allocations: 178.5 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.6793, allocations: 0.5761 MB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009599/0.6803, allocations: 0.9682 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005198/0.6808, allocations: 341.6 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.6812, allocations: 366.4 kB / 1.025 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/0.6816, allocations: 354.1 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.6818, allocations: 76 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.6819, allocations: 80 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.682, allocations: 171.3 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.6824, allocations: 381.7 kB / 1.026 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007832/0.6831, allocations: 0.8583 MB / 1.027 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.6832, allocations: 7.938 kB / 1.027 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.983e-06/0.6832, allocations: 3.938 kB / 1.027 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.6832, allocations: 0 / 1.027 GB, free: 8.984 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.00204/0.6852, allocations: 1.177 MB / 1.028 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.6853, allocations: 12.03 kB / 1.028 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000165/0.6855, allocations: 95.81 kB / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000879/0.6863, allocations: 0.5947 MB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.6865, allocations: 96.95 kB / 1.028 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.863e-05/0.6865, allocations: 56.28 kB / 1.029 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.6876, allocations: 0.6003 MB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.6876, allocations: 7.875 kB / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.6877, allocations: 28 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.6877, allocations: 12 kB / 1.029 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.6887, allocations: 419.7 kB / 1.03 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.6914, allocations: 2.118 MB / 1.032 GB, free: 3.551 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.6926, allocations: 0.5001 MB / 1.032 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.6931, allocations: 216.8 kB / 1.032 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.6931, allocations: 4 kB / 1.032 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007116/0.6939, allocations: 281.9 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.925e-06/0.6939, allocations: 1.094 kB / 1.033 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001471/0.6954, allocations: 0.614 MB / 1.033 GB, free: 1.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/0.6954, allocations: 84.86 kB / 1.033 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007118/0.6961, allocations: 0.61 MB / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.6962, allocations: 37.7 kB / 1.034 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.6965, allocations: 356.8 kB / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.6966, allocations: 157.7 kB / 1.034 GB, free: 0.6406 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.6968, allocations: 98.23 kB / 1.034 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.6969, allocations: 322 kB / 1.035 GB, free: 224 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.6973, allocations: 183 kB / 1.035 GB, free: 40 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005138/0.6979, allocations: 276.2 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009154/0.6988, allocations: 485.9 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.6988, allocations: 7.938 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001212/0.7, allocations: 0.5982 MB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.961e-05/0.7001, allocations: 33.7 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.7001, allocations: 4 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.7001, allocations: 4.312 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.7006, allocations: 107.9 kB / 1.036 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.7006, allocations: 7.938 kB / 1.036 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.701, allocations: 71.34 kB / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/0.7011, allocations: 16 kB / 1.037 GB, free: 14.35 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005607/0.7017, allocations: 313.2 kB / 1.037 GB, free: 14.04 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004398/0.7021, allocations: 264.3 kB / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008116/0.7029, allocations: 461.8 kB / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.053e-06/0.7029, allocations: 0 / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001075/0.704, allocations: 0.5748 MB / 1.038 GB, free: 12.67 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.7041, allocations: 33.7 kB / 1.038 GB, free: 12.63 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.7041, allocations: 4 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.613e-06/0.7041, allocations: 4 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.7045, allocations: 107.8 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.7045, allocations: 7.938 kB / 1.038 GB, free: 12.51 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.7049, allocations: 51.91 kB / 1.038 GB, free: 12.46 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.705, allocations: 28 kB / 1.038 GB, free: 12.43 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.0001881/0.7052, allocations: 208.7 kB / 1.038 GB, free: 12.22 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.7053, allocations: 75.06 kB / 1.039 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.7054, allocations: 79.2 kB / 1.039 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.7054, allocations: 4 kB / 1.039 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.7055, allocations: 4 kB / 1.039 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.7055, allocations: 4 kB / 1.039 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006687/0.7061, allocations: 0.6296 MB / 1.039 GB, free: 11.37 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.7062, allocations: 3.938 kB / 1.039 GB, free: 11.37 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.7066, allocations: 79.89 kB / 1.039 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.7066, allocations: 4 kB / 1.039 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.7067, allocations: 4 kB / 1.039 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.748e-06/0.7067, allocations: 11.92 kB / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.7067, allocations: 0 / 1.039 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.7082, allocations: 0.7286 MB / 1.04 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.7084, allocations: 188.2 kB / 1.04 GB, free: 10.32 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.7085, allocations: 16 kB / 1.04 GB, free: 10.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003967/0.7089, allocations: 27.97 kB / 1.04 GB, free: 10.28 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.198e-05/0.709, allocations: 31.95 kB / 1.04 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.348e-05/0.7091, allocations: 15.98 kB / 1.04 GB, free: 10.23 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004839/0.7095, allocations: 435 kB / 1.041 GB, free: 9.812 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7096, allocations: 0 / 1.041 GB, free: 9.812 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000589/0.7102, allocations: 219.2 kB / 1.041 GB, free: 9.598 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.0001605/0.7103, allocations: 111.2 kB / 1.041 GB, free: 9.477 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001704/0.712, allocations: 0.8044 MB / 1.042 GB, free: 8.645 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.712, allocations: 0 / 1.042 GB, free: 8.645 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.7125, allocations: 215.7 kB / 1.042 GB, free: 8.434 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008968/0.7134, allocations: 217.8 kB / 1.042 GB, free: 8.234 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.7154, allocations: 1.193 MB / 1.043 GB, free: 7.012 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.7159, allocations: 0.9102 MB / 1.044 GB, free: 6.074 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003755/0.7163, allocations: 93.11 kB / 1.044 GB, free: 5.984 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.7164, allocations: 55.44 kB / 1.044 GB, free: 5.93 MB / 0.795 GB Notification: Performance of SimCode: time 5.11e-07/0.7164, allocations: 0 / 1.044 GB, free: 5.93 MB / 0.795 GB Notification: Performance of Templates: time 0.01401/0.7305, allocations: 7.567 MB / 1.052 GB, free: 14.45 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