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.001674/0.001674, allocations: 80.3 kB / 19.18 MB, free: 2.52 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.001995/0.001995, allocations: 161 kB / 22.45 MB, free: 5.375 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.474/1.474, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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.933/2.933, allocations: 389 MB / 0.633 GB, free: 1.016 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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.583e-06/1.583e-06, allocations: 0 / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.855e-05, allocations: 5.656 kB / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002781/0.002809, allocations: 1.523 MB / 1.002 GB, free: 5.762 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.003714, allocations: 462.9 kB / 1.002 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.003767, allocations: 4 kB / 1.002 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/0.003799, allocations: 3.938 kB / 1.002 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.753e-05/0.003856, allocations: 19.78 kB / 1.002 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.004096, allocations: 39.83 kB / 1.002 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.004232, allocations: 55.72 kB / 1.002 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.919e-05/0.004321, allocations: 4 kB / 1.002 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.004472, allocations: 39.91 kB / 1.002 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.518e-05/0.004538, allocations: 15.97 kB / 1.002 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.004558, allocations: 8 kB / 1.002 GB, free: 5.117 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.903e-05/0.004607, allocations: 15.98 kB / 1.002 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.428e-05/0.004621, allocations: 3.938 kB / 1.002 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/0.004652, allocations: 15.92 kB / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.004785, allocations: 51.86 kB / 1.002 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.004788, allocations: 0 / 1.002 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of FrontEnd: time 6.61e-07/0.004788, allocations: 3.938 kB / 1.002 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.737e-06/0.004797, allocations: 4 kB / 1.002 GB, free: 5.023 MB / 0.9512 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.0005232/0.00532, allocations: 286.1 kB / 1.003 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.005358, allocations: 12.03 kB / 1.003 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.00559, allocations: 28.86 kB / 1.003 GB, free: 4.676 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.005819, allocations: 129.6 kB / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.005829, allocations: 384 / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.005847, allocations: 12.3 kB / 1.003 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.006017, allocations: 54.23 kB / 1.003 GB, free: 4.453 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.006026, allocations: 192 / 1.003 GB, free: 4.453 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.006037, allocations: 4.375 kB / 1.003 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.006045, allocations: 3.938 kB / 1.003 GB, free: 4.445 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.00618, allocations: 35.97 kB / 1.003 GB, free: 4.41 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000354/0.006534, allocations: 220.6 kB / 1.003 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.006678, allocations: 38.55 kB / 1.003 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.236e-05/0.00676, allocations: 28.88 kB / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.006777, allocations: 0 / 1.003 GB, free: 4.086 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.006803, allocations: 34.5 kB / 1.003 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.006804, allocations: 0 / 1.003 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003444/0.007149, allocations: 97.55 kB / 1.003 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.007196, allocations: 51.41 kB / 1.003 GB, free: 3.879 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.007315, allocations: 131.8 kB / 1.003 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.007334, allocations: 25.7 kB / 1.003 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.068e-05/0.007394, allocations: 84.14 kB / 1.004 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.007416, allocations: 15.94 kB / 1.004 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.007454, allocations: 13.72 kB / 1.004 GB, free: 3.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.007599, allocations: 314.8 kB / 1.004 GB, free: 3.273 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.001e-05/0.007679, allocations: 23.98 kB / 1.004 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.08e-05/0.00774, allocations: 11.98 kB / 1.004 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.007883, allocations: 44.77 kB / 1.004 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.007885, allocations: 0 / 1.004 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002047/0.008089, allocations: 81.55 kB / 1.004 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.008103, allocations: 4 kB / 1.004 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.008106, allocations: 0 / 1.004 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.00812, allocations: 0 / 1.004 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.008222, allocations: 15.98 kB / 1.004 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.008227, allocations: 0 / 1.004 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.244e-05/0.008279, allocations: 4 kB / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.008287, allocations: 0 / 1.004 GB, free: 3.082 MB / 0.9512 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.724e-05/0.008384, allocations: 118.3 kB / 1.004 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.101e-05/0.008425, allocations: 11.89 kB / 1.004 GB, free: 2.945 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.008456, allocations: 11.98 kB / 1.004 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.008458, allocations: 0 / 1.004 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.008462, allocations: 3.938 kB / 1.004 GB, free: 2.926 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.008464, allocations: 4 kB / 1.004 GB, free: 2.922 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.008625, allocations: 117.6 kB / 1.004 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.008626, allocations: 0 / 1.004 GB, free: 2.777 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.663e-05/0.008703, allocations: 15.92 kB / 1.004 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.008704, allocations: 0 / 1.004 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.008716, allocations: 3.938 kB / 1.004 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.008717, allocations: 0 / 1.004 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.008718, allocations: 0 / 1.004 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.008984, allocations: 171.5 kB / 1.005 GB, free: 2.574 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.178e-05/0.008995, allocations: 11.95 kB / 1.005 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.009017, allocations: 7.938 kB / 1.005 GB, free: 2.555 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.713e-05/0.009114, allocations: 7.984 kB / 1.005 GB, free: 2.547 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.009154, allocations: 0 / 1.005 GB, free: 2.547 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.009158, allocations: 3.938 kB / 1.005 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.679e-05/0.009245, allocations: 99.27 kB / 1.005 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.009245, allocations: 0 / 1.005 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002288/0.009474, allocations: 8 kB / 1.005 GB, free: 2.438 MB / 0.9512 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.0001216/0.009596, allocations: 103.2 kB / 1.005 GB, free: 2.328 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001912/0.009787, allocations: 39.97 kB / 1.005 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.009788, allocations: 0 / 1.005 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.827e-05/0.009867, allocations: 19.98 kB / 1.005 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.01009, allocations: 4 kB / 1.005 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.0105, allocations: 164.6 kB / 1.005 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.19e-05/0.01059, allocations: 75.33 kB / 1.005 GB, free: 1.984 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.01062, allocations: 0 / 1.005 GB, free: 1.984 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.01066, allocations: 12.5 kB / 1.005 GB, free: 1.973 MB / 0.9512 GB Notification: Performance of SimCode: time 5.01e-07/0.01066, allocations: 0 / 1.005 GB, free: 1.973 MB / 0.9512 GB Notification: Performance of Templates: time 0.00316/0.01382, allocations: 467.5 kB / 1.005 GB, free: 1.523 MB / 0.9512 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.225631631910801]