Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.001971/0.001971, allocations: 79.44 kB / 19.18 MB, free: 2.516 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.002574/0.002574, allocations: 162.2 kB / 22.46 MB, free: 5.375 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.496/1.496, allocations: 177.1 MB / 202.8 MB, free: 9.168 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.904/2.904, allocations: 389 MB / 0.633 GB, free: 0.9805 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.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 1 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.861e-05/4.079e-05, allocations: 5.656 kB / 1 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006265/0.006306, allocations: 3.774 MB / 1.004 GB, free: 3.512 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003085/0.009391, allocations: 1.324 MB / 1.005 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004518/0.009843, allocations: 31.75 kB / 1.005 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003992/0.01024, allocations: 134.7 kB / 1.005 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004266/0.01067, allocations: 186.3 kB / 1.005 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.0117, allocations: 428.9 kB / 1.006 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001189/0.01289, allocations: 0.9746 MB / 1.007 GB, free: 448 kB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.01346, allocations: 290.6 kB / 1.007 GB, free: 136 kB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007471/0.01421, allocations: 0.4989 MB / 1.008 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003717/0.01458, allocations: 239.2 kB / 1.008 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.01471, allocations: 92 kB / 1.008 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.01484, allocations: 88 kB / 1.008 GB, free: 15.22 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.01503, allocations: 183.3 kB / 1.008 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003292/0.01536, allocations: 251.4 kB / 1.008 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.0167, allocations: 1.094 MB / 1.009 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.01671, allocations: 0 / 1.009 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.784e-06/0.01671, allocations: 0 / 1.009 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.01672, allocations: 0 / 1.009 GB, free: 13.7 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002148/0.01887, allocations: 1.064 MB / 1.01 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.01891, allocations: 8.031 kB / 1.01 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.01909, allocations: 92.38 kB / 1.011 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.02015, allocations: 0.503 MB / 1.011 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.885e-05/0.0202, allocations: 41.69 kB / 1.011 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.903e-05/0.0203, allocations: 60.38 kB / 1.011 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.02157, allocations: 0.6622 MB / 1.012 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.02159, allocations: 192 / 1.012 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.681e-05/0.02166, allocations: 28.38 kB / 1.012 GB, free: 11.14 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.02168, allocations: 15.94 kB / 1.012 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.02276, allocations: 457 kB / 1.012 GB, free: 10.68 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.02572, allocations: 1.698 MB / 1.014 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.02672, allocations: 425.7 kB / 1.014 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.02726, allocations: 222.8 kB / 1.015 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.0273, allocations: 4.5 kB / 1.015 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005981/0.0279, allocations: 262.2 kB / 1.015 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=49): time 2.043e-06/0.0279, allocations: 7.938 kB / 1.015 GB, free: 8 MB / 0.9669 GB Notification: Performance of matching and sorting (n=49): time 0.001484/0.02938, allocations: 0.5826 MB / 1.015 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.02945, allocations: 59.84 kB / 1.015 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000548/0.03, allocations: 429.9 kB / 1.016 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.03004, allocations: 37.7 kB / 1.016 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.03034, allocations: 333.5 kB / 1.016 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.0305, allocations: 182.4 kB / 1.016 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.03068, allocations: 90.34 kB / 1.016 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0002279/0.03091, allocations: 366.8 kB / 1.017 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004732/0.03138, allocations: 190.9 kB / 1.017 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/0.03186, allocations: 276.4 kB / 1.017 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008945/0.03276, allocations: 455.2 kB / 1.018 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.03276, allocations: 0 / 1.018 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001158/0.03392, allocations: 0.5941 MB / 1.018 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.03396, allocations: 33.7 kB / 1.018 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.03398, allocations: 4 kB / 1.018 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.034, allocations: 4 kB / 1.018 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005143/0.03451, allocations: 112.1 kB / 1.018 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.03453, allocations: 11.94 kB / 1.018 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003293/0.03486, allocations: 55.7 kB / 1.018 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.0349, allocations: 20 kB / 1.018 GB, free: 4.07 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.000298/0.0352, allocations: 213.7 kB / 1.019 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.203e-05/0.03528, allocations: 55.62 kB / 1.019 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.03549, allocations: 61.44 kB / 1.019 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.03551, allocations: 8 kB / 1.019 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.03552, allocations: 7.938 kB / 1.019 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.03553, allocations: 3.984 kB / 1.019 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.03748, allocations: 0.9883 MB / 1.02 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.03748, allocations: 0 / 1.02 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/0.03796, allocations: 95.88 kB / 1.02 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.03797, allocations: 4 kB / 1.02 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.03802, allocations: 15.94 kB / 1.02 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.03802, allocations: 4 kB / 1.02 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.03803, allocations: 3.984 kB / 1.02 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.03951, allocations: 0.7631 MB / 1.021 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.03969, allocations: 99.39 kB / 1.021 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.03982, allocations: 15.94 kB / 1.021 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.0401, allocations: 23.98 kB / 1.021 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.04023, allocations: 40.42 kB / 1.021 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.04025, allocations: 12 kB / 1.021 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000409/0.04066, allocations: 295.1 kB / 1.021 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.04066, allocations: 0 / 1.021 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004895/0.04115, allocations: 143.6 kB / 1.021 GB, free: 1.176 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.0001743/0.04133, allocations: 115.2 kB / 1.021 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001142/0.04247, allocations: 495.2 kB / 1.022 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.04247, allocations: 0 / 1.022 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004997/0.04297, allocations: 202.8 kB / 1.022 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008244/0.0438, allocations: 145 kB / 1.022 GB, free: 224 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.0467, allocations: 1.258 MB / 1.023 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.04704, allocations: 288.7 kB / 1.024 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002571/0.0473, allocations: 64.55 kB / 1.024 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.04743, allocations: 36.5 kB / 1.024 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of SimCode: time 7.21e-07/0.04743, allocations: 0 / 1.024 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of Templates: time 0.01353/0.06096, allocations: 5.781 MB / 1.029 GB, free: 8.867 MB / 0.9825 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.5618902631104]