Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.001036/0.001036, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.0009951/0.0009951, allocations: 181 kB / 23.36 MB, free: 1.133 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.004/1.004, allocations: 177.1 MB / 203.8 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.533/2.533, allocations: 438.8 MB / 0.6827 GB, free: 13.62 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.285e-05/2.463e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002269/0.002293, allocations: 1.618 MB / 0.8402 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0007117/0.003005, allocations: 486.6 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.954e-05/0.003064, allocations: 4 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.003093, allocations: 3.938 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.162e-05/0.003154, allocations: 19.84 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.003348, allocations: 27.97 kB / 0.8407 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.003456, allocations: 59.72 kB / 0.8408 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.519e-05/0.003531, allocations: 7.984 kB / 0.8408 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.003665, allocations: 43.78 kB / 0.8408 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.754e-05/0.003722, allocations: 19.92 kB / 0.8409 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.003737, allocations: 4 kB / 0.8409 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.804e-05/0.003795, allocations: 11.97 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.434e-05/0.003809, allocations: 8 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.003829, allocations: 15.92 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.003934, allocations: 43.83 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.003936, allocations: 4 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.062e-06/0.003938, allocations: 0 / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.858e-06/0.003941, allocations: 0 / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002944/0.004236, allocations: 264.7 kB / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.004267, allocations: 8.625 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.004394, allocations: 24.91 kB / 0.8412 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.004521, allocations: 117.8 kB / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.004529, allocations: 12.31 kB / 0.8413 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-06/0.004535, allocations: 384 / 0.8413 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.86e-05/0.004623, allocations: 54.94 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.004629, allocations: 192 / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.004637, allocations: 8.375 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.004644, allocations: 3.938 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.971e-05/0.004663, allocations: 7.984 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.00486, allocations: 164.2 kB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.463e-05/0.004915, allocations: 26.58 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.004933, allocations: 12.86 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.004945, allocations: 0 / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.004967, allocations: 38.64 kB / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 8.21e-07/0.004968, allocations: 0 / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.000116/0.005084, allocations: 49.56 kB / 0.8417 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.654e-05/0.00511, allocations: 51.41 kB / 0.8417 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.476e-05/0.005175, allocations: 130.2 kB / 0.8419 GB, free: 10.72 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.618e-06/0.005185, allocations: 25.7 kB / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.005218, allocations: 96.05 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.005235, allocations: 3.953 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.579e-05/0.005261, allocations: 13.72 kB / 0.842 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.246e-05/0.005333, allocations: 322.8 kB / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.005345, allocations: 4 kB / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.847e-06/0.005354, allocations: 0 / 0.8423 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.034e-05/0.005384, allocations: 20.84 kB / 0.8423 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.005386, allocations: 0 / 0.8423 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.251e-05/0.005438, allocations: 41.95 kB / 0.8424 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.00545, allocations: 8 kB / 0.8424 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.005456, allocations: 7.875 kB / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.386e-06/0.005464, allocations: 0 / 0.8424 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.32e-05/0.005527, allocations: 7.984 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-06/0.00553, allocations: 0 / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.005549, allocations: 11.95 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.005555, allocations: 3.984 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 5.277e-05/0.005608, allocations: 109.8 kB / 0.8425 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.005626, allocations: 3.984 kB / 0.8425 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.012e-05/0.005646, allocations: 15.94 kB / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.005647, allocations: 0 / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.005649, allocations: 0 / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.005651, allocations: 0 / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.381e-05/0.005735, allocations: 73.88 kB / 0.8426 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.005736, allocations: 0 / 0.8426 GB, free: 9.906 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.461e-05/0.00576, allocations: 15.98 kB / 0.8426 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.005762, allocations: 0 / 0.8426 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.85e-06/0.005767, allocations: 0 / 0.8426 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.005768, allocations: 0 / 0.8426 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.005772, allocations: 7.922 kB / 0.8426 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.428e-05/0.005856, allocations: 139.5 kB / 0.8428 GB, free: 9.73 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.686e-06/0.005865, allocations: 7.984 kB / 0.8428 GB, free: 9.723 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.954e-06/0.005873, allocations: 0 / 0.8428 GB, free: 9.723 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.755e-05/0.005911, allocations: 4 kB / 0.8428 GB, free: 9.719 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.69e-05/0.005937, allocations: 3.938 kB / 0.8428 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.005943, allocations: 11.98 kB / 0.8428 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.843e-05/0.005961, allocations: 20.84 kB / 0.8428 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005961, allocations: 0 / 0.8428 GB, free: 9.68 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001228/0.006084, allocations: 15.95 kB / 0.8428 GB, free: 9.664 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 7.006e-05/0.006154, allocations: 76.41 kB / 0.8429 GB, free: 9.582 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.889e-05/0.006213, allocations: 16.8 kB / 0.8429 GB, free: 9.562 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.006215, allocations: 4 kB / 0.8429 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.673e-05/0.006232, allocations: 12.84 kB / 0.8429 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001097/0.006342, allocations: 4 kB / 0.8429 GB, free: 9.539 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004547/0.006796, allocations: 184.2 kB / 0.8431 GB, free: 9.332 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.43e-05/0.006831, allocations: 55.36 kB / 0.8432 GB, free: 9.258 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.362e-05/0.006854, allocations: 3.984 kB / 0.8432 GB, free: 9.254 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.006894, allocations: 55.31 kB / 0.8432 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of SimCode: time 1.132e-06/0.006895, allocations: 4 kB / 0.8432 GB, free: 9.195 MB / 0.8073 GB Notification: Performance of Templates: time 0.001935/0.008831, allocations: 448.6 kB / 0.8437 GB, free: 8.766 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.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.476949497126043]