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.0009857/0.0009857, allocations: 82.05 kB / 19.87 MB, free: 4.617 MB / 18.57 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.0009451/0.0009451, allocations: 173.7 kB / 23.28 MB, free: 1.219 MB / 18.57 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.9461/0.9461, allocations: 177.1 MB / 203.7 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.342/2.342, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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.853e-06/1.853e-06, allocations: 0 / 0.8897 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.342e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.719 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002119/0.002142, allocations: 1.576 MB / 0.8913 GB, free: 8.133 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0006277/0.00277, allocations: 482.7 kB / 0.8917 GB, free: 7.656 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.00283, allocations: 0 / 0.8917 GB, free: 7.656 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.002855, allocations: 3.938 kB / 0.8917 GB, free: 7.652 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.382e-05/0.002909, allocations: 19.86 kB / 0.8918 GB, free: 7.633 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.003099, allocations: 31.89 kB / 0.8918 GB, free: 7.602 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 9.266e-05/0.003192, allocations: 63.72 kB / 0.8919 GB, free: 7.539 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.514e-05/0.003267, allocations: 7.984 kB / 0.8919 GB, free: 7.531 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.003382, allocations: 39.84 kB / 0.8919 GB, free: 7.492 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.282e-05/0.003435, allocations: 23.91 kB / 0.8919 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.003447, allocations: 0 / 0.8919 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 3.661e-05/0.003484, allocations: 8 kB / 0.8919 GB, free: 7.461 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.003495, allocations: 7.984 kB / 0.8919 GB, free: 7.453 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.003514, allocations: 15.94 kB / 0.892 GB, free: 7.438 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 8.372e-05/0.003597, allocations: 47.81 kB / 0.892 GB, free: 7.391 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003599, allocations: 3.938 kB / 0.892 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of FrontEnd: time 7.92e-07/0.0036, allocations: 0 / 0.892 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.945e-06/0.003603, allocations: 0 / 0.892 GB, free: 7.387 MB / 0.8542 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.0003132/0.003916, allocations: 392.3 kB / 0.8924 GB, free: 6.969 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.003951, allocations: 12.62 kB / 0.8924 GB, free: 6.957 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.004063, allocations: 20.88 kB / 0.8924 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.004169, allocations: 128.6 kB / 0.8925 GB, free: 6.785 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.004176, allocations: 4.375 kB / 0.8925 GB, free: 6.781 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-06/0.004182, allocations: 4.375 kB / 0.8925 GB, free: 6.777 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.34e-05/0.004265, allocations: 58.94 kB / 0.8926 GB, free: 6.711 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.371e-06/0.004271, allocations: 192 / 0.8926 GB, free: 6.711 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.79e-06/0.004276, allocations: 4.375 kB / 0.8926 GB, free: 6.707 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.004282, allocations: 3.938 kB / 0.8926 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.877e-05/0.0043, allocations: 7.938 kB / 0.8926 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002025/0.004503, allocations: 248.3 kB / 0.8929 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 4.987e-05/0.004553, allocations: 39.03 kB / 0.8929 GB, free: 6.375 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.004569, allocations: 15.75 kB / 0.8929 GB, free: 6.355 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.004581, allocations: 4 kB / 0.8929 GB, free: 6.352 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.639e-05/0.004598, allocations: 33.39 kB / 0.8929 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 8.12e-07/0.004599, allocations: 3.938 kB / 0.8929 GB, free: 6.305 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0001234/0.004722, allocations: 53.7 kB / 0.893 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.004746, allocations: 51.41 kB / 0.893 GB, free: 6.184 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.259e-05/0.004819, allocations: 181.7 kB / 0.8932 GB, free: 5.992 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.004828, allocations: 25.7 kB / 0.8932 GB, free: 5.961 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.004877, allocations: 146.7 kB / 0.8934 GB, free: 5.812 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.004892, allocations: 7.953 kB / 0.8934 GB, free: 5.805 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.004916, allocations: 15.38 kB / 0.8934 GB, free: 5.781 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.005025, allocations: 0.4962 MB / 0.8939 GB, free: 5.273 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.052e-05/0.005036, allocations: 4 kB / 0.8939 GB, free: 5.27 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.037e-05/0.005046, allocations: 4 kB / 0.8939 GB, free: 5.266 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.711e-05/0.005073, allocations: 19.61 kB / 0.8939 GB, free: 5.242 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.005074, allocations: 0 / 0.8939 GB, free: 5.242 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.175e-05/0.005126, allocations: 45.64 kB / 0.894 GB, free: 5.191 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.005139, allocations: 11.94 kB / 0.894 GB, free: 5.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.005143, allocations: 0 / 0.894 GB, free: 5.18 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.006e-06/0.005152, allocations: 3.938 kB / 0.894 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.091e-05/0.005203, allocations: 4 kB / 0.894 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-06/0.005205, allocations: 0 / 0.894 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.079e-05/0.005226, allocations: 15.98 kB / 0.894 GB, free: 5.156 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.00523, allocations: 0 / 0.894 GB, free: 5.156 MB / 0.8542 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.728e-05/0.005288, allocations: 156.6 kB / 0.8941 GB, free: 4.992 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.005307, allocations: 7.891 kB / 0.8941 GB, free: 4.984 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.531e-05/0.005332, allocations: 15.94 kB / 0.8942 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.005333, allocations: 0 / 0.8942 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.005335, allocations: 0 / 0.8942 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.005337, allocations: 0 / 0.8942 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.851e-05/0.005426, allocations: 105.2 kB / 0.8943 GB, free: 4.832 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.005427, allocations: 4 kB / 0.8943 GB, free: 4.828 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.279e-05/0.00545, allocations: 15.98 kB / 0.8943 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.005451, allocations: 0 / 0.8943 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-06/0.005455, allocations: 0 / 0.8943 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.005455, allocations: 0 / 0.8943 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.005457, allocations: 3.938 kB / 0.8943 GB, free: 4.809 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.82e-05/0.005545, allocations: 187.9 kB / 0.8945 GB, free: 4.605 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-06/0.005555, allocations: 16.3 kB / 0.8945 GB, free: 4.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.737e-06/0.005564, allocations: 0 / 0.8945 GB, free: 4.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.463e-05/0.005598, allocations: 4 kB / 0.8945 GB, free: 4.586 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.005623, allocations: 11.88 kB / 0.8945 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.005626, allocations: 3.984 kB / 0.8945 GB, free: 4.57 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.517e-05/0.005661, allocations: 139.2 kB / 0.8946 GB, free: 4.434 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4e-08/0.005661, allocations: 0 / 0.8946 GB, free: 4.434 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001283/0.00579, allocations: 4 kB / 0.8946 GB, free: 4.43 MB / 0.8542 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 5.899e-05/0.005849, allocations: 95.25 kB / 0.8947 GB, free: 4.328 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 5.518e-05/0.005904, allocations: 23.66 kB / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.01e-07/0.005905, allocations: 0 / 0.8948 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.542e-05/0.00592, allocations: 11.69 kB / 0.8948 GB, free: 4.285 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.006055, allocations: 8 kB / 0.8948 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004046/0.00646, allocations: 184.9 kB / 0.8949 GB, free: 4.07 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.29e-05/0.006493, allocations: 59.38 kB / 0.895 GB, free: 3.992 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.993e-05/0.006513, allocations: 3.984 kB / 0.895 GB, free: 3.988 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.962e-05/0.006562, allocations: 70.2 kB / 0.8951 GB, free: 3.918 MB / 0.8542 GB Notification: Performance of SimCode: time 4.61e-07/0.006563, allocations: 7.938 kB / 0.8951 GB, free: 3.91 MB / 0.8542 GB Notification: Performance of Templates: time 0.001712/0.008275, allocations: 0.5079 MB / 0.8956 GB, free: 3.414 MB / 0.8542 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 -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","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.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.335100204218179]