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.001482/0.001482, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.00169/0.00169, allocations: 163.7 kB / 22.46 MB, free: 5.359 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.57/1.57, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.926/2.926, allocations: 377.8 MB / 0.6221 GB, free: 12.62 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.944e-06/1.944e-06, allocations: 0 / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.502e-05/3.696e-05, allocations: 6.219 kB / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003073/0.00311, allocations: 1.53 MB / 0.9829 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00095/0.00406, allocations: 462.8 kB / 0.9834 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.833e-05/0.004119, allocations: 0 / 0.9834 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.568e-05/0.004154, allocations: 3.938 kB / 0.9834 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.088e-05/0.004215, allocations: 15.81 kB / 0.9834 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.004476, allocations: 35.94 kB / 0.9834 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001405/0.004617, allocations: 59.67 kB / 0.9835 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.004736, allocations: 11.98 kB / 0.9835 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.004922, allocations: 39.89 kB / 0.9835 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.005003, allocations: 15.98 kB / 0.9835 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.005023, allocations: 3.938 kB / 0.9835 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 5.645e-05/0.00508, allocations: 8 kB / 0.9836 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.005107, allocations: 11.92 kB / 0.9836 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.005143, allocations: 12 kB / 0.9836 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.005303, allocations: 59.73 kB / 0.9836 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.005306, allocations: 4 kB / 0.9836 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of FrontEnd: time 8.82e-07/0.005307, allocations: 0 / 0.9836 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.815e-05/0.005325, allocations: 0 / 0.9836 GB, free: 9.738 MB / 0.9356 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.0006121/0.005937, allocations: 290.1 kB / 0.9839 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.005985, allocations: 8.031 kB / 0.9839 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.00622, allocations: 20.88 kB / 0.9839 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.006477, allocations: 140 kB / 0.9841 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.00649, allocations: 4.375 kB / 0.9841 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.006501, allocations: 4.375 kB / 0.9841 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.006693, allocations: 58.22 kB / 0.9841 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.006703, allocations: 192 / 0.9841 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.006716, allocations: 8.359 kB / 0.9841 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.006723, allocations: 3.938 kB / 0.9841 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.006865, allocations: 35.98 kB / 0.9842 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.007258, allocations: 216.5 kB / 0.9844 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.0074, allocations: 42.56 kB / 0.9844 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.89e-05/0.007479, allocations: 24.88 kB / 0.9845 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.007492, allocations: 0 / 0.9845 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.00753, allocations: 42.5 kB / 0.9845 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.007531, allocations: 0 / 0.9845 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.000347/0.007878, allocations: 89.58 kB / 0.9846 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.007932, allocations: 51.41 kB / 0.9846 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.008052, allocations: 117.8 kB / 0.9847 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.008071, allocations: 33.69 kB / 0.9848 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.008141, allocations: 96.09 kB / 0.9849 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.008162, allocations: 7.891 kB / 0.9849 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.008205, allocations: 21.7 kB / 0.9849 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.008355, allocations: 310.8 kB / 0.9852 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.374e-05/0.008429, allocations: 19.98 kB / 0.9852 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.219e-05/0.008491, allocations: 15.98 kB / 0.9852 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.008634, allocations: 40.83 kB / 0.9853 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.008636, allocations: 8 kB / 0.9853 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001867/0.008823, allocations: 77.5 kB / 0.9853 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.00884, allocations: 4 kB / 0.9853 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.008845, allocations: 0 / 0.9853 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.00886, allocations: 4 kB / 0.9854 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.008962, allocations: 11.92 kB / 0.9854 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.008968, allocations: 0 / 0.9854 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.751e-05/0.009026, allocations: 7.984 kB / 0.9854 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.009037, allocations: 8 kB / 0.9854 GB, free: 7.781 MB / 0.9356 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 0.0001128/0.009149, allocations: 105.8 kB / 0.9855 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.009183, allocations: 15.89 kB / 0.9855 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.482e-05/0.009208, allocations: 4 kB / 0.9855 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.009212, allocations: 4 kB / 0.9855 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.009216, allocations: 0 / 0.9855 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.009222, allocations: 3.984 kB / 0.9855 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.009377, allocations: 113.3 kB / 0.9856 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.009377, allocations: 0 / 0.9856 GB, free: 7.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.311e-05/0.009451, allocations: 11.98 kB / 0.9856 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.009452, allocations: 4 kB / 0.9856 GB, free: 7.484 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.009462, allocations: 3.938 kB / 0.9856 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.009463, allocations: 0 / 0.9856 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.009464, allocations: 3.938 kB / 0.9856 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.009726, allocations: 175.7 kB / 0.9858 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.065e-05/0.009737, allocations: 4 kB / 0.9858 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.009755, allocations: 3.938 kB / 0.9858 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.00984, allocations: 8 kB / 0.9858 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.009885, allocations: 7.984 kB / 0.9858 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.009889, allocations: 4 kB / 0.9858 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.437e-05/0.009963, allocations: 97.02 kB / 0.9859 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.009964, allocations: 0 / 0.9859 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002292/0.01019, allocations: 8 kB / 0.9859 GB, free: 7.16 MB / 0.9356 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.0001175/0.01031, allocations: 99.25 kB / 0.986 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001989/0.01051, allocations: 39.91 kB / 0.9861 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01051, allocations: 0 / 0.9861 GB, free: 7.012 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.781e-05/0.0106, allocations: 27.97 kB / 0.9861 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.01083, allocations: 4 kB / 0.9861 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004224/0.01125, allocations: 175.7 kB / 0.9863 GB, free: 6.785 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.703e-05/0.01133, allocations: 67.59 kB / 0.9863 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.485e-05/0.01136, allocations: 4 kB / 0.9863 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.0114, allocations: 12.48 kB / 0.9863 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of SimCode: time 4.31e-07/0.0114, allocations: 4 kB / 0.9863 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of Templates: time 0.003177/0.01458, allocations: 451.3 kB / 0.9868 GB, free: 6.246 MB / 0.9356 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: 8.705124586820602]