Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.411/1.411, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001232/0.001232, allocations: 175.9 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.4 MB / 0.5775 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009635/0.0009637, allocations: 94.11 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003225/0.0003225, allocations: 9.094 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2397, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.175/0.4148, allocations: 132.4 MB / 1.029 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.4151, allocations: 87.94 kB / 1.029 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00344/0.4186, allocations: 1.16 MB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.486e-06/0.4186, allocations: 3.938 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.4186, allocations: 3.938 kB / 1.031 GB, free: 10.13 MB / 0.6823 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.0003958/0.419, allocations: 359.2 kB / 1.031 GB, free: 9.73 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.419, allocations: 8.031 kB / 1.031 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.4191, allocations: 11.91 kB / 1.031 GB, free: 9.711 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.4192, allocations: 175 kB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.4192, allocations: 0 / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.4192, allocations: 0 / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.4194, allocations: 57.67 kB / 1.031 GB, free: 9.438 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.4194, allocations: 4 kB / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.4195, allocations: 0 / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.4195, allocations: 0 / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.4196, allocations: 47.97 kB / 1.031 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.42, allocations: 276.8 kB / 1.031 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.4201, allocations: 50.55 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.4202, allocations: 0 / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.4202, allocations: 30.56 kB / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.4202, allocations: 0 / 1.032 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0003243/0.4205, allocations: 101.7 kB / 1.032 GB, free: 8.863 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.4206, allocations: 55.41 kB / 1.032 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.106e-05/0.4207, allocations: 109 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.4207, allocations: 25.7 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.123e-05/0.4207, allocations: 88.12 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.4208, allocations: 15.75 kB / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.4208, allocations: 4 kB / 1.032 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4209, allocations: 318.8 kB / 1.032 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.035e-05/0.421, allocations: 19.98 kB / 1.032 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.399e-05/0.4211, allocations: 19.98 kB / 1.032 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.4212, allocations: 27.92 kB / 1.032 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.4212, allocations: 0 / 1.032 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001771/0.4213, allocations: 85.59 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4214, allocations: 6.656 kB / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4214, allocations: 0 / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.4214, allocations: 0 / 1.032 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.4215, allocations: 15.98 kB / 1.032 GB, free: 8.047 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.4215, allocations: 4 kB / 1.032 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.507e-05/0.4216, allocations: 4.328 kB / 1.032 GB, free: 8.039 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.4216, allocations: 3.938 kB / 1.032 GB, free: 8.035 MB / 0.6823 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.018e-05/0.4217, allocations: 117.8 kB / 1.033 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.4217, allocations: 7.891 kB / 1.033 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/0.4218, allocations: 15.89 kB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.4218, allocations: 4 kB / 1.033 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.4218, allocations: 0 / 1.033 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4218, allocations: 0 / 1.033 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.422, allocations: 169.6 kB / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.422, allocations: 0 / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.511e-05/0.422, allocations: 15.98 kB / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4221, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.4221, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4221, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4221, allocations: 4 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.4223, allocations: 187.3 kB / 1.033 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.066e-05/0.4224, allocations: 77.11 kB / 1.033 GB, free: 7.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.4224, allocations: 0 / 1.033 GB, free: 7.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.4225, allocations: 15.98 kB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.4225, allocations: 4 kB / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.4225, allocations: 0 / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.075e-05/0.4226, allocations: 91.27 kB / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.31e-07/0.4226, allocations: 0 / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002048/0.4228, allocations: 8 kB / 1.033 GB, free: 7.234 MB / 0.6823 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.0001191/0.4229, allocations: 103.2 kB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001911/0.4231, allocations: 55.84 kB / 1.033 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4232, allocations: 0 / 1.033 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 7.117e-05/0.4232, allocations: 23.98 kB / 1.033 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.4234, allocations: 7.953 kB / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003792/0.4238, allocations: 191 kB / 1.033 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.424, allocations: 0.6887 MB / 1.034 GB, free: 6.109 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.48e-05/0.4241, allocations: 4 kB / 1.034 GB, free: 6.105 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.862e-05/0.4241, allocations: 11.44 kB / 1.034 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of SimCode: time 3.61e-07/0.4241, allocations: 0 / 1.034 GB, free: 6.094 MB / 0.6823 GB Notification: Performance of Templates: time 0.002165/0.4263, allocations: 377.8 kB / 1.035 GB, free: 5.734 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches