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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.00135/0.00135, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001751/0.001751, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.437/1.437, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.873/2.873, allocations: 472.7 MB / 0.7448 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001315, allocations: 74.48 kB / 0.9116 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.364, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003713/0.3677, allocations: 1.571 MB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007704/0.3685, allocations: 415 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.097e-05/0.3686, allocations: 0 / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.465e-05/0.3686, allocations: 0 / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.207e-05/0.3687, allocations: 15.88 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.3689, allocations: 15.97 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.887e-05/0.369, allocations: 59.72 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.3691, allocations: 11.98 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.87e-05/0.3693, allocations: 23.92 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.348e-05/0.3693, allocations: 15.92 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.3694, allocations: 4 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.547e-05/0.3694, allocations: 4 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.3694, allocations: 19.91 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.6e-05/0.3695, allocations: 19.88 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.3696, allocations: 44.09 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3696, allocations: 0 / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.687e-06/0.3696, allocations: 0 / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3696, allocations: 0 / 1.07 GB, free: 8.555 MB / 0.8262 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.0007332/0.3703, allocations: 359.3 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.3704, allocations: 12.03 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.3705, allocations: 8.844 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.3706, allocations: 184.1 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.3707, allocations: 384 / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.3707, allocations: 12.3 kB / 1.07 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.3709, allocations: 57.98 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3709, allocations: 0 / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.3709, allocations: 3.938 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.3709, allocations: 4 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.3711, allocations: 39.97 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004845/0.3716, allocations: 268.9 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/0.3717, allocations: 42.5 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.721e-05/0.3718, allocations: 20.94 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.3719, allocations: 4 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3719, allocations: 34.56 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3719, allocations: 0 / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003787/0.3723, allocations: 89.55 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.3723, allocations: 59.34 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.3725, allocations: 113.8 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.3725, allocations: 25.7 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.3726, allocations: 92.14 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.3726, allocations: 11.89 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.3726, allocations: 13.72 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3728, allocations: 318.8 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.177e-05/0.3729, allocations: 15.98 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-05/0.3729, allocations: 15.98 kB / 1.072 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.3731, allocations: 44.83 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3731, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001617/0.3733, allocations: 77.56 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3733, allocations: 7.938 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.3733, allocations: 0 / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.3733, allocations: 0 / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.3734, allocations: 15.98 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.3734, allocations: 0 / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.35e-05/0.3735, allocations: 8 kB / 1.072 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.3735, allocations: 3.938 kB / 1.072 GB, free: 6.406 MB / 0.8262 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.631e-05/0.3736, allocations: 119.3 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.839e-05/0.3736, allocations: 11.89 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.3737, allocations: 7.906 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3737, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3737, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3737, allocations: 0 / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.3739, allocations: 173.6 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3739, allocations: 4.328 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.194e-05/0.3739, allocations: 7.984 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.374, allocations: 0 / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-06/0.374, allocations: 4 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.374, allocations: 0 / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.374, allocations: 0 / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.3742, allocations: 179.3 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.3742, allocations: 88.95 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.3743, allocations: 0 / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.3744, allocations: 7.984 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.3744, allocations: 4 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.3744, allocations: 4 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.719e-05/0.3745, allocations: 91.7 kB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3745, allocations: 0 / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002194/0.3747, allocations: 8 kB / 1.072 GB, free: 5.609 MB / 0.8262 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.0001109/0.3748, allocations: 103.2 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001817/0.375, allocations: 43.91 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.375, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.82e-05/0.3751, allocations: 19.98 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.3753, allocations: 9.25 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003737/0.3757, allocations: 176.8 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.3759, allocations: 0.6845 MB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.376, allocations: 3.984 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.376, allocations: 11.44 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.376, allocations: 3.938 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.002244/0.3783, allocations: 426.5 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches