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.001814/0.001814, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.002286/0.002286, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.428/1.428, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.846/2.846, allocations: 0.5003 GB / 0.8026 GB, free: 6.672 MB / 0.6387 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_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.002146/0.002146, allocations: 67.91 kB / 1.165 GB, free: 456 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8745/0.8767, allocations: 178.9 MB / 1.34 GB, free: 16.39 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00228/0.879, allocations: 1.547 MB / 1.342 GB, free: 15.3 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0006615/0.8796, allocations: 498.6 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.394e-05/0.8797, allocations: 5.406 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.84e-05/0.8797, allocations: 4.641 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.8798, allocations: 14.73 kB / 1.342 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.88, allocations: 33.5 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.8801, allocations: 56.12 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.346e-05/0.8801, allocations: 9.062 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.8803, allocations: 28.97 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.8803, allocations: 26.28 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.8803, allocations: 3.594 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.177e-05/0.8804, allocations: 18.12 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.31e-05/0.8804, allocations: 15.19 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.58e-05/0.8804, allocations: 20.73 kB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.8805, allocations: 45.55 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.8805, allocations: 0 / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8805, allocations: 3.938 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.8805, allocations: 0 / 1.342 GB, free: 14.81 MB / 1.061 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.0003923/0.8809, allocations: 377.6 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.881, allocations: 8.312 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.029e-05/0.881, allocations: 5.344 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.861e-05/0.881, allocations: 36.7 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.8812, allocations: 25.42 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.8813, allocations: 176.2 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.8813, allocations: 2.547 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.8814, allocations: 9.75 kB / 1.343 GB, free: 14.17 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.8815, allocations: 59.59 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.8815, allocations: 4 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.8815, allocations: 0.75 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.8815, allocations: 1.594 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.8816, allocations: 34.25 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.8819, allocations: 274.8 kB / 1.343 GB, free: 13.83 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.882, allocations: 45.97 kB / 1.343 GB, free: 13.8 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.91e-05/0.8821, allocations: 22.94 kB / 1.343 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.8821, allocations: 0 / 1.343 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.463e-05/0.8821, allocations: 36.52 kB / 1.343 GB, free: 13.74 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.8821, allocations: 0 / 1.343 GB, free: 13.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003164/0.8824, allocations: 89.91 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.8825, allocations: 57.12 kB / 1.344 GB, free: 13.63 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.522e-05/0.8825, allocations: 121.1 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.8825, allocations: 29.64 kB / 1.344 GB, free: 13.49 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.693e-05/0.8826, allocations: 92.16 kB / 1.344 GB, free: 13.4 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.8826, allocations: 10.86 kB / 1.344 GB, free: 13.39 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.8826, allocations: 13.88 kB / 1.344 GB, free: 13.38 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.74e-05/0.8827, allocations: 322.8 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.833e-05/0.8827, allocations: 20.33 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.632e-05/0.8828, allocations: 19.58 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.8829, allocations: 39.83 kB / 1.344 GB, free: 13.03 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.8829, allocations: 0 / 1.344 GB, free: 13.03 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001572/0.8831, allocations: 69.86 kB / 1.344 GB, free: 12.99 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.8831, allocations: 5.875 kB / 1.344 GB, free: 12.99 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.8831, allocations: 11.92 kB / 1.344 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.8831, allocations: 5.281 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.124e-05/0.8832, allocations: 13.7 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.8832, allocations: 0 / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.041e-05/0.8832, allocations: 8.781 kB / 1.344 GB, free: 12.96 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.8832, allocations: 2.375 kB / 1.344 GB, free: 12.96 MB / 1.061 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 4.27e-05/0.8833, allocations: 113.2 kB / 1.344 GB, free: 12.85 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.8833, allocations: 6.797 kB / 1.344 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.245e-05/0.8833, allocations: 10.73 kB / 1.344 GB, free: 12.83 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.8833, allocations: 4 kB / 1.344 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.8833, allocations: 2.219 kB / 1.344 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.8833, allocations: 0 / 1.344 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.8835, allocations: 177.3 kB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.8835, allocations: 0 / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/0.8835, allocations: 10.19 kB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.8835, allocations: 0 / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.8835, allocations: 6.531 kB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.8835, allocations: 0 / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8835, allocations: 0.6562 kB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.8837, allocations: 176.6 kB / 1.345 GB, free: 12.46 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.828e-05/0.8837, allocations: 83.45 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.8837, allocations: 2.328 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.027e-05/0.8838, allocations: 3.828 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.057e-05/0.8839, allocations: 3.25 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.8839, allocations: 1.375 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.778e-05/0.8839, allocations: 103.6 kB / 1.345 GB, free: 12.28 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.8839, allocations: 0 / 1.345 GB, free: 12.28 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002115/0.8841, allocations: 11.66 kB / 1.345 GB, free: 12.28 MB / 1.061 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.0003097/0.8844, allocations: 0.7009 MB / 1.346 GB, free: 11.61 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001759/0.8846, allocations: 48.2 kB / 1.346 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.8846, allocations: 0 / 1.346 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 6.938e-05/0.8847, allocations: 20.75 kB / 1.346 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.8849, allocations: 6.594 kB / 1.346 GB, free: 11.58 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.886, allocations: 1.378 MB / 1.347 GB, free: 10.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.8861, allocations: 0.6843 MB / 1.348 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.09e-05/0.8861, allocations: 2.453 kB / 1.348 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.8861, allocations: 19.88 kB / 1.348 GB, free: 9.629 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.8861, allocations: 0 / 1.348 GB, free: 9.629 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.9038, allocations: 1.628 MB / 1.349 GB, free: 9.238 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.934, allocations: 5.406 kB / 1.349 GB, free: 9.238 MB / 1.061 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) [Timeout 840.0] 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: 15.140968489984516]