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.001395/0.001395, 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.001632/0.001632, allocations: 216.9 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.499/1.499, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.178/3.178, allocations: 0.4892 GB / 0.7951 GB, free: 35.49 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.00209/0.00209, allocations: 69.06 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3875, allocations: 176.1 MB / 1.326 GB, free: 1.887 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002803/0.3903, allocations: 1.523 MB / 1.328 GB, free: 368 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008722/0.3911, allocations: 470.9 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.929e-05/0.3912, allocations: 0 / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.081e-05/0.3912, allocations: 7.938 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.644e-05/0.3913, allocations: 15.84 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002274/0.3915, allocations: 31.91 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.3916, allocations: 59.7 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.601e-05/0.3917, allocations: 12 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.3919, allocations: 27.92 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.047e-05/0.3919, allocations: 27.84 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.3919, allocations: 7.938 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.874e-05/0.392, allocations: 11.98 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.392, allocations: 4 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.392, allocations: 23.86 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.3922, allocations: 47.75 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3922, allocations: 3.938 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3922, allocations: 4 kB / 1.329 GB, free: 15.61 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3922, allocations: 7.938 kB / 1.329 GB, free: 15.61 MB / 1.029 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.0005166/0.3927, allocations: 290.1 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3927, allocations: 12.03 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.3929, allocations: 20.88 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.3932, allocations: 126.4 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.3932, allocations: 384 / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.3932, allocations: 4.375 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.3933, allocations: 61.98 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3934, allocations: 3.984 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3934, allocations: 4 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3934, allocations: 0 / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.3935, allocations: 27.98 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003453/0.3938, allocations: 216.6 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.394, allocations: 42.5 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.546e-05/0.394, allocations: 24.94 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.394, allocations: 0 / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3941, allocations: 34.56 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.3941, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003262/0.3944, allocations: 93.53 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.3944, allocations: 55.41 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.3946, allocations: 117.8 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3946, allocations: 29.69 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.675e-05/0.3946, allocations: 96.14 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.3947, allocations: 11.84 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.3947, allocations: 21.7 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3949, allocations: 310.8 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.01e-05/0.3949, allocations: 23.98 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.837e-05/0.395, allocations: 15.98 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.3951, allocations: 45.05 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3951, allocations: 3.938 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001646/0.3953, allocations: 73.66 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.3953, allocations: 4 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3953, allocations: 0 / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3953, allocations: 15.86 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-05/0.3954, allocations: 8 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3954, allocations: 0 / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.323e-05/0.3955, allocations: 11.94 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.3955, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 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.339e-05/0.3956, allocations: 114.3 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.3956, allocations: 8 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.3956, allocations: 8 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.3956, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3956, allocations: 7.984 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3956, allocations: 0 / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.3958, allocations: 125.2 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3958, allocations: 0 / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.3959, allocations: 15.92 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3959, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.3959, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3959, allocations: 4 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3959, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3961, allocations: 171.4 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.398e-05/0.3961, allocations: 11.95 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.3961, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.947e-05/0.3962, allocations: 4 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.3963, allocations: 3.984 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3963, allocations: 0 / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.445e-05/0.3963, allocations: 95.27 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3963, allocations: 4 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002177/0.3965, allocations: 12 kB / 1.331 GB, free: 13.02 MB / 1.029 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.0001174/0.3967, allocations: 99.19 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001767/0.3968, allocations: 35.97 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3968, allocations: 0 / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.02e-05/0.3969, allocations: 23.97 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.3971, allocations: 7.938 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004236/0.3975, allocations: 207 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.698e-05/0.3976, allocations: 67.34 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.3977, allocations: 15.42 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3977, allocations: 0 / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of Templates: time 0.002212/0.3999, allocations: 0.7785 MB / 1.332 GB, free: 11.74 MB / 1.029 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/jenkins1/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: 11.202474150806665]