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.001248/0.001248, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001481/0.001481, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.331/1.331, allocations: 230.6 MB / 256.8 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 179] 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 2.919/2.919, allocations: 0.49 GB / 0.7959 GB, free: 33.56 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="cs",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.001833/0.001833, allocations: 71.67 kB / 1.155 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2923, allocations: 176.1 MB / 1.327 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002507/0.2948, allocations: 1.552 MB / 1.328 GB, free: 388 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008007/0.2956, allocations: 0.4909 MB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.603e-05/0.2957, allocations: 0 / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.805e-05/0.2957, allocations: 3.938 kB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.046e-05/0.2957, allocations: 15.88 kB / 1.329 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.2959, allocations: 39.88 kB / 1.329 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.296, allocations: 51.8 kB / 1.329 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.203e-05/0.2961, allocations: 11.98 kB / 1.329 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2962, allocations: 35.84 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.861e-05/0.2963, allocations: 23.86 kB / 1.329 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.2963, allocations: 4 kB / 1.329 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.679e-05/0.2964, allocations: 8 kB / 1.329 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.986e-05/0.2964, allocations: 15.92 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.2964, allocations: 15.88 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.2965, allocations: 63.95 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2965, allocations: 0 / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.61e-07/0.2965, allocations: 0 / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2965, allocations: 0 / 1.329 GB, free: 15.6 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.0004284/0.297, allocations: 290.1 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.297, allocations: 8.031 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.229e-05/0.297, allocations: 4.188 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.924e-05/0.297, allocations: 34.73 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001928/0.2972, allocations: 28.88 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.2974, allocations: 125.7 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-06/0.2974, allocations: 384 / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.2974, allocations: 8.375 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.2976, allocations: 57.55 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.2976, allocations: 4 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.2976, allocations: 0 / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2976, allocations: 4 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.2977, allocations: 43.91 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003263/0.298, allocations: 240 kB / 1.33 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.2982, allocations: 42.5 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.884e-05/0.2982, allocations: 20.94 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.2982, allocations: 7.984 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.2983, allocations: 34.55 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2983, allocations: 4 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0002907/0.2985, allocations: 85.61 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.2986, allocations: 51.41 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.2987, allocations: 133.8 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.2987, allocations: 25.7 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.2988, allocations: 88.14 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.2988, allocations: 15.84 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.2988, allocations: 21.7 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2989, allocations: 318.8 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.622e-05/0.299, allocations: 15.98 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-05/0.2991, allocations: 19.98 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.2992, allocations: 53.03 kB / 1.331 GB, free: 13.66 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2992, allocations: 0 / 1.331 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001595/0.2993, allocations: 61.67 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2994, allocations: 11.98 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.2994, allocations: 0 / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.2994, allocations: 3.938 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.729e-05/0.2995, allocations: 12 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2995, allocations: 4 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.435e-05/0.2995, allocations: 11.94 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.2995, allocations: 0 / 1.331 GB, free: 13.55 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 7.342e-05/0.2996, allocations: 113.8 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.2996, allocations: 0 / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.178e-05/0.2996, allocations: 15.98 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2997, allocations: 0 / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2997, allocations: 0 / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2997, allocations: 0 / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.2998, allocations: 148.7 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2998, allocations: 0 / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.443e-05/0.2999, allocations: 7.984 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2999, allocations: 4 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.2999, allocations: 4 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2999, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2999, allocations: 0 / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.3001, allocations: 179.3 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.508e-06/0.3001, allocations: 3.953 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.3001, allocations: 3.938 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.907e-05/0.3002, allocations: 11.98 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.3003, allocations: 0 / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3003, allocations: 4 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.823e-05/0.3003, allocations: 95.27 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3003, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002052/0.3005, allocations: 8 kB / 1.331 GB, free: 12.89 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.0004775/0.301, allocations: 0.7123 MB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001724/0.3012, allocations: 39.95 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3012, allocations: 4 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.657e-05/0.3012, allocations: 19.98 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.3014, allocations: 11.94 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.3029, allocations: 1.378 MB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.3031, allocations: 0.6885 MB / 1.334 GB, free: 9.906 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.883e-05/0.3032, allocations: 4.031 kB / 1.334 GB, free: 9.902 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.3032, allocations: 19.42 kB / 1.334 GB, free: 9.883 MB / 1.029 GB Notification: Performance of SimCode: time 3.5e-07/0.3032, allocations: 0 / 1.334 GB, free: 9.883 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.3232, allocations: 1.704 MB / 1.336 GB, free: 8.328 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.942/10.27, allocations: 6.281 kB / 1.336 GB, free: 8.328 MB / 1.029 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=400 --tolerance=1e-06 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.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: 16.272545781976078]