Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_11_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_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006536/0.006536, allocations: 101.7 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 194.5 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.591/2.591, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 59.91 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8622/0.8637, allocations: 159.1 MB / 1.221 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002767/0.8664, allocations: 1.51 MB / 1.222 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007023/0.8671, allocations: 415.1 kB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.986e-05/0.8672, allocations: 0 / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.211e-05/0.8672, allocations: 3.938 kB / 1.222 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.912e-05/0.8673, allocations: 15.84 kB / 1.222 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.8675, allocations: 15.98 kB / 1.223 GB, free: 316 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.8676, allocations: 55.72 kB / 1.223 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.8677, allocations: 8 kB / 1.223 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.8678, allocations: 27.91 kB / 1.223 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.999e-05/0.8679, allocations: 15.92 kB / 1.223 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.8679, allocations: 7.938 kB / 1.223 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.337e-05/0.868, allocations: 4 kB / 1.223 GB, free: 196 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.868, allocations: 11.92 kB / 1.223 GB, free: 184 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.899e-05/0.868, allocations: 19.94 kB / 1.223 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.8681, allocations: 52.72 kB / 1.223 GB, free: 112 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.8681, allocations: 4 kB / 1.223 GB, free: 108 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.032e-06/0.8681, allocations: 0 / 1.223 GB, free: 108 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.8682, allocations: 0 / 1.223 GB, free: 108 kB / 0.9356 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.0005928/0.8688, allocations: 359.2 kB / 1.223 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.8688, allocations: 12.03 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.04e-05/0.8688, allocations: 4.891 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.869, allocations: 172.3 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.869, allocations: 384 / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.869, allocations: 12.38 kB / 1.223 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.8692, allocations: 57.92 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.8692, allocations: 0 / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.8693, allocations: 3.938 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.8693, allocations: 7.938 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.8694, allocations: 35.97 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004717/0.8699, allocations: 276.8 kB / 1.224 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.87, allocations: 42.55 kB / 1.224 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.301e-05/0.8701, allocations: 24.94 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.8701, allocations: 3.938 kB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.8701, allocations: 30.56 kB / 1.224 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.8701, allocations: 0 / 1.224 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003268/0.8704, allocations: 97.59 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.8705, allocations: 51.41 kB / 1.224 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.8706, allocations: 117.8 kB / 1.224 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.8706, allocations: 25.7 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.66e-05/0.8707, allocations: 84.14 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.8707, allocations: 15.94 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.8707, allocations: 9.719 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8709, allocations: 330.8 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.726e-05/0.8709, allocations: 11.98 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.919e-05/0.871, allocations: 23.92 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.8711, allocations: 36.84 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8711, allocations: 0 / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001587/0.8713, allocations: 77.61 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.8713, allocations: 8 kB / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.8713, allocations: 0 / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.8713, allocations: 0 / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.8714, allocations: 11.98 kB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.8714, allocations: 0 / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.657e-05/0.8715, allocations: 4 kB / 1.225 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.8715, allocations: 0 / 1.225 GB, free: 13.97 MB / 0.9512 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 8.009e-05/0.8715, allocations: 122.2 kB / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.8716, allocations: 11.95 kB / 1.225 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.8716, allocations: 7.906 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8716, allocations: 4 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.8716, allocations: 0 / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.8716, allocations: 3.938 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.8718, allocations: 173.6 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.8718, allocations: 4 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.877e-05/0.8719, allocations: 11.98 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.8719, allocations: 0 / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.8719, allocations: 0 / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.8719, allocations: 7.938 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.8719, allocations: 0 / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.8721, allocations: 171.4 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.8721, allocations: 77.48 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.8721, allocations: 4 kB / 1.225 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.009e-05/0.8722, allocations: 7.922 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/0.8723, allocations: 12 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.8723, allocations: 0 / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.42e-05/0.8723, allocations: 91.27 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.8723, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002132/0.8725, allocations: 11.94 kB / 1.225 GB, free: 13.16 MB / 0.9512 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 0.0001197/0.8726, allocations: 111.2 kB / 1.225 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001827/0.8728, allocations: 35.97 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.8728, allocations: 4 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 6.916e-05/0.8729, allocations: 27.92 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.8731, allocations: 3.938 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003903/0.8735, allocations: 164.1 kB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.8737, allocations: 0.6807 MB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.333e-05/0.8738, allocations: 4 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.8738, allocations: 15.42 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.8738, allocations: 0 / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of Templates: time 0.002601/0.8764, allocations: 467.9 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches