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.0008081/0.0008081, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001089/0.001897, allocations: 449.8 kB / 10.44 MB, free: 252 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.000689/0.000689, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009197/0.001609, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.9463/0.9463, allocations: 177.2 MB / 189.8 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09238/1.039, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.878/1.878, allocations: 378.4 MB / 0.6079 GB, free: 7.688 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4709/2.349, allocations: 123.3 MB / 0.7283 GB, free: 5.719 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.7296 GB, free: 4.406 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.276e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.402 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002852/0.002874, allocations: 1.63 MB / 0.7312 GB, free: 2.797 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0007216/0.003596, allocations: 494.3 kB / 0.7317 GB, free: 2.316 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.376e-05/0.00365, allocations: 0 / 0.7317 GB, free: 2.316 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.839e-05/0.003678, allocations: 3.938 kB / 0.7317 GB, free: 2.312 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.854e-05/0.003727, allocations: 16.25 kB / 0.7317 GB, free: 2.305 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001376/0.003864, allocations: 36.88 kB / 0.7318 GB, free: 2.27 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.003988, allocations: 60.7 kB / 0.7318 GB, free: 2.227 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.211e-05/0.00407, allocations: 12 kB / 0.7318 GB, free: 2.215 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.004222, allocations: 47.83 kB / 0.7319 GB, free: 2.168 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.904e-05/0.004291, allocations: 20.42 kB / 0.7319 GB, free: 2.148 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.004307, allocations: 5.719 kB / 0.7319 GB, free: 2.145 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.004367, allocations: 7.984 kB / 0.7319 GB, free: 2.137 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.521e-05/0.004382, allocations: 4 kB / 0.7319 GB, free: 2.133 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.138e-05/0.004403, allocations: 11.94 kB / 0.7319 GB, free: 2.121 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.004518, allocations: 43.78 kB / 0.732 GB, free: 2.078 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.004529, allocations: 0.8125 kB / 0.732 GB, free: 2.078 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.92e-07/0.00453, allocations: 0 / 0.732 GB, free: 2.078 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.333e-05/0.004543, allocations: 0.5 kB / 0.732 GB, free: 2.078 MB / 0.698 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.000431/0.004974, allocations: 274 kB / 0.7322 GB, free: 1.789 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.005007, allocations: 8.031 kB / 0.7322 GB, free: 1.781 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.005203, allocations: 102 kB / 0.7323 GB, free: 1.664 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.005352, allocations: 126.5 kB / 0.7325 GB, free: 1.516 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.005364, allocations: 4.375 kB / 0.7325 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.005375, allocations: 1.406 kB / 0.7325 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.005479, allocations: 58.94 kB / 0.7325 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.005487, allocations: 1.938 kB / 0.7325 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.005494, allocations: 384 / 0.7325 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.005501, allocations: 7.938 kB / 0.7325 GB, free: 1.438 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.497e-05/0.005526, allocations: 7.938 kB / 0.7325 GB, free: 1.43 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.005757, allocations: 157.5 kB / 0.7327 GB, free: 1.262 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.957e-05/0.005817, allocations: 18.67 kB / 0.7327 GB, free: 1.234 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.385e-05/0.005841, allocations: 20.89 kB / 0.7327 GB, free: 1.211 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.005853, allocations: 0.6562 kB / 0.7327 GB, free: 1.211 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.005878, allocations: 39.69 kB / 0.7328 GB, free: 1.164 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.005879, allocations: 0 / 0.7328 GB, free: 1.164 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001264/0.006005, allocations: 45.56 kB / 0.7328 GB, free: 1.113 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.006036, allocations: 56 kB / 0.7329 GB, free: 1.047 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.837e-05/0.006114, allocations: 130.6 kB / 0.733 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.006126, allocations: 26.23 kB / 0.733 GB, free: 0.875 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.67e-05/0.006163, allocations: 89.06 kB / 0.7331 GB, free: 0.7852 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.006185, allocations: 11.91 kB / 0.7331 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.006216, allocations: 17.7 kB / 0.7331 GB, free: 0.75 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.006308, allocations: 315.4 kB / 0.7334 GB, free: 444 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.404e-05/0.006322, allocations: 4.719 kB / 0.7334 GB, free: 440 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.233e-05/0.006334, allocations: 3.984 kB / 0.7334 GB, free: 436 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.006367, allocations: 17.39 kB / 0.7334 GB, free: 416 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.006369, allocations: 0 / 0.7334 GB, free: 416 kB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.34e-05/0.006432, allocations: 38.81 kB / 0.7335 GB, free: 372 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.006444, allocations: 8 kB / 0.7335 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.006451, allocations: 3.938 kB / 0.7335 GB, free: 360 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.006464, allocations: 4.953 kB / 0.7335 GB, free: 356 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.716e-05/0.006541, allocations: 4 kB / 0.7335 GB, free: 352 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.006545, allocations: 5.156 kB / 0.7335 GB, free: 348 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.713e-05/0.006572, allocations: 7.984 kB / 0.7335 GB, free: 340 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.006578, allocations: 0 / 0.7335 GB, free: 340 kB / 0.698 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.578e-05/0.006634, allocations: 110.8 kB / 0.7336 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.006656, allocations: 0 / 0.7336 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.006684, allocations: 21.12 kB / 0.7336 GB, free: 192 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.006687, allocations: 3.984 kB / 0.7336 GB, free: 188 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.006688, allocations: 0 / 0.7336 GB, free: 188 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.00669, allocations: 1.188 kB / 0.7336 GB, free: 188 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001185/0.006809, allocations: 73.89 kB / 0.7337 GB, free: 96 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.006813, allocations: 7.984 kB / 0.7337 GB, free: 88 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/0.00685, allocations: 5.25 kB / 0.7337 GB, free: 84 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.042e-05/0.006861, allocations: 11.89 kB / 0.7337 GB, free: 72 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006863, allocations: 0 / 0.7337 GB, free: 72 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.006868, allocations: 3.984 kB / 0.7337 GB, free: 68 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.006871, allocations: 4.969 kB / 0.7337 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.006872, allocations: 0 / 0.7337 GB, free: 64 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.006978, allocations: 132.1 kB / 0.7339 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.00699, allocations: 0 / 0.7339 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.686e-05/0.007047, allocations: 9.562 kB / 0.7339 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.958e-05/0.007076, allocations: 8.297 kB / 0.7339 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.00708, allocations: 11.88 kB / 0.7339 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.578e-05/0.007106, allocations: 23.08 kB / 0.7339 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.007106, allocations: 1.219 kB / 0.7339 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000202/0.007308, allocations: 8 kB / 0.7339 GB, free: 15.86 MB / 0.7136 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.888e-05/0.007387, allocations: 76.92 kB / 0.734 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.428e-05/0.007461, allocations: 25.58 kB / 0.734 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.007467, allocations: 0 / 0.734 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.321e-05/0.0075, allocations: 13.61 kB / 0.734 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.007673, allocations: 12.8 kB / 0.7341 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.009316, allocations: 179.5 kB / 0.7342 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.908e-05/0.009355, allocations: 59.34 kB / 0.7343 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.955e-05/0.009385, allocations: 8 kB / 0.7343 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.785e-05/0.009442, allocations: 55.36 kB / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of SimCode: time 6.21e-07/0.009443, allocations: 6.375 kB / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of Templates: time 0.002326/0.01177, allocations: 0.5028 MB / 0.7348 GB, free: 14.89 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.794314033351839]