Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 79.86 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 165.4 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 177.1 MB / 202.8 MB, free: 9.211 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.959/2.959, allocations: 389 MB / 0.633 GB, free: 0.9961 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.806e-06/2.806e-06, allocations: 0 / 1 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.519e-05/3.799e-05, allocations: 2.281 kB / 1 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.006412/0.00645, allocations: 3.373 MB / 1.003 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003744/0.01019, allocations: 1.332 MB / 1.005 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009761/0.01117, allocations: 39.62 kB / 1.005 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006493/0.01182, allocations: 126.7 kB / 1.005 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00124/0.01306, allocations: 191.9 kB / 1.005 GB, free: 2.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.01486, allocations: 0.5771 MB / 1.006 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001855/0.01672, allocations: 0.9797 MB / 1.007 GB, free: 0.6992 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005508/0.01727, allocations: 234.2 kB / 1.007 GB, free: 472 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009208/0.01819, allocations: 0.5104 MB / 1.007 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004073/0.0186, allocations: 255 kB / 1.008 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.01873, allocations: 80 kB / 1.008 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.01887, allocations: 80 kB / 1.008 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.01907, allocations: 191.2 kB / 1.008 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.01937, allocations: 235.2 kB / 1.008 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.02069, allocations: 0.9305 MB / 1.009 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.02069, allocations: 0 / 1.009 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.064e-06/0.02069, allocations: 0 / 1.009 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.02071, allocations: 0 / 1.009 GB, free: 14.19 MB / 0.9669 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.002436/0.02314, allocations: 1.115 MB / 1.01 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.02319, allocations: 16.03 kB / 1.01 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.02338, allocations: 100.3 kB / 1.01 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.02464, allocations: 0.5615 MB / 1.011 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.02481, allocations: 152.4 kB / 1.011 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.02496, allocations: 52.38 kB / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.0263, allocations: 0.7561 MB / 1.012 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.02631, allocations: 4.188 kB / 1.012 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.94e-05/0.02637, allocations: 28.12 kB / 1.012 GB, free: 11.24 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.02639, allocations: 12 kB / 1.012 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.02743, allocations: 427.6 kB / 1.012 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.03051, allocations: 1.823 MB / 1.014 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.03183, allocations: 487.5 kB / 1.014 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.03233, allocations: 200.8 kB / 1.015 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.03237, allocations: 11.95 kB / 1.015 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007738/0.03315, allocations: 333.6 kB / 1.015 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=45): time 3.677e-06/0.03315, allocations: 0 / 1.015 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of matching and sorting (n=45): time 0.001716/0.03487, allocations: 0.6181 MB / 1.015 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.03497, allocations: 122.5 kB / 1.016 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007476/0.03572, allocations: 0.5668 MB / 1.016 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.03578, allocations: 41.7 kB / 1.016 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/0.03611, allocations: 369.1 kB / 1.017 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.03627, allocations: 154.7 kB / 1.017 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.03645, allocations: 102.3 kB / 1.017 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002251/0.03668, allocations: 374.8 kB / 1.017 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/0.0372, allocations: 217.1 kB / 1.017 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000659/0.03786, allocations: 367.2 kB / 1.018 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.0389, allocations: 478.9 kB / 1.018 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.03891, allocations: 0 / 1.018 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001387/0.04029, allocations: 0.6253 MB / 1.019 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.839e-05/0.04035, allocations: 45.62 kB / 1.019 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.04036, allocations: 0 / 1.019 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.04039, allocations: 8 kB / 1.019 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005194/0.04091, allocations: 108.1 kB / 1.019 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.04092, allocations: 8 kB / 1.019 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.04135, allocations: 63.64 kB / 1.019 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.0414, allocations: 19.94 kB / 1.019 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006777/0.04207, allocations: 339.1 kB / 1.019 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005779/0.04265, allocations: 356.3 kB / 1.02 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009345/0.04359, allocations: 455 kB / 1.02 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.508e-06/0.04359, allocations: 4 kB / 1.02 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001232/0.04482, allocations: 0.6097 MB / 1.021 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.122e-05/0.04487, allocations: 33.7 kB / 1.021 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.04487, allocations: 0 / 1.021 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.04489, allocations: 11.94 kB / 1.021 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.04536, allocations: 103.8 kB / 1.021 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.04537, allocations: 4 kB / 1.021 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.04578, allocations: 55.7 kB / 1.021 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.04582, allocations: 28.12 kB / 1.021 GB, free: 1.332 MB / 0.9669 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.0002528/0.04608, allocations: 212.1 kB / 1.021 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.04619, allocations: 79.47 kB / 1.021 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.04637, allocations: 78.7 kB / 1.021 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.04638, allocations: 7.984 kB / 1.021 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.04639, allocations: 0 / 1.021 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.0464, allocations: 3.984 kB / 1.021 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006621/0.04706, allocations: 456.8 kB / 1.022 GB, free: 484 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.04706, allocations: 4 kB / 1.022 GB, free: 480 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/0.04754, allocations: 87.89 kB / 1.022 GB, free: 392 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.04755, allocations: 0 / 1.022 GB, free: 392 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.04759, allocations: 15.98 kB / 1.022 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.05e-05/0.0476, allocations: 3.938 kB / 1.022 GB, free: 372 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.0476, allocations: 0 / 1.022 GB, free: 372 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001782/0.04938, allocations: 0.7297 MB / 1.023 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.04963, allocations: 119.4 kB / 1.023 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.947e-05/0.0497, allocations: 8 kB / 1.023 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.05015, allocations: 43.89 kB / 1.023 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.05027, allocations: 31.94 kB / 1.023 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.05031, allocations: 19.98 kB / 1.023 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005361/0.05084, allocations: 399.1 kB / 1.023 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.05084, allocations: 0 / 1.023 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006839/0.05153, allocations: 227.4 kB / 1.023 GB, free: 14.79 MB / 0.9825 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.00019/0.05172, allocations: 119.2 kB / 1.023 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001844/0.05356, allocations: 0.8131 MB / 1.024 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.05357, allocations: 0 / 1.024 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005274/0.05409, allocations: 207.8 kB / 1.024 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009839/0.05508, allocations: 200.9 kB / 1.025 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.0578, allocations: 1.161 MB / 1.026 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.05821, allocations: 318.9 kB / 1.026 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004628/0.05868, allocations: 96.95 kB / 1.026 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.05884, allocations: 48.5 kB / 1.026 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of SimCode: time 1.012e-06/0.05885, allocations: 0 / 1.026 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of Templates: time 0.01872/0.07757, allocations: 7.964 MB / 1.034 GB, free: 3.949 MB / 0.9825 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.622057169675827]