Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_11_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.00762/0.007619, allocations: 98.16 kB / 15.73 MB, free: 6.012 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.002117/0.002117, allocations: 197 kB / 16.68 MB, free: 5.93 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.743/2.743, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.84 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.694/0.6959, allocations: 159.1 MB / 1.22 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003649/0.6996, allocations: 1.495 MB / 1.222 GB, free: 0.582 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008989/0.7006, allocations: 423 kB / 1.222 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.7006, allocations: 0 / 1.222 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.821e-05/0.7007, allocations: 3.938 kB / 1.222 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.752e-05/0.7007, allocations: 15.86 kB / 1.222 GB, free: 148 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.7009, allocations: 7.984 kB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.7011, allocations: 55.72 kB / 1.222 GB, free: 84 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.7012, allocations: 19.98 kB / 1.222 GB, free: 64 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.7013, allocations: 19.92 kB / 1.222 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.35e-05/0.7014, allocations: 19.92 kB / 1.222 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.7014, allocations: 4 kB / 1.222 GB, free: 20 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.723e-05/0.7015, allocations: 4 kB / 1.222 GB, free: 16 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.7015, allocations: 11.92 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.163e-05/0.7016, allocations: 19.92 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.7017, allocations: 46.48 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.7017, allocations: 0 / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.442e-06/0.7017, allocations: 0 / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.7017, allocations: 8 kB / 1.222 GB, free: 15.93 MB / 0.9512 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.0006389/0.7024, allocations: 360.2 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.7024, allocations: 8.031 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.7025, allocations: 38.73 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.7025, allocations: 8.891 kB / 1.223 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.7027, allocations: 180.2 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.7028, allocations: 384 / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.7028, allocations: 4.375 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.703, allocations: 61.8 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.703, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.7031, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.7031, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.7033, allocations: 31.97 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005084/0.7038, allocations: 276.8 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.704, allocations: 46.56 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.7042, allocations: 24.94 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.7042, allocations: 3.938 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.7043, allocations: 34.56 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.7043, allocations: 0 / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.00046/0.7047, allocations: 101.5 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.7048, allocations: 51.41 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.7049, allocations: 117.8 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.7049, allocations: 25.7 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.705, allocations: 96.11 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.705, allocations: 3.953 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.7051, allocations: 17.72 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.7052, allocations: 322.8 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/0.7054, allocations: 15.98 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.121e-05/0.7054, allocations: 19.98 kB / 1.224 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.7056, allocations: 40.83 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7056, allocations: 0 / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002502/0.7059, allocations: 77.56 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.7059, allocations: 8 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.7059, allocations: 0 / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.706, allocations: 0 / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.7061, allocations: 11.98 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.7061, allocations: 0 / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.707e-05/0.7062, allocations: 7.938 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.7062, allocations: 7.922 kB / 1.224 GB, free: 13.74 MB / 0.9512 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 0.0001125/0.7063, allocations: 118.3 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.7064, allocations: 8.281 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.403e-05/0.7064, allocations: 7.906 kB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.7064, allocations: 3.984 kB / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7065, allocations: 0 / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.7065, allocations: 0 / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.7067, allocations: 173.6 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7067, allocations: 0 / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.379e-05/0.7068, allocations: 8 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.7069, allocations: 3.984 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.7069, allocations: 4 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.7069, allocations: 3.938 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7069, allocations: 8 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/0.7072, allocations: 163.4 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.732e-05/0.7073, allocations: 85.09 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.7073, allocations: 0 / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.7074, allocations: 4 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.7075, allocations: 3.984 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.7075, allocations: 4 kB / 1.225 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.018e-05/0.7076, allocations: 103.2 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7076, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004072/0.708, allocations: 4 kB / 1.225 GB, free: 12.94 MB / 0.9512 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.0005641/0.7086, allocations: 0.7123 MB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001814/0.7088, allocations: 35.97 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7088, allocations: 0 / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 7.775e-05/0.7089, allocations: 19.98 kB / 1.226 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.7091, allocations: 7.938 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004801/0.7096, allocations: 197.7 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.7099, allocations: 0.6885 MB / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.088e-05/0.7099, allocations: 0 / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.71, allocations: 15.42 kB / 1.226 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.71, allocations: 3.938 kB / 1.226 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.7299, allocations: 1.519 MB / 1.228 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.496, allocations: 5.438 kB / 1.228 GB, free: 9.793 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches