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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006531/0.006531, allocations: 99.67 kB / 15.73 MB, free: 6.059 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.001499/0.001499, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.73/2.73, allocations: 469.4 MB / 0.7422 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2755, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002685/0.2783, allocations: 1.514 MB / 1.221 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006908/0.279, allocations: 414.9 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.701e-05/0.2791, allocations: 0 / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.776e-05/0.2791, allocations: 7.938 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.947e-05/0.2792, allocations: 15.84 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.2794, allocations: 15.98 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.644e-05/0.2795, allocations: 55.73 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2796, allocations: 11.98 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.2797, allocations: 19.92 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.622e-05/0.2798, allocations: 23.91 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.2799, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.249e-05/0.2799, allocations: 4 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.2799, allocations: 11.92 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.917e-05/0.28, allocations: 19.88 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.2801, allocations: 51.8 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.2801, allocations: 4 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2801, allocations: 0 / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.2801, allocations: 0 / 1.222 GB, free: 12.5 MB / 0.9825 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.000495/0.2806, allocations: 359.2 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.2807, allocations: 8.031 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.406e-05/0.2807, allocations: 38.69 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.2807, allocations: 8.828 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.2809, allocations: 176.3 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.2809, allocations: 12.38 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2809, allocations: 384 / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.2811, allocations: 53.8 kB / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.2811, allocations: 0 / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.2811, allocations: 4 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2811, allocations: 4 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.2812, allocations: 31.97 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003573/0.2816, allocations: 276.8 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.2817, allocations: 42.56 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.439e-05/0.2818, allocations: 20.94 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.2818, allocations: 0 / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.2819, allocations: 34.56 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2819, allocations: 4 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003259/0.2822, allocations: 89.53 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.2822, allocations: 55.41 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.676e-05/0.2823, allocations: 113.8 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.2824, allocations: 25.7 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.2824, allocations: 96.12 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2824, allocations: 3.953 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.2825, allocations: 21.66 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2826, allocations: 322.8 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.99e-05/0.2827, allocations: 19.98 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.994e-05/0.2827, allocations: 20.16 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.2829, allocations: 32.84 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2829, allocations: 7.938 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001747/0.283, allocations: 81.61 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2831, allocations: 4 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2831, allocations: 0 / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2831, allocations: 3.938 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.2832, allocations: 11.98 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2832, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.515e-05/0.2833, allocations: 8 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.2833, allocations: 0 / 1.224 GB, free: 10.32 MB / 0.9825 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.319e-05/0.2834, allocations: 125.7 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.2834, allocations: 7.953 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.2834, allocations: 7.906 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2834, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2835, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2835, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.2836, allocations: 173.6 kB / 1.224 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2836, allocations: 3.984 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.2837, allocations: 7.938 kB / 1.224 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2837, allocations: 8 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.2837, allocations: 0 / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2838, allocations: 3.984 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2838, allocations: 0 / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.284, allocations: 171.4 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.284, allocations: 77.11 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.284, allocations: 3.984 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.2841, allocations: 8 kB / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.2842, allocations: 0 / 1.224 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.2842, allocations: 7.984 kB / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.513e-05/0.2842, allocations: 87.28 kB / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2842, allocations: 0 / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002251/0.2845, allocations: 8 kB / 1.224 GB, free: 9.527 MB / 0.9825 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.0004639/0.2849, allocations: 0.7162 MB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001762/0.2851, allocations: 43.97 kB / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2851, allocations: 0 / 1.225 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.438e-05/0.2852, allocations: 23.92 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.2854, allocations: 4.703 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004806/0.2859, allocations: 206.1 kB / 1.225 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.2862, allocations: 0.6884 MB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.519e-05/0.2862, allocations: 3.984 kB / 1.226 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.2863, allocations: 19.44 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of SimCode: time 2.8e-07/0.2863, allocations: 0 / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.3033, allocations: 1.503 MB / 1.228 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.845, allocations: 10.73 kB / 1.228 GB, free: 6.359 MB / 0.9825 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 50 --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