Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.265/2.265, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 179.3 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.833/1.833, allocations: 223.2 MB / 0.7948 GB, free: 18.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000972/0.000972, allocations: 92.39 kB / 0.9346 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004086, allocations: 8.594 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 142.3 MB / 1.223 GB, free: 89.6 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.5585, allocations: 149.9 MB / 1.369 GB, free: 3.535 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5589, allocations: 91.92 kB / 1.369 GB, free: 3.445 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003464/0.5624, allocations: 1.189 MB / 1.37 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.993e-06/0.5624, allocations: 0 / 1.37 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.5624, allocations: 0 / 1.37 GB, free: 2.246 MB / 0.8698 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.0004434/0.5629, allocations: 371.1 kB / 1.371 GB, free: 1.836 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.5629, allocations: 8.031 kB / 1.371 GB, free: 1.828 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.5629, allocations: 7.938 kB / 1.371 GB, free: 1.82 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.5631, allocations: 174.9 kB / 1.371 GB, free: 1.609 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.5631, allocations: 3.938 kB / 1.371 GB, free: 1.605 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.5631, allocations: 4 kB / 1.371 GB, free: 1.602 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.5633, allocations: 57.67 kB / 1.371 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.5633, allocations: 4 kB / 1.371 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5634, allocations: 0 / 1.371 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.5634, allocations: 4 kB / 1.371 GB, free: 1.531 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.5635, allocations: 43.91 kB / 1.371 GB, free: 1.488 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.5639, allocations: 272.9 kB / 1.371 GB, free: 1.172 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.5641, allocations: 46.56 kB / 1.371 GB, free: 1.117 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.5641, allocations: 3.984 kB / 1.371 GB, free: 1.113 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.5641, allocations: 34.64 kB / 1.371 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.5641, allocations: 0 / 1.371 GB, free: 1.07 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0003343/0.5645, allocations: 109.5 kB / 1.372 GB, free: 0.957 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.5645, allocations: 55.36 kB / 1.372 GB, free: 0.8906 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.528e-05/0.5646, allocations: 105 kB / 1.372 GB, free: 0.7812 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.5646, allocations: 25.7 kB / 1.372 GB, free: 0.75 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.5647, allocations: 96.12 kB / 1.372 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.5647, allocations: 7.906 kB / 1.372 GB, free: 0.6445 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.5647, allocations: 0 / 1.372 GB, free: 0.6445 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.5649, allocations: 314.8 kB / 1.372 GB, free: 336 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.778e-05/0.5649, allocations: 19.98 kB / 1.372 GB, free: 316 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.056e-05/0.565, allocations: 23.98 kB / 1.372 GB, free: 292 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.992e-05/0.5651, allocations: 23.98 kB / 1.372 GB, free: 268 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.5651, allocations: 0 / 1.372 GB, free: 268 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000173/0.5653, allocations: 85.5 kB / 1.372 GB, free: 176 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.5653, allocations: 4 kB / 1.372 GB, free: 172 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.5653, allocations: 4 kB / 1.372 GB, free: 168 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.5653, allocations: 4 kB / 1.372 GB, free: 164 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.5655, allocations: 11.98 kB / 1.372 GB, free: 152 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.5655, allocations: 0 / 1.372 GB, free: 152 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.326e-05/0.5655, allocations: 7.953 kB / 1.372 GB, free: 144 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.5655, allocations: 0 / 1.372 GB, free: 144 kB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.062e-05/0.5656, allocations: 111.7 kB / 1.372 GB, free: 24 kB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.5657, allocations: 15.84 kB / 1.372 GB, free: 8 kB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.815e-05/0.5657, allocations: 11.97 kB / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.5657, allocations: 0 / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.5657, allocations: 0 / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.5657, allocations: 336 / 1.372 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.5659, allocations: 177.5 kB / 1.373 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.5659, allocations: 0 / 1.373 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.303e-05/0.566, allocations: 15.92 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.566, allocations: 3.984 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.566, allocations: 4 kB / 1.373 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.566, allocations: 3.938 kB / 1.373 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.566, allocations: 0 / 1.373 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.5663, allocations: 179.5 kB / 1.373 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.596e-05/0.5663, allocations: 81.02 kB / 1.373 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.5664, allocations: 8 kB / 1.373 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.089e-05/0.5664, allocations: 7.984 kB / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.5665, allocations: 0 / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.5665, allocations: 0 / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.941e-05/0.5666, allocations: 95.27 kB / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5666, allocations: 0 / 1.373 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002024/0.5668, allocations: 8 kB / 1.373 GB, free: 15.33 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.567, allocations: 107 kB / 1.373 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001973/0.5672, allocations: 47.89 kB / 1.373 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5672, allocations: 4 kB / 1.373 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.33e-05/0.5672, allocations: 23.98 kB / 1.373 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.5674, allocations: 14.03 kB / 1.373 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.5678, allocations: 182.4 kB / 1.373 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.5681, allocations: 0.6887 MB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.344e-05/0.5681, allocations: 4 kB / 1.374 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.5681, allocations: 7.438 kB / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.5681, allocations: 0 / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of Templates: time 0.002217/0.5704, allocations: 382.2 kB / 1.374 GB, free: 13.83 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches