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.004868/0.004868, allocations: 101 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.00128/0.00128, allocations: 194.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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.605/2.605, allocations: 437.1 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 76.09 kB / 1.018 GB, free: 9.867 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7327/0.7346, allocations: 151.6 MB / 1.166 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002938/0.7376, allocations: 1.504 MB / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006976/0.7383, allocations: 419.1 kB / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.19e-05/0.7384, allocations: 0 / 1.168 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.7384, allocations: 7.922 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.868e-05/0.7385, allocations: 11.86 kB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.7387, allocations: 15.92 kB / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.566e-05/0.7388, allocations: 51.78 kB / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.766e-05/0.7389, allocations: 12 kB / 1.168 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.615e-05/0.739, allocations: 27.86 kB / 1.168 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.168e-05/0.7391, allocations: 27.89 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.7391, allocations: 0 / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.083e-05/0.7391, allocations: 4 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.178e-05/0.7392, allocations: 11.94 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.7392, allocations: 23.86 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.7393, allocations: 38.56 kB / 1.168 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.7393, allocations: 4 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7393, allocations: 0 / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.7393, allocations: 0 / 1.168 GB, free: 1.633 MB / 0.8887 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.0005674/0.7399, allocations: 360.2 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.74, allocations: 12.62 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.74, allocations: 34.73 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.74, allocations: 8.938 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.7402, allocations: 176.3 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.7402, allocations: 4.375 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.7403, allocations: 4.312 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.7404, allocations: 61.8 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.7405, allocations: 3.938 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.7405, allocations: 0 / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.7405, allocations: 0 / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.7406, allocations: 31.97 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.7411, allocations: 276.9 kB / 1.169 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.7412, allocations: 54.44 kB / 1.169 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.7413, allocations: 24.94 kB / 1.169 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.7414, allocations: 3.984 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.7414, allocations: 34.55 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.7414, allocations: 4 kB / 1.169 GB, free: 400 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003332/0.7417, allocations: 85.66 kB / 1.169 GB, free: 308 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.7418, allocations: 55.34 kB / 1.169 GB, free: 240 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.7419, allocations: 114.2 kB / 1.17 GB, free: 116 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.7419, allocations: 29.7 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.879e-05/0.742, allocations: 92.08 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.742, allocations: 7.953 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.7421, allocations: 17.72 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001907/0.7423, allocations: 322.8 kB / 1.17 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.545e-05/0.7424, allocations: 19.98 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.09e-05/0.7424, allocations: 19.98 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.7426, allocations: 40.83 kB / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7426, allocations: 0 / 1.17 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001784/0.7428, allocations: 73.56 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.7428, allocations: 8 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.7428, allocations: 0 / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.7428, allocations: 0 / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.743, allocations: 15.98 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.743, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.28e-05/0.743, allocations: 7.922 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.743, allocations: 4 kB / 1.17 GB, free: 15.43 MB / 0.9044 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 9e-05/0.7431, allocations: 113.8 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.7432, allocations: 7.953 kB / 1.17 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.7432, allocations: 7.906 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.7432, allocations: 3.938 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.7432, allocations: 4 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.7432, allocations: 0 / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.7435, allocations: 173.6 kB / 1.17 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7435, allocations: 0 / 1.17 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.149e-05/0.7435, allocations: 11.98 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.7435, allocations: 0 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.7436, allocations: 4 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7436, allocations: 0 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.7436, allocations: 0 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.7438, allocations: 175.4 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.7439, allocations: 81.06 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.7439, allocations: 4 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.873e-05/0.744, allocations: 4 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.744, allocations: 11.92 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.744, allocations: 0 / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.223e-05/0.7441, allocations: 95.31 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7441, allocations: 0 / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002179/0.7443, allocations: 12 kB / 1.171 GB, free: 14.64 MB / 0.9044 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.0005697/0.7449, allocations: 0.7049 MB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001905/0.7451, allocations: 43.95 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7451, allocations: 0 / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.764e-05/0.7452, allocations: 23.98 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.7454, allocations: 0 / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005305/0.746, allocations: 209.7 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.7463, allocations: 0.6807 MB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.651e-05/0.7463, allocations: 4 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.996e-05/0.7464, allocations: 15.42 kB / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.7464, allocations: 0 / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.7689, allocations: 1.507 MB / 1.174 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.613, allocations: 15.81 kB / 1.174 GB, free: 11.5 MB / 0.9044 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