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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004684/0.004684, allocations: 99.19 kB / 15.73 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 198.6 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.936/2.936, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 71.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2964, allocations: 162.2 MB / 1.241 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002655/0.2991, allocations: 1.506 MB / 1.243 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006549/0.2998, allocations: 407.1 kB / 1.243 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.351e-05/0.2999, allocations: 3.938 kB / 1.243 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.558e-05/0.2999, allocations: 3.938 kB / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.555e-05/0.3, allocations: 15.86 kB / 1.243 GB, free: 8.273 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.3001, allocations: 15.91 kB / 1.243 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.258e-05/0.3002, allocations: 47.86 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.827e-05/0.3003, allocations: 15.98 kB / 1.243 GB, free: 8.195 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.683e-05/0.3004, allocations: 23.86 kB / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.584e-05/0.3005, allocations: 31.83 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.3005, allocations: 4 kB / 1.243 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.3005, allocations: 4 kB / 1.243 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.693e-05/0.3006, allocations: 4 kB / 1.243 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.968e-05/0.3006, allocations: 27.86 kB / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 9.722e-05/0.3007, allocations: 43.77 kB / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3007, allocations: 0 / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3007, allocations: 0 / 1.244 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.3007, allocations: 0 / 1.244 GB, free: 8.059 MB / 0.9981 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.0005096/0.3012, allocations: 367.2 kB / 1.244 GB, free: 7.652 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3013, allocations: 12.03 kB / 1.244 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.3013, allocations: 34.75 kB / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.343e-05/0.3014, allocations: 4.938 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.3015, allocations: 176.3 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.3015, allocations: 4.312 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-06/0.3016, allocations: 384 / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.3017, allocations: 65.8 kB / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3018, allocations: 0 / 1.244 GB, free: 7.309 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3018, allocations: 3.984 kB / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3018, allocations: 0 / 1.244 GB, free: 7.305 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.3019, allocations: 27.98 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003918/0.3023, allocations: 280.8 kB / 1.244 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.3025, allocations: 50.5 kB / 1.245 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.062e-05/0.3026, allocations: 28.88 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3026, allocations: 0 / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.3026, allocations: 30.56 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 8.41e-07/0.3026, allocations: 0 / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003272/0.3029, allocations: 89.66 kB / 1.245 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.303, allocations: 55.34 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.3031, allocations: 121.8 kB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.3031, allocations: 29.7 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.3032, allocations: 88.09 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.3032, allocations: 11.89 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.3033, allocations: 17.7 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3034, allocations: 318.8 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.266e-05/0.3035, allocations: 19.98 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-05/0.3036, allocations: 19.98 kB / 1.245 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3037, allocations: 40.83 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3037, allocations: 0 / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001783/0.3039, allocations: 73.84 kB / 1.245 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3039, allocations: 8.781 kB / 1.245 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3039, allocations: 7.984 kB / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.304, allocations: 48 / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.598e-05/0.3041, allocations: 7.984 kB / 1.245 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.3041, allocations: 4 kB / 1.245 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.3041, allocations: 7.922 kB / 1.245 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.3041, allocations: 4 kB / 1.245 GB, free: 5.855 MB / 0.9981 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 8.186e-05/0.3042, allocations: 113.8 kB / 1.246 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.3043, allocations: 7.953 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.247e-05/0.3043, allocations: 7.906 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3043, allocations: 3.984 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3043, allocations: 4 kB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3043, allocations: 0 / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.3045, allocations: 169.6 kB / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3045, allocations: 0 / 1.246 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.676e-05/0.3046, allocations: 11.98 kB / 1.246 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3046, allocations: 0 / 1.246 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.3046, allocations: 4 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3046, allocations: 0 / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3046, allocations: 0 / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.3049, allocations: 175.4 kB / 1.246 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.3049, allocations: 81.06 kB / 1.246 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.305, allocations: 0 / 1.246 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.205e-05/0.3051, allocations: 7.984 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.3051, allocations: 4 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.3051, allocations: 7.938 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.366e-05/0.3052, allocations: 103.2 kB / 1.246 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3052, allocations: 0 / 1.246 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002234/0.3054, allocations: 8 kB / 1.246 GB, free: 5.059 MB / 0.9981 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.0005563/0.306, allocations: 0.7123 MB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001779/0.3062, allocations: 39.97 kB / 1.247 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.3062, allocations: 0 / 1.247 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 7.463e-05/0.3063, allocations: 19.98 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.3065, allocations: 8 kB / 1.247 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005046/0.307, allocations: 212.6 kB / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3073, allocations: 0.6807 MB / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.3074, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.3074, allocations: 19.42 kB / 1.248 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.3074, allocations: 0 / 1.248 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.3285, allocations: 1.505 MB / 1.249 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.931, allocations: 9.312 kB / 1.249 GB, free: 1.906 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/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) Reference file matches