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.00157/0.00157, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.002168/0.002168, allocations: 214.6 kB / 22.24 MB, free: 4.867 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.391/1.391, allocations: 230.6 MB / 256 MB, free: 7.812 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.024/3.024, allocations: 0.4892 GB / 0.7943 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 177] 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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) [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.002029/0.002029, allocations: 67.69 kB / 1.153 GB, free: 25.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3222, allocations: 176.1 MB / 1.325 GB, free: 2.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002767/0.3249, allocations: 1.525 MB / 1.327 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009011/0.3258, allocations: 462.9 kB / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.719e-05/0.3259, allocations: 0 / 1.327 GB, free: 400 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.966e-05/0.3259, allocations: 3.938 kB / 1.327 GB, free: 396 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.523e-05/0.326, allocations: 15.86 kB / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.3263, allocations: 39.88 kB / 1.327 GB, free: 340 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000133/0.3264, allocations: 55.73 kB / 1.327 GB, free: 284 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.921e-05/0.3265, allocations: 11.98 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.3267, allocations: 35.86 kB / 1.327 GB, free: 236 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.61e-05/0.3267, allocations: 23.86 kB / 1.327 GB, free: 212 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.3268, allocations: 4 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.02e-05/0.3268, allocations: 11.92 kB / 1.327 GB, free: 196 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.3268, allocations: 11.98 kB / 1.327 GB, free: 184 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.3269, allocations: 15.88 kB / 1.327 GB, free: 168 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.327, allocations: 59.95 kB / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.327, allocations: 0 / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.553e-06/0.327, allocations: 0 / 1.327 GB, free: 108 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.327, allocations: 4 kB / 1.327 GB, free: 104 kB / 1.014 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.0005605/0.3276, allocations: 290.1 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3276, allocations: 8.031 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.952e-05/0.3277, allocations: 38.73 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.3279, allocations: 20.88 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.3281, allocations: 126.4 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.3281, allocations: 384 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.3281, allocations: 4.375 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.3283, allocations: 65.73 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3283, allocations: 3.984 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.627e-06/0.3283, allocations: 0 / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3283, allocations: 4 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.3284, allocations: 31.97 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003755/0.3288, allocations: 236 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.3289, allocations: 42.5 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.998e-05/0.329, allocations: 24.94 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.329, allocations: 0 / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.3291, allocations: 38.56 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 7.42e-07/0.3291, allocations: 0 / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003097/0.3294, allocations: 85.59 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.3294, allocations: 55.41 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.3295, allocations: 126.6 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.3296, allocations: 29.7 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.3296, allocations: 100.1 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.3296, allocations: 11.84 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.3297, allocations: 21.7 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002119/0.3299, allocations: 318.8 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.994e-05/0.33, allocations: 23.98 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.538e-05/0.33, allocations: 15.98 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.3302, allocations: 40.83 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3302, allocations: 4 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001606/0.3304, allocations: 69.67 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.3304, allocations: 4 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3304, allocations: 0 / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.3304, allocations: 4 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.065e-05/0.3305, allocations: 15.86 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.3305, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.265e-05/0.3305, allocations: 11.94 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.3305, allocations: 0 / 1.329 GB, free: 14.07 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.492e-05/0.3306, allocations: 124.4 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.3307, allocations: 4 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.3307, allocations: 4 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3307, allocations: 4 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3307, allocations: 0 / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3307, allocations: 3.984 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.3309, allocations: 140.7 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3309, allocations: 0 / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.568e-05/0.331, allocations: 11.98 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.331, allocations: 0 / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.331, allocations: 0 / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.331, allocations: 4 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.331, allocations: 4.328 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.3312, allocations: 183.3 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.3312, allocations: 3.953 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.3312, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.961e-05/0.3313, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.3313, allocations: 3.984 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3314, allocations: 4 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001104/0.3315, allocations: 97.77 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3315, allocations: 7.938 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002077/0.3317, allocations: 8 kB / 1.33 GB, free: 13.4 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.0005788/0.3323, allocations: 0.7103 MB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001723/0.3324, allocations: 35.91 kB / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3324, allocations: 0 / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.391e-05/0.3325, allocations: 31.97 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.3327, allocations: 5.5 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.3343, allocations: 1.368 MB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.575e-05/0.3344, allocations: 67.34 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.55e-05/0.3344, allocations: 8 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.542e-05/0.3345, allocations: 19.42 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3345, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3641, allocations: 2.069 MB / 1.334 GB, free: 9.105 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.23, allocations: 5.609 kB / 1.334 GB, free: 9.102 MB / 1.029 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/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] "Error: Could not read variable criSol.TEnv in file Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv. Warning: Get data of variable criSol.TEnv from file Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv failed! Error: Could not read variable criSol.TIn in file Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv. Warning: Get data of variable criSol.TIn from file Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.644255098886788]