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.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.0007567/0.0007567, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009954/0.001752, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006985/0.0006985, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009035/0.001602, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9845/0.9845, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08777/1.072, allocations: 53.65 MB / 243.2 MB, free: 15.61 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.449/2.449, allocations: 446.7 MB / 0.6745 GB, free: 6.227 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2538/2.703, allocations: 145.9 MB / 0.817 GB, free: 4.219 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 0.8183 GB, free: 2.914 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.648e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.91 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001888/0.001905, allocations: 1.624 MB / 0.8199 GB, free: 1.273 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.000527/0.002432, allocations: 498.5 kB / 0.8204 GB, free: 0.7812 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.002481, allocations: 0 / 0.8204 GB, free: 0.7812 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.341e-05/0.002504, allocations: 7.938 kB / 0.8204 GB, free: 0.7734 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.385e-05/0.002538, allocations: 11.88 kB / 0.8204 GB, free: 0.7617 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001092/0.002647, allocations: 35.88 kB / 0.8204 GB, free: 0.7266 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 9.086e-05/0.002738, allocations: 55.73 kB / 0.8205 GB, free: 0.6719 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.506e-05/0.002813, allocations: 15.94 kB / 0.8205 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.002928, allocations: 47.83 kB / 0.8205 GB, free: 0.6094 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 5.917e-05/0.002987, allocations: 19.92 kB / 0.8205 GB, free: 0.5898 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.003, allocations: 4 kB / 0.8205 GB, free: 0.5859 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 5.164e-05/0.003052, allocations: 4 kB / 0.8206 GB, free: 0.582 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.089e-05/0.003063, allocations: 11.94 kB / 0.8206 GB, free: 0.5703 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.727e-05/0.00308, allocations: 12 kB / 0.8206 GB, free: 0.5586 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 9.384e-05/0.003174, allocations: 39.78 kB / 0.8206 GB, free: 0.5195 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.399e-05/0.003188, allocations: 0 / 0.8206 GB, free: 0.5195 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.804e-06/0.00319, allocations: 3.984 kB / 0.8206 GB, free: 0.5156 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.003201, allocations: 0 / 0.8206 GB, free: 0.5156 MB / 0.7917 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.0004023/0.003603, allocations: 276.4 kB / 0.8209 GB, free: 228 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.003638, allocations: 8.625 kB / 0.8209 GB, free: 220 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.003823, allocations: 102 kB / 0.821 GB, free: 100 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.003969, allocations: 125.7 kB / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.545e-06/0.003977, allocations: 384 / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.976e-06/0.003986, allocations: 4.375 kB / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.004088, allocations: 58.92 kB / 0.8212 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.004095, allocations: 192 / 0.8212 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-06/0.004101, allocations: 4.375 kB / 0.8212 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.004108, allocations: 3.938 kB / 0.8212 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.66e-05/0.004135, allocations: 7.938 kB / 0.8212 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002088/0.004343, allocations: 164.2 kB / 0.8213 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.987e-05/0.004403, allocations: 30.58 kB / 0.8214 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.772e-05/0.004421, allocations: 8.859 kB / 0.8214 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.004434, allocations: 0 / 0.8214 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.004457, allocations: 38.56 kB / 0.8214 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.004457, allocations: 3.938 kB / 0.8214 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.000123/0.004581, allocations: 49.7 kB / 0.8215 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.004611, allocations: 51.41 kB / 0.8215 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.846e-05/0.004679, allocations: 122.7 kB / 0.8216 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.00469, allocations: 29.7 kB / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.004724, allocations: 92.11 kB / 0.8217 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.004743, allocations: 11.91 kB / 0.8218 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.004775, allocations: 13.72 kB / 0.8218 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.651e-05/0.004852, allocations: 318.8 kB / 0.8221 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.004865, allocations: 4 kB / 0.8221 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.004875, allocations: 0 / 0.8221 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.247e-05/0.004908, allocations: 20.78 kB / 0.8221 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.00491, allocations: 0 / 0.8221 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.193e-05/0.004972, allocations: 41.69 kB / 0.8221 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.004985, allocations: 8 kB / 0.8221 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.004991, allocations: 3.938 kB / 0.8221 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.675e-06/0.004998, allocations: 4 kB / 0.8222 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.719e-05/0.005076, allocations: 11.98 kB / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-06/0.005078, allocations: 0 / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.324e-05/0.005101, allocations: 0 / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.005107, allocations: 0 / 0.8222 GB, free: 14.75 MB / 0.8073 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 5.33e-05/0.00516, allocations: 109.8 kB / 0.8223 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.005182, allocations: 11.92 kB / 0.8223 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.18e-05/0.005204, allocations: 11.94 kB / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.005206, allocations: 0 / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.005207, allocations: 0 / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.00521, allocations: 4 kB / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.005322, allocations: 77.88 kB / 0.8224 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.005323, allocations: 0 / 0.8224 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.551e-05/0.005359, allocations: 7.984 kB / 0.8224 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.00537, allocations: 16.22 kB / 0.8224 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.005371, allocations: 0 / 0.8224 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-06/0.005375, allocations: 3.938 kB / 0.8224 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.005377, allocations: 3.938 kB / 0.8224 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.005378, allocations: 0 / 0.8224 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.857e-05/0.005467, allocations: 143.5 kB / 0.8225 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.005478, allocations: 4 kB / 0.8225 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.901e-05/0.005527, allocations: 4 kB / 0.8225 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.005555, allocations: 7.875 kB / 0.8226 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.005559, allocations: 7.984 kB / 0.8226 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.066e-05/0.00558, allocations: 20.34 kB / 0.8226 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.00558, allocations: 0 / 0.8226 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001649/0.005745, allocations: 8 kB / 0.8226 GB, free: 14.28 MB / 0.8073 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 7.423e-05/0.005819, allocations: 84.41 kB / 0.8227 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.072e-05/0.00588, allocations: 12.86 kB / 0.8227 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.005885, allocations: 0 / 0.8227 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.933e-05/0.005904, allocations: 20.84 kB / 0.8227 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.006038, allocations: 4 kB / 0.8227 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.007484, allocations: 176.2 kB / 0.8229 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.374e-05/0.007518, allocations: 59.34 kB / 0.8229 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.555e-05/0.007543, allocations: 4 kB / 0.8229 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.124e-05/0.007584, allocations: 55.38 kB / 0.823 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of SimCode: time 7.51e-07/0.007585, allocations: 0 / 0.823 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of Templates: time 0.002083/0.009668, allocations: 459.5 kB / 0.8234 GB, free: 13.37 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.232173787429929]