Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001278/0.001278, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001438/0.001438, allocations: 215.2 kB / 22.99 MB, free: 4.945 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.756/2.756, allocations: 476 MB / 0.7707 GB, free: 4.727 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002103/0.002103, allocations: 65.5 kB / 1.118 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.306, allocations: 170 MB / 1.284 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002979/0.309, allocations: 1.521 MB / 1.285 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.31, allocations: 464.7 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.245e-05/0.3101, allocations: 0 / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.3101, allocations: 7.938 kB / 1.286 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.244e-05/0.3102, allocations: 7.875 kB / 1.286 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.3104, allocations: 43.88 kB / 1.286 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3106, allocations: 51.8 kB / 1.286 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3107, allocations: 7.984 kB / 1.286 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.3108, allocations: 31.91 kB / 1.286 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.15e-05/0.3109, allocations: 27.8 kB / 1.286 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.3109, allocations: 4 kB / 1.286 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.295e-05/0.3109, allocations: 4 kB / 1.286 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.281e-05/0.311, allocations: 15.92 kB / 1.286 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.726e-05/0.311, allocations: 11.94 kB / 1.286 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.3111, allocations: 59.67 kB / 1.286 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3111, allocations: 0 / 1.286 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3111, allocations: 0 / 1.286 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.3111, allocations: 4 kB / 1.286 GB, free: 9.738 MB / 0.9825 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.0005589/0.3117, allocations: 290.1 kB / 1.286 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3117, allocations: 8.031 kB / 1.286 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.312, allocations: 24.91 kB / 1.286 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002494/0.3122, allocations: 131.9 kB / 1.286 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3122, allocations: 4.375 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-06/0.3122, allocations: 384 / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001622/0.3124, allocations: 61.98 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3124, allocations: 3.938 kB / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.3124, allocations: 0 / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.3124, allocations: 0 / 1.286 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.3126, allocations: 35.97 kB / 1.287 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003662/0.3129, allocations: 220.6 kB / 1.287 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.313, allocations: 42.44 kB / 1.287 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.89e-05/0.3131, allocations: 32.92 kB / 1.287 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.3132, allocations: 3.938 kB / 1.287 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3132, allocations: 34.5 kB / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3132, allocations: 0 / 1.287 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003196/0.3135, allocations: 89.61 kB / 1.287 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.3136, allocations: 55.39 kB / 1.287 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.3137, allocations: 120.7 kB / 1.287 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3137, allocations: 29.7 kB / 1.287 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.702e-05/0.3138, allocations: 92.12 kB / 1.287 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.3138, allocations: 15.91 kB / 1.287 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.3138, allocations: 9.719 kB / 1.287 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001557/0.314, allocations: 322.8 kB / 1.288 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.633e-05/0.314, allocations: 15.98 kB / 1.288 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.616e-05/0.3141, allocations: 19.92 kB / 1.288 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.3142, allocations: 40.83 kB / 1.288 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3142, allocations: 3.938 kB / 1.288 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001745/0.3144, allocations: 73.67 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.3144, allocations: 4 kB / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3144, allocations: 0 / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3144, allocations: 0 / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.3145, allocations: 11.98 kB / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3145, allocations: 0 / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.379e-05/0.3146, allocations: 7.938 kB / 1.288 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.3146, allocations: 3.984 kB / 1.288 GB, free: 7.797 MB / 0.9825 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.955e-05/0.3147, allocations: 125.7 kB / 1.288 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.3147, allocations: 3.953 kB / 1.288 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/0.3148, allocations: 12 kB / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3148, allocations: 0 / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3148, allocations: 0 / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3148, allocations: 0 / 1.288 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.3149, allocations: 121.2 kB / 1.288 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3149, allocations: 3.984 kB / 1.288 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.247e-05/0.315, allocations: 4 kB / 1.288 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.315, allocations: 4 kB / 1.288 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.315, allocations: 4 kB / 1.288 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.315, allocations: 11.92 kB / 1.288 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.315, allocations: 0 / 1.288 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002393/0.3152, allocations: 167.4 kB / 1.288 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.105e-05/0.3153, allocations: 3.953 kB / 1.288 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.3153, allocations: 11.92 kB / 1.288 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.38e-05/0.3153, allocations: 0 / 1.288 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.3154, allocations: 8.375 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.3154, allocations: 3.984 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.443e-05/0.3155, allocations: 95.27 kB / 1.288 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3155, allocations: 7.938 kB / 1.288 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002164/0.3157, allocations: 8 kB / 1.288 GB, free: 7.152 MB / 0.9825 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.0001103/0.3158, allocations: 95.25 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001773/0.316, allocations: 39.95 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.316, allocations: 0 / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.198e-05/0.316, allocations: 23.92 kB / 1.288 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.3163, allocations: 7.938 kB / 1.288 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000428/0.3167, allocations: 194.4 kB / 1.289 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.932e-05/0.3168, allocations: 71.58 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.861e-05/0.3168, allocations: 11.44 kB / 1.289 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3168, allocations: 0 / 1.289 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of Templates: time 0.002253/0.3191, allocations: 0.777 MB / 1.289 GB, free: 5.883 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.928699277807027]