Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_10_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.008535/0.008535, allocations: 96.3 kB / 15.73 MB, free: 6.488 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.001581/0.001581, allocations: 189.5 kB / 16.67 MB, free: 6.391 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.88 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2809, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003303/0.2843, allocations: 1.506 MB / 1.168 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.285, allocations: 415 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.684e-05/0.2851, allocations: 0 / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.2852, allocations: 7.938 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.885e-05/0.2852, allocations: 19.84 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.2854, allocations: 11.98 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.207e-05/0.2855, allocations: 55.78 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.647e-05/0.2856, allocations: 8 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.044e-05/0.2857, allocations: 23.91 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.34e-05/0.2858, allocations: 23.86 kB / 1.168 GB, free: 5.242 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.2858, allocations: 8 kB / 1.168 GB, free: 5.234 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.029e-05/0.2858, allocations: 4 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.942e-05/0.2858, allocations: 7.984 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.2859, allocations: 19.88 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.286, allocations: 56.02 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.286, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.803e-06/0.286, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.286, allocations: 0 / 1.168 GB, free: 5.148 MB / 0.92 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.0004713/0.2865, allocations: 359.2 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2866, allocations: 12.03 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.2866, allocations: 38.73 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.483e-05/0.2866, allocations: 4.875 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.2867, allocations: 180.3 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.2868, allocations: 384 / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.2868, allocations: 4.375 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.2869, allocations: 53.8 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.287, allocations: 0 / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.287, allocations: 4 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.287, allocations: 8 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.2871, allocations: 31.97 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003502/0.2875, allocations: 276.8 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.2876, allocations: 38.56 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.067e-05/0.2877, allocations: 28.94 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.2877, allocations: 0 / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.2877, allocations: 34.56 kB / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 2.174e-06/0.2877, allocations: 0 / 1.169 GB, free: 3.926 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002999/0.288, allocations: 89.52 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.2881, allocations: 55.41 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.2882, allocations: 125.7 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.2882, allocations: 25.7 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.2882, allocations: 100.1 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.2883, allocations: 7.891 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.2883, allocations: 13.72 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.2884, allocations: 322.8 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.952e-05/0.2885, allocations: 19.98 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.85e-05/0.2885, allocations: 19.98 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.2887, allocations: 44.83 kB / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2887, allocations: 0 / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000171/0.2889, allocations: 73.56 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2889, allocations: 4 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2889, allocations: 0 / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.2889, allocations: 0 / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.66e-05/0.289, allocations: 11.98 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.289, allocations: 4 kB / 1.17 GB, free: 2.965 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.431e-05/0.2891, allocations: 8 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.2891, allocations: 3.984 kB / 1.17 GB, free: 2.953 MB / 0.92 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.368e-05/0.2892, allocations: 113.8 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.2892, allocations: 3.953 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.538e-05/0.2892, allocations: 12.23 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2893, allocations: 0 / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2893, allocations: 0 / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2893, allocations: 3.984 kB / 1.17 GB, free: 2.805 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.2894, allocations: 181.6 kB / 1.17 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2895, allocations: 4 kB / 1.17 GB, free: 2.574 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.173e-05/0.2895, allocations: 4 kB / 1.17 GB, free: 2.57 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2895, allocations: 3.938 kB / 1.17 GB, free: 2.566 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2896, allocations: 7.984 kB / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2896, allocations: 0 / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2896, allocations: 0 / 1.17 GB, free: 2.559 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002081/0.2898, allocations: 171.4 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.2898, allocations: 89.05 kB / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.2898, allocations: 0 / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2899, allocations: 4 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.892e-05/0.29, allocations: 0 / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.29, allocations: 3.984 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.847e-05/0.29, allocations: 91.28 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.29, allocations: 0 / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002267/0.2903, allocations: 8 kB / 1.171 GB, free: 2.164 MB / 0.92 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.0004654/0.2907, allocations: 0.7162 MB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001767/0.2909, allocations: 39.97 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2909, allocations: 4 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 7.2e-05/0.291, allocations: 23.92 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.2912, allocations: 0 / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004541/0.2917, allocations: 193.8 kB / 1.172 GB, free: 1.129 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.2919, allocations: 0.6846 MB / 1.172 GB, free: 428 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.17e-05/0.292, allocations: 4 kB / 1.172 GB, free: 424 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.124e-05/0.292, allocations: 19.44 kB / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.292, allocations: 0 / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.3083, allocations: 1.507 MB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.844, allocations: 8.016 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_10_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches