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.001476/0.001476, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001643/0.001643, allocations: 216.6 kB / 23.01 MB, free: 4.609 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.341/1.341, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 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.971/2.971, allocations: 0.505 GB / 0.8108 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 67.94 kB / 1.178 GB, free: 16.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3006, allocations: 180.2 MB / 1.354 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002764/0.3033, allocations: 1.549 MB / 1.356 GB, free: 6.422 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0007745/0.3041, allocations: 0.4948 MB / 1.356 GB, free: 5.922 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.557e-05/0.3042, allocations: 4 kB / 1.356 GB, free: 5.918 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.924e-05/0.3042, allocations: 3.938 kB / 1.356 GB, free: 5.914 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.3043, allocations: 19.8 kB / 1.356 GB, free: 5.895 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.3045, allocations: 31.89 kB / 1.356 GB, free: 5.863 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.3046, allocations: 55.78 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.577e-05/0.3047, allocations: 12 kB / 1.356 GB, free: 5.797 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.3048, allocations: 31.84 kB / 1.356 GB, free: 5.766 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.297e-05/0.3049, allocations: 27.86 kB / 1.356 GB, free: 5.738 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.3049, allocations: 4 kB / 1.356 GB, free: 5.734 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.863e-05/0.3049, allocations: 8 kB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.305, allocations: 11.98 kB / 1.356 GB, free: 5.715 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.868e-05/0.305, allocations: 19.81 kB / 1.356 GB, free: 5.695 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.3051, allocations: 59.73 kB / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3051, allocations: 0 / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of FrontEnd: time 9.42e-07/0.3051, allocations: 0 / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.3051, allocations: 0 / 1.356 GB, free: 5.637 MB / 1.045 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.0004689/0.3056, allocations: 290.1 kB / 1.357 GB, free: 5.324 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.3056, allocations: 15.97 kB / 1.357 GB, free: 5.309 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.3058, allocations: 24.88 kB / 1.357 GB, free: 5.285 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.306, allocations: 126.4 kB / 1.357 GB, free: 5.137 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.306, allocations: 4.375 kB / 1.357 GB, free: 5.133 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-06/0.306, allocations: 384 / 1.357 GB, free: 5.133 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.3062, allocations: 61.98 kB / 1.357 GB, free: 5.066 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.3062, allocations: 3.938 kB / 1.357 GB, free: 5.062 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.3062, allocations: 0 / 1.357 GB, free: 5.062 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3062, allocations: 4 kB / 1.357 GB, free: 5.059 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.3063, allocations: 35.97 kB / 1.357 GB, free: 5.023 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.3067, allocations: 244 kB / 1.357 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.3068, allocations: 38.56 kB / 1.357 GB, free: 4.695 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.078e-05/0.3069, allocations: 28.88 kB / 1.357 GB, free: 4.664 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.3069, allocations: 7.938 kB / 1.357 GB, free: 4.656 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/0.3069, allocations: 34.55 kB / 1.357 GB, free: 4.613 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.3069, allocations: 0 / 1.357 GB, free: 4.613 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0002884/0.3072, allocations: 89.61 kB / 1.357 GB, free: 4.52 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.3072, allocations: 51.41 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3074, allocations: 125.8 kB / 1.357 GB, free: 4.324 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.3074, allocations: 25.7 kB / 1.358 GB, free: 4.293 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.458e-05/0.3074, allocations: 92.14 kB / 1.358 GB, free: 4.199 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.3074, allocations: 11.84 kB / 1.358 GB, free: 4.188 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.476e-05/0.3075, allocations: 17.7 kB / 1.358 GB, free: 4.164 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3076, allocations: 322.8 kB / 1.358 GB, free: 3.84 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/0.3077, allocations: 23.92 kB / 1.358 GB, free: 3.816 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.166e-05/0.3078, allocations: 19.98 kB / 1.358 GB, free: 3.797 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.3079, allocations: 36.83 kB / 1.358 GB, free: 3.758 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3079, allocations: 0 / 1.358 GB, free: 3.758 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001692/0.3081, allocations: 73.62 kB / 1.358 GB, free: 3.68 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.3081, allocations: 7.984 kB / 1.358 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.3081, allocations: 0 / 1.358 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.3081, allocations: 0 / 1.358 GB, free: 3.672 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.746e-05/0.3082, allocations: 8 kB / 1.358 GB, free: 3.664 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.3082, allocations: 4 kB / 1.358 GB, free: 3.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.34e-05/0.3083, allocations: 15.98 kB / 1.358 GB, free: 3.645 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3083, allocations: 3.938 kB / 1.358 GB, free: 3.641 MB / 1.045 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 7.776e-05/0.3083, allocations: 118.4 kB / 1.358 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.3084, allocations: 7.953 kB / 1.358 GB, free: 3.508 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.664e-05/0.3084, allocations: 11.98 kB / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3084, allocations: 0 / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3084, allocations: 0 / 1.358 GB, free: 3.492 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.3084, allocations: 4 kB / 1.358 GB, free: 3.488 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.3086, allocations: 144.7 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3086, allocations: 0 / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-05/0.3086, allocations: 11.98 kB / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.3086, allocations: 0 / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.3086, allocations: 0 / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3086, allocations: 0 / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3086, allocations: 0 / 1.358 GB, free: 3.293 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002151/0.3089, allocations: 175.8 kB / 1.359 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.999e-06/0.3089, allocations: 7.891 kB / 1.359 GB, free: 3.098 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3089, allocations: 4 kB / 1.359 GB, free: 3.094 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.657e-05/0.309, allocations: 3.984 kB / 1.359 GB, free: 3.09 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.309, allocations: 8.031 kB / 1.359 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.309, allocations: 0 / 1.359 GB, free: 3.082 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.024e-05/0.3091, allocations: 103.2 kB / 1.359 GB, free: 2.98 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3091, allocations: 0 / 1.359 GB, free: 2.98 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000213/0.3093, allocations: 12 kB / 1.359 GB, free: 2.969 MB / 1.045 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 9.06e-05/0.3094, allocations: 95.23 kB / 1.359 GB, free: 2.867 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001648/0.3095, allocations: 39.97 kB / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.3095, allocations: 0 / 1.359 GB, free: 2.828 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 6.528e-05/0.3096, allocations: 23.92 kB / 1.359 GB, free: 2.805 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/0.3098, allocations: 7.938 kB / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003739/0.3102, allocations: 203.1 kB / 1.359 GB, free: 2.566 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.3105, allocations: 0.6846 MB / 1.36 GB, free: 1.855 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.251e-05/0.3105, allocations: 7.438 kB / 1.36 GB, free: 1.848 MB / 1.045 GB Notification: Performance of SimCode: time 3.2e-07/0.3105, allocations: 4 kB / 1.36 GB, free: 1.844 MB / 1.045 GB Notification: Performance of Templates: time 0.002036/0.3125, allocations: 0.7617 MB / 1.36 GB, free: 1.086 MB / 1.045 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/jenkins1/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: 9.972637658996973]