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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009091/0.009091, allocations: 101.1 kB / 15.73 MB, free: 6.469 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.002046/0.002046, allocations: 193.8 kB / 16.67 MB, free: 6.379 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.665/2.665, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 71.89 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3484, allocations: 157.4 MB / 1.208 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003026/0.3514, allocations: 1.511 MB / 1.209 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007796/0.3522, allocations: 410.9 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.134e-05/0.3523, allocations: 0 / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.72e-05/0.3524, allocations: 3.938 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.922e-05/0.3525, allocations: 15.88 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002032/0.3527, allocations: 19.97 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.3528, allocations: 51.73 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.3529, allocations: 19.97 kB / 1.21 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.3531, allocations: 19.92 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.219e-05/0.3532, allocations: 19.92 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.094e-05/0.3532, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.3532, allocations: 8 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.3533, allocations: 7.938 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.933e-05/0.3533, allocations: 23.86 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3534, allocations: 39.88 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3534, allocations: 4 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3534, allocations: 0 / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.3535, allocations: 0 / 1.21 GB, free: 7.504 MB / 0.9669 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.000541/0.354, allocations: 367.2 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3541, allocations: 12.62 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.3541, allocations: 8.844 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3542, allocations: 172.2 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3543, allocations: 384 / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.541e-05/0.3543, allocations: 8.375 kB / 1.21 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.3545, allocations: 53.98 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3545, allocations: 0 / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.3545, allocations: 3.984 kB / 1.21 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3545, allocations: 3.984 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.3547, allocations: 35.98 kB / 1.21 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004443/0.3551, allocations: 284.8 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.3552, allocations: 34.56 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.448e-05/0.3553, allocations: 24.94 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.3554, allocations: 4 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.3554, allocations: 34.56 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3554, allocations: 0 / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003346/0.3557, allocations: 93.5 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.3558, allocations: 51.41 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3559, allocations: 121.8 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.3559, allocations: 25.7 kB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.711e-05/0.356, allocations: 96.12 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.356, allocations: 12.34 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.3561, allocations: 17.7 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3562, allocations: 318.8 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.718e-05/0.3562, allocations: 11.98 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.695e-05/0.3563, allocations: 19.98 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.3564, allocations: 44.83 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3565, allocations: 0 / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001823/0.3566, allocations: 77.52 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3567, allocations: 4 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.3567, allocations: 3.984 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.3567, allocations: 0 / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.3568, allocations: 8 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.3568, allocations: 0 / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.261e-05/0.3569, allocations: 15.92 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.3569, allocations: 0 / 1.212 GB, free: 5.352 MB / 0.9669 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.415e-05/0.357, allocations: 117.8 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.357, allocations: 3.906 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.907e-05/0.3571, allocations: 11.91 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3571, allocations: 3.984 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3571, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3571, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.3573, allocations: 169.6 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3573, allocations: 4 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.3574, allocations: 15.92 kB / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3574, allocations: 0 / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3574, allocations: 0 / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3574, allocations: 0 / 1.212 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3574, allocations: 4 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.3577, allocations: 163.8 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.847e-05/0.3577, allocations: 96.98 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.3577, allocations: 0 / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.08e-05/0.3578, allocations: 11.98 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.3579, allocations: 0 / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3579, allocations: 0 / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.442e-05/0.3579, allocations: 95.27 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3579, allocations: 0 / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002185/0.3582, allocations: 4 kB / 1.212 GB, free: 4.562 MB / 0.9669 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.0001233/0.3583, allocations: 103.2 kB / 1.212 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001893/0.3585, allocations: 43.91 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3585, allocations: 0 / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.306e-05/0.3586, allocations: 23.97 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.3588, allocations: 11.31 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004229/0.3592, allocations: 164.2 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.3595, allocations: 0.6845 MB / 1.213 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.038e-05/0.3595, allocations: 7.953 kB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.3596, allocations: 11.38 kB / 1.213 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.3596, allocations: 0 / 1.213 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of Templates: time 0.002545/0.3621, allocations: 485.8 kB / 1.214 GB, free: 2.996 MB / 0.9669 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