Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006843/0.006843, allocations: 102.9 kB / 15.74 MB, free: 6.496 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.001816/0.001817, allocations: 197.7 kB / 16.68 MB, free: 6.375 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.489/1.489, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 67.89 kB / 1.019 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3502, allocations: 151.6 MB / 1.167 GB, free: 6.844 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00316/0.3534, allocations: 1.504 MB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008685/0.3543, allocations: 427 kB / 1.168 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.429e-05/0.3544, allocations: 0 / 1.168 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.1e-05/0.3545, allocations: 3.938 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.217e-05/0.3546, allocations: 3.938 kB / 1.168 GB, free: 4.895 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3548, allocations: 19.91 kB / 1.169 GB, free: 4.875 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.3549, allocations: 43.86 kB / 1.169 GB, free: 4.832 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.3551, allocations: 23.91 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.3552, allocations: 23.88 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.3553, allocations: 27.84 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.3553, allocations: 0 / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.3554, allocations: 4 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.3554, allocations: 8 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.741e-05/0.3554, allocations: 27.84 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.3556, allocations: 43.77 kB / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3556, allocations: 0 / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3556, allocations: 0 / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.3556, allocations: 0 / 1.169 GB, free: 4.676 MB / 0.92 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.0005752/0.3562, allocations: 367.2 kB / 1.169 GB, free: 4.27 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3563, allocations: 12.03 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.073e-05/0.3563, allocations: 0.9375 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.3565, allocations: 176.2 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.3565, allocations: 8.375 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.3565, allocations: 4.312 kB / 1.169 GB, free: 4.035 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.3567, allocations: 53.98 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3568, allocations: 7.984 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3568, allocations: 4 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.3568, allocations: 4 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.3569, allocations: 31.97 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004384/0.3574, allocations: 276.8 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.3575, allocations: 54.48 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.534e-05/0.3576, allocations: 20.94 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.3576, allocations: 0 / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.3577, allocations: 34.56 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 2.856e-06/0.3577, allocations: 0 / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003124/0.358, allocations: 81.59 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.3581, allocations: 63.34 kB / 1.17 GB, free: 3.32 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.99e-05/0.3582, allocations: 117.8 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.3582, allocations: 25.7 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.078e-05/0.3582, allocations: 96.09 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.3583, allocations: 7.891 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.3583, allocations: 17.7 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3584, allocations: 318.8 kB / 1.17 GB, free: 2.715 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.05e-05/0.3585, allocations: 23.98 kB / 1.17 GB, free: 2.691 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.432e-05/0.3586, allocations: 15.98 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.3587, allocations: 36.83 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3587, allocations: 0 / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000187/0.3589, allocations: 73.62 kB / 1.171 GB, free: 2.559 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.3589, allocations: 11.88 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3589, allocations: 0 / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3589, allocations: 7.984 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.3591, allocations: 8 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3591, allocations: 4 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.352e-05/0.3591, allocations: 11.98 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.3591, allocations: 0 / 1.171 GB, free: 2.516 MB / 0.92 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.002e-05/0.3592, allocations: 113.8 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.944e-05/0.3593, allocations: 7.953 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.3593, allocations: 7.906 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3593, allocations: 4 kB / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3593, allocations: 0 / 1.171 GB, free: 2.367 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3593, allocations: 3.984 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.3595, allocations: 173.6 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3595, allocations: 0 / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.549e-05/0.3596, allocations: 7.984 kB / 1.171 GB, free: 2.137 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3596, allocations: 0 / 1.171 GB, free: 2.137 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3596, allocations: 4.328 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3596, allocations: 0 / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3596, allocations: 0 / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.3599, allocations: 187.3 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.3599, allocations: 81.06 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.3599, allocations: 0 / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.831e-05/0.36, allocations: 4 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.727e-05/0.3601, allocations: 3.984 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.3601, allocations: 4 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.086e-05/0.3602, allocations: 95.27 kB / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3602, allocations: 0 / 1.171 GB, free: 1.73 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002242/0.3604, allocations: 8 kB / 1.171 GB, free: 1.723 MB / 0.92 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.0001445/0.3605, allocations: 101.8 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001922/0.3607, allocations: 35.97 kB / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3607, allocations: 3.938 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 7.783e-05/0.3608, allocations: 27.97 kB / 1.171 GB, free: 1.551 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.3611, allocations: 11.94 kB / 1.171 GB, free: 1.539 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.3615, allocations: 156.1 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.3618, allocations: 0.6846 MB / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.3618, allocations: 4 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.3619, allocations: 11.44 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of SimCode: time 2.61e-07/0.3619, allocations: 3.938 kB / 1.172 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of Templates: time 0.002657/0.3646, allocations: 457.1 kB / 1.173 GB, free: 192 kB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches