Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_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.004999/0.004999, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001089/0.001089, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.373/1.373, 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 9.1.3-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 66.61 kB / 0.9504 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2888, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002693/0.2915, allocations: 1.508 MB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009499/0.2925, allocations: 408.5 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.397e-05/0.2926, allocations: 0 / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.755e-05/0.2927, allocations: 3.938 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.155e-05/0.2928, allocations: 15.86 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.2931, allocations: 23.91 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.2933, allocations: 47.84 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.2934, allocations: 15.92 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.2936, allocations: 31.86 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.2937, allocations: 23.91 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.2937, allocations: 4 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.2937, allocations: 4 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.2938, allocations: 7.938 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.794e-05/0.2938, allocations: 23.86 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.294, allocations: 48.09 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.294, allocations: 0 / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.557e-06/0.294, allocations: 0 / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.634e-06/0.294, allocations: 0 / 1.09 GB, free: 15.84 MB / 0.8575 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.0006295/0.2946, allocations: 363.3 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.2947, allocations: 11.97 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.2948, allocations: 38.75 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.2948, allocations: 4.891 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.295, allocations: 176.3 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.295, allocations: 4.359 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.295, allocations: 4.375 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.2952, allocations: 57.73 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.2952, allocations: 4 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.2953, allocations: 7.938 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2953, allocations: 4 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.2954, allocations: 31.97 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.2959, allocations: 268.9 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.296, allocations: 50.5 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.076e-05/0.2961, allocations: 20.94 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.2962, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.2962, allocations: 34.56 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2962, allocations: 0 / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003668/0.2966, allocations: 81.8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.2966, allocations: 67.34 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.2968, allocations: 117.8 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2968, allocations: 25.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.974e-05/0.2969, allocations: 92.14 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.2969, allocations: 11.84 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.297, allocations: 17.7 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.2971, allocations: 318.8 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.651e-05/0.2972, allocations: 23.98 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.054e-05/0.2973, allocations: 19.97 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.2974, allocations: 40.83 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2974, allocations: 0 / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001892/0.2976, allocations: 69.66 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2976, allocations: 7.938 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2977, allocations: 3.938 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.2977, allocations: 4 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.2978, allocations: 8 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2978, allocations: 3.984 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.212e-05/0.2979, allocations: 8 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.2979, allocations: 0 / 1.091 GB, free: 13.64 MB / 0.8575 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 9.722e-05/0.298, allocations: 113.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.2981, allocations: 7.953 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.2981, allocations: 11.89 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2981, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.2981, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.2981, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.2983, allocations: 173.6 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2983, allocations: 0 / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.2984, allocations: 11.98 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2984, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.2984, allocations: 4 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2984, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2985, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.2987, allocations: 187.3 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.2988, allocations: 77.11 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.2988, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.682e-05/0.2989, allocations: 7.984 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.2989, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.299, allocations: 4 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.466e-05/0.299, allocations: 95.27 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.299, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002349/0.2993, allocations: 11.95 kB / 1.092 GB, free: 12.85 MB / 0.8575 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.0006015/0.2999, allocations: 0.7012 MB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002056/0.3001, allocations: 43.97 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3001, allocations: 0 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.813e-05/0.3002, allocations: 24.3 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.3004, allocations: 3.938 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005742/0.301, allocations: 198.8 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.3013, allocations: 0.6885 MB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.941e-05/0.3014, allocations: 8.062 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.3014, allocations: 19.44 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.3014, allocations: 0 / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.3188, allocations: 1.489 MB / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.942, allocations: 21.17 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches