Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001378/0.001378, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 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.001197/0.001197, allocations: 164.7 kB / 24.87 MB, free: 8.891 MB / 18.57 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.002/1.002, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.861/1.861, allocations: 359 MB / 0.6063 GB, free: 10.87 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.765e-05/1.928e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004937/0.004956, allocations: 3.95 MB / 0.7921 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002148/0.007104, allocations: 1.346 MB / 0.7934 GB, free: 6.965 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004125/0.007517, allocations: 31.75 kB / 0.7935 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002878/0.007805, allocations: 124.3 kB / 0.7936 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0003232/0.008128, allocations: 198.6 kB / 0.7938 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006932/0.008821, allocations: 415.3 kB / 0.7942 GB, free: 6.215 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0008892/0.00971, allocations: 0.9785 MB / 0.7951 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000417/0.01013, allocations: 286.6 kB / 0.7954 GB, free: 4.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005439/0.01067, allocations: 0.5028 MB / 0.7959 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.01093, allocations: 232.8 kB / 0.7961 GB, free: 4.199 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 8.82e-05/0.01102, allocations: 91.94 kB / 0.7962 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.0111, allocations: 88 kB / 0.7963 GB, free: 4.023 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.0112, allocations: 176 kB / 0.7964 GB, free: 3.852 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.01138, allocations: 247.4 kB / 0.7967 GB, free: 3.609 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005428/0.01192, allocations: 0.5688 MB / 0.7972 GB, free: 3.039 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01193, allocations: 4 kB / 0.7972 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.483e-06/0.01193, allocations: 0.5312 kB / 0.7972 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.386e-05/0.01194, allocations: 1.625 kB / 0.7972 GB, free: 3.035 MB / 0.7448 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.001247/0.01319, allocations: 1.15 MB / 0.7984 GB, free: 1.84 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.01322, allocations: 17.34 kB / 0.7984 GB, free: 1.824 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.01336, allocations: 136.4 kB / 0.7985 GB, free: 1.691 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005536/0.01392, allocations: 0.5371 MB / 0.799 GB, free: 1.125 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.975e-05/0.01395, allocations: 45.69 kB / 0.7991 GB, free: 1.078 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.36e-05/0.01401, allocations: 60.38 kB / 0.7991 GB, free: 1.02 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/0.0145, allocations: 495.9 kB / 0.7996 GB, free: 0.4922 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.01452, allocations: 4.172 kB / 0.7996 GB, free: 500 kB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.01455, allocations: 20.38 kB / 0.7996 GB, free: 480 kB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.01457, allocations: 22.06 kB / 0.7997 GB, free: 460 kB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.01481, allocations: 182.2 kB / 0.7998 GB, free: 280 kB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.01649, allocations: 1.721 MB / 0.8015 GB, free: 14.51 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.01682, allocations: 252.6 kB / 0.8017 GB, free: 14.25 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.01693, allocations: 113 kB / 0.8019 GB, free: 14.13 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.01696, allocations: 11.06 kB / 0.8019 GB, free: 14.12 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.01715, allocations: 167.9 kB / 0.802 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.01715, allocations: 0 / 0.802 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0004341/0.01759, allocations: 344.6 kB / 0.8024 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.01762, allocations: 59.91 kB / 0.8024 GB, free: 13.54 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002731/0.0179, allocations: 440.1 kB / 0.8028 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.01793, allocations: 37.69 kB / 0.8029 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001844/0.01811, allocations: 379.5 kB / 0.8032 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 9.222e-05/0.0182, allocations: 171.1 kB / 0.8034 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.01831, allocations: 99.95 kB / 0.8035 GB, free: 12.39 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.01846, allocations: 0.5439 MB / 0.804 GB, free: 11.84 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.856e-05/0.01856, allocations: 78.97 kB / 0.8041 GB, free: 11.76 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.0187, allocations: 202.6 kB / 0.8043 GB, free: 11.52 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/0.01894, allocations: 276.8 kB / 0.8045 GB, free: 11.21 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.01895, allocations: 0 / 0.8045 GB, free: 11.21 MB / 0.7605 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0003887/0.01933, allocations: 418 kB / 0.8049 GB, free: 10.78 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.01936, allocations: 33.7 kB / 0.805 GB, free: 10.74 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.01937, allocations: 1.031 kB / 0.805 GB, free: 10.74 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.01938, allocations: 4 kB / 0.805 GB, free: 10.74 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.01964, allocations: 124.9 kB / 0.8051 GB, free: 10.62 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.01965, allocations: 4 kB / 0.8051 GB, free: 10.61 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.01979, allocations: 56.62 kB / 0.8052 GB, free: 10.56 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.01981, allocations: 16 kB / 0.8052 GB, free: 10.54 MB / 0.7605 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 (conNoRes.conPID.I.trigger_internal,conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$whenCondition1,$whenCondition2) * 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.0001397/0.01995, allocations: 187.5 kB / 0.8054 GB, free: 10.35 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.02001, allocations: 71.62 kB / 0.8054 GB, free: 10.28 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.055e-05/0.02008, allocations: 65.44 kB / 0.8055 GB, free: 10.22 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.02008, allocations: 5.875 kB / 0.8055 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.02009, allocations: 0 / 0.8055 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.0201, allocations: 7.922 kB / 0.8055 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007449/0.02084, allocations: 0.7616 MB / 0.8062 GB, free: 9.414 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.02084, allocations: 5.062 kB / 0.8062 GB, free: 9.41 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.02107, allocations: 87.89 kB / 0.8063 GB, free: 9.324 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.02108, allocations: 5.094 kB / 0.8063 GB, free: 9.32 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.0211, allocations: 11.98 kB / 0.8063 GB, free: 9.309 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.0211, allocations: 4 kB / 0.8064 GB, free: 9.305 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.0211, allocations: 4.594 kB / 0.8064 GB, free: 9.301 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.02156, allocations: 0.518 MB / 0.8069 GB, free: 8.762 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.02168, allocations: 99.69 kB / 0.807 GB, free: 8.664 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.02171, allocations: 16 kB / 0.807 GB, free: 8.648 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.02183, allocations: 19.98 kB / 0.807 GB, free: 8.629 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.399e-05/0.0219, allocations: 40.36 kB / 0.807 GB, free: 8.59 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.02191, allocations: 8 kB / 0.807 GB, free: 8.582 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001491/0.02206, allocations: 275 kB / 0.8073 GB, free: 8.316 MB / 0.7605 GB Notification: Performance of sort global known variables: time 7e-08/0.02206, allocations: 4 kB / 0.8073 GB, free: 8.312 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0002869/0.02235, allocations: 143.6 kB / 0.8074 GB, free: 8.172 MB / 0.7605 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.0001006/0.02245, allocations: 118.5 kB / 0.8076 GB, free: 8.051 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0003221/0.02277, allocations: 312.3 kB / 0.8079 GB, free: 7.723 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02277, allocations: 0 / 0.8079 GB, free: 7.723 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.0229, allocations: 127.5 kB / 0.808 GB, free: 7.598 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004346/0.02334, allocations: 151.3 kB / 0.8081 GB, free: 7.457 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.02482, allocations: 1.161 MB / 0.8093 GB, free: 6.254 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.426e-05/0.0249, allocations: 133.9 kB / 0.8094 GB, free: 6.102 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0001782/0.02508, allocations: 64.53 kB / 0.8094 GB, free: 6.035 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.02532, allocations: 190.1 kB / 0.8096 GB, free: 5.848 MB / 0.7605 GB Notification: Performance of SimCode: time 9.52e-07/0.02532, allocations: 0 / 0.8096 GB, free: 5.848 MB / 0.7605 GB Notification: Performance of Templates: time 0.00954/0.03486, allocations: 6.464 MB / 0.8159 GB, free: 15.54 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.498226277064532]