Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 105.9 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002304/0.002304, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.245/3.245, allocations: 0.4899 GB / 0.7915 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002827/0.002827, allocations: 73.98 kB / 1.149 GB, free: 26.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4667/0.4695, allocations: 176.1 MB / 1.321 GB, free: 2.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003229/0.4727, allocations: 1.548 MB / 1.323 GB, free: 1.305 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.4737, allocations: 498.7 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.4738, allocations: 0 / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.064e-05/0.4738, allocations: 15.86 kB / 1.323 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.227e-05/0.4739, allocations: 7.875 kB / 1.323 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.4741, allocations: 31.95 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.4743, allocations: 55.78 kB / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.4744, allocations: 7.984 kB / 1.323 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.4745, allocations: 39.86 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.996e-05/0.4746, allocations: 27.84 kB / 1.323 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.4746, allocations: 4 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.4747, allocations: 4 kB / 1.323 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.4747, allocations: 15.92 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.442e-05/0.4747, allocations: 19.88 kB / 1.323 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.4749, allocations: 59.73 kB / 1.324 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4749, allocations: 0 / 1.324 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4749, allocations: 0 / 1.324 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.4749, allocations: 3.938 kB / 1.324 GB, free: 0.5234 MB / 1.014 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.0005962/0.4755, allocations: 359.2 kB / 1.324 GB, free: 128 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4755, allocations: 15.98 kB / 1.324 GB, free: 112 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.4758, allocations: 28.86 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.4762, allocations: 189.6 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-06/0.4762, allocations: 4.312 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.4762, allocations: 4.375 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.4764, allocations: 57.98 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4764, allocations: 0 / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.4764, allocations: 0 / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4764, allocations: 0 / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.4765, allocations: 39.97 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004031/0.4769, allocations: 272.9 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.4771, allocations: 46.42 kB / 1.324 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.891e-05/0.4771, allocations: 24.94 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.4772, allocations: 4 kB / 1.325 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.4772, allocations: 30.56 kB / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4772, allocations: 0 / 1.325 GB, free: 15.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003438/0.4775, allocations: 93.55 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.4776, allocations: 51.41 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.4777, allocations: 123.1 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.4777, allocations: 33.7 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.372e-05/0.4778, allocations: 84.14 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.4778, allocations: 27.81 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/0.4778, allocations: 9.719 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.478, allocations: 322.8 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.234e-05/0.4781, allocations: 15.98 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.91e-05/0.4781, allocations: 15.98 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.4783, allocations: 49.09 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.4783, allocations: 0 / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001825/0.4784, allocations: 73.59 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.4785, allocations: 8 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.4785, allocations: 0 / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4785, allocations: 0 / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.4786, allocations: 11.98 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.4786, allocations: 7.922 kB / 1.325 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.285e-05/0.4787, allocations: 7.953 kB / 1.325 GB, free: 14.33 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.4787, allocations: 4 kB / 1.325 GB, free: 14.33 MB / 1.029 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 9.61e-05/0.4788, allocations: 113.8 kB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.4788, allocations: 4 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.4788, allocations: 11.89 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.4788, allocations: 4 kB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4788, allocations: 0 / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.4788, allocations: 0 / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002699/0.4791, allocations: 173.6 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4791, allocations: 0 / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-05/0.4792, allocations: 11.98 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.4792, allocations: 0 / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.4792, allocations: 0 / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.4792, allocations: 4 kB / 1.326 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4792, allocations: 7.984 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.4794, allocations: 175.4 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.4795, allocations: 85.06 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.4795, allocations: 3.984 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.128e-05/0.4796, allocations: 4 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.4796, allocations: 3.938 kB / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.4796, allocations: 0 / 1.326 GB, free: 13.63 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.523e-05/0.4797, allocations: 101.3 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4797, allocations: 0 / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002216/0.4799, allocations: 8 kB / 1.326 GB, free: 13.53 MB / 1.029 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.0001292/0.4801, allocations: 107.2 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002091/0.4803, allocations: 43.91 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.4803, allocations: 0 / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.208e-05/0.4803, allocations: 15.98 kB / 1.326 GB, free: 13.36 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.4806, allocations: 14 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004342/0.481, allocations: 180.6 kB / 1.326 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.4814, allocations: 0.6846 MB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.585e-05/0.4815, allocations: 4.281 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.4815, allocations: 7.438 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4815, allocations: 0 / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of Templates: time 0.002977/0.4845, allocations: 479.1 kB / 1.328 GB, free: 11.95 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.338925007730722]