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.001518/0.001518, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001812/0.001812, allocations: 198.8 kB / 16.14 MB, free: 6.645 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.525/1.525, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.901/2.901, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 65.33 kB / 0.8984 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3514, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003054/0.3545, allocations: 1.567 MB / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006881/0.3552, allocations: 422.8 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.019e-05/0.3553, allocations: 0 / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.347e-05/0.3553, allocations: 3.938 kB / 1.054 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.51e-05/0.3554, allocations: 3.938 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.3556, allocations: 27.91 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.036e-05/0.3557, allocations: 55.78 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3558, allocations: 11.92 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3559, allocations: 27.86 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.385e-05/0.356, allocations: 15.92 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.3561, allocations: 4 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.3561, allocations: 4 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.858e-05/0.3561, allocations: 15.91 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.06e-05/0.3562, allocations: 19.88 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.572e-05/0.3563, allocations: 40.16 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3563, allocations: 0 / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3563, allocations: 0 / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.3563, allocations: 0 / 1.054 GB, free: 6.621 MB / 0.8106 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.000558/0.3569, allocations: 359.3 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3569, allocations: 12.03 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.357, allocations: 0.9375 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.3571, allocations: 172.3 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3571, allocations: 12.38 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.3571, allocations: 384 / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.3573, allocations: 57.92 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.3573, allocations: 0 / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3573, allocations: 4 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3573, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.3575, allocations: 39.91 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.3579, allocations: 288.7 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.358, allocations: 38.56 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.835e-05/0.3581, allocations: 20.94 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.3582, allocations: 4 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.3582, allocations: 42.5 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.3582, allocations: 0 / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003222/0.3585, allocations: 81.66 kB / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.3586, allocations: 55.39 kB / 1.055 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.757e-05/0.3587, allocations: 117.8 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3587, allocations: 25.7 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.3588, allocations: 96.05 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.3588, allocations: 11.89 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.3588, allocations: 13.72 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3589, allocations: 318.8 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.996e-05/0.359, allocations: 19.98 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.656e-05/0.3591, allocations: 15.92 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.3592, allocations: 44.83 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3592, allocations: 4 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001675/0.3594, allocations: 73.56 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.3594, allocations: 4 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3594, allocations: 3.938 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3594, allocations: 4 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3596, allocations: 7.984 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3596, allocations: 0 / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.217e-05/0.3596, allocations: 4 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3596, allocations: 0 / 1.056 GB, free: 4.484 MB / 0.8106 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 7.797e-05/0.3597, allocations: 127.2 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.3598, allocations: 4 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.3598, allocations: 16.16 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3598, allocations: 0 / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3598, allocations: 0 / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3598, allocations: 3.984 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.36, allocations: 173.6 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.36, allocations: 0 / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.103e-05/0.3601, allocations: 7.984 kB / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3601, allocations: 8 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.3601, allocations: 0 / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3601, allocations: 0 / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3601, allocations: 0 / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.3603, allocations: 171.4 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.3604, allocations: 88.95 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.3604, allocations: 0 / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.3605, allocations: 11.98 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.3605, allocations: 3.938 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.3605, allocations: 8 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.268e-05/0.3606, allocations: 91.27 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3606, allocations: 0 / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002185/0.3608, allocations: 8 kB / 1.057 GB, free: 3.68 MB / 0.8106 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.000128/0.361, allocations: 100.6 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001872/0.3612, allocations: 43.97 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3612, allocations: 0 / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.975e-05/0.3612, allocations: 19.98 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.3615, allocations: 7.938 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004105/0.3619, allocations: 170.2 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.3622, allocations: 0.6809 MB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.893e-05/0.3622, allocations: 4 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.94e-05/0.3623, allocations: 11.42 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3623, allocations: 0 / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of Templates: time 0.00245/0.3647, allocations: 397.3 kB / 1.058 GB, free: 2.207 MB / 0.8106 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