Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.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.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",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.00504/0.00504, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001149/0.001149, allocations: 195.8 kB / 16.68 MB, free: 5.953 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.202/1.202, 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 9.1.3-maint.9.1.x/package.mo): time 2.022/2.022, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 63.89 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7226/0.7238, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain): time 0.002353/0.7262, allocations: 1.543 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000114/0.7263, allocations: 36.81 kB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.591e-05/0.7264, allocations: 0.9062 kB / 1.089 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.7265, allocations: 11.84 kB / 1.089 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.943e-05/0.7265, allocations: 9.75 kB / 1.089 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001005/0.7266, allocations: 20.81 kB / 1.089 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.354e-05/0.7267, allocations: 39.56 kB / 1.089 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.7269, allocations: 32.23 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.37e-05/0.7269, allocations: 24.47 kB / 1.089 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.644e-05/0.727, allocations: 34.73 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.727, allocations: 4.406 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.727, allocations: 4.719 kB / 1.089 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.439e-05/0.7271, allocations: 17.16 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.7271, allocations: 28.66 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.7273, allocations: 66.02 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7273, allocations: 1.188 kB / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7273, allocations: 0 / 1.089 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.7273, allocations: 0 / 1.089 GB, free: 4.047 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003655/0.7277, allocations: 363.8 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.7277, allocations: 9.656 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/0.7278, allocations: 38.98 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.7278, allocations: 9.406 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.728, allocations: 188.7 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.728, allocations: 7.172 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.728, allocations: 5.312 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.7282, allocations: 100.7 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.7282, allocations: 3.938 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.7282, allocations: 9.188 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.7282, allocations: 2.25 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.566e-05/0.7283, allocations: 45.14 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004393/0.7288, allocations: 0.6376 MB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.724e-05/0.7288, allocations: 170.1 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.688e-05/0.7288, allocations: 80.8 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.7289, allocations: 76.16 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.7289, allocations: 115.6 kB / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.7289, allocations: 0 / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 7.195e-05/0.729, allocations: 38.16 kB / 1.091 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.729, allocations: 127.2 kB / 1.091 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.7292, allocations: 164.5 kB / 1.091 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.901e-06/0.7292, allocations: 26.89 kB / 1.091 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.7292, allocations: 107.5 kB / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-06/0.7292, allocations: 0 / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.7293, allocations: 17.47 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.969e-05/0.7293, allocations: 324 kB / 1.092 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.533e-05/0.7293, allocations: 6.188 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.737e-05/0.7294, allocations: 19.83 kB / 1.092 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.601e-05/0.7294, allocations: 25.25 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.7294, allocations: 4 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001093/0.7295, allocations: 56.34 kB / 1.092 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.7295, allocations: 9.859 kB / 1.092 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.7296, allocations: 4.938 kB / 1.092 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.7296, allocations: 5.484 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.924e-05/0.7296, allocations: 5.828 kB / 1.092 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.7296, allocations: 5.062 kB / 1.092 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.234e-05/0.7297, allocations: 6.031 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.7297, allocations: 2.828 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 5.903e-05/0.7298, allocations: 195.8 kB / 1.092 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.7298, allocations: 110 kB / 1.092 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.941e-05/0.7299, allocations: 122.1 kB / 1.092 GB, free: 16.9 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.863e-05/0.73, allocations: 178.4 kB / 1.093 GB, free: 16.72 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.827e-05/0.73, allocations: 181.3 kB / 1.093 GB, free: 16.54 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-05/0.7301, allocations: 182.5 kB / 1.093 GB, free: 16.35 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.7303, allocations: 421.7 kB / 1.093 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.308e-05/0.7303, allocations: 113.4 kB / 1.093 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.7304, allocations: 106.8 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.192e-05/0.7304, allocations: 181.8 kB / 1.094 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.7305, allocations: 186.1 kB / 1.094 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.828e-05/0.7305, allocations: 178.1 kB / 1.094 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.132e-05/0.7306, allocations: 182.1 kB / 1.094 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.7307, allocations: 312 kB / 1.095 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.975e-05/0.7308, allocations: 187.5 kB / 1.095 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.578e-05/0.7309, allocations: 197.3 kB / 1.095 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.843e-05/0.7309, allocations: 102.6 kB / 1.095 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.731, allocations: 178.5 kB / 1.095 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.731, allocations: 106.7 kB / 1.095 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 9.723e-05/0.7311, allocations: 130.6 kB / 1.095 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7312, allocations: 0 / 1.095 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002237/0.7314, allocations: 6.25 kB / 1.095 GB, free: 13.73 MB / 0.8731 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 (0): * Single equations (assignments): 0 * 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.0003589/0.7317, allocations: 0.8184 MB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.407e-05/0.7318, allocations: 11.67 kB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7318, allocations: 0.8125 kB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.223e-06/0.7318, allocations: 4.188 kB / 1.096 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.7322, allocations: 465.5 kB / 1.097 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.7335, allocations: 1.64 MB / 1.098 GB, free: 11 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.7337, allocations: 0.69 MB / 1.099 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.214e-05/0.7338, allocations: 5.562 kB / 1.099 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.7338, allocations: 19.84 kB / 1.099 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.7338, allocations: 0.6562 kB / 1.099 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.7519, allocations: 1.708 MB / 1.101 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.972/7.724, allocations: 12.58 kB / 1.101 GB, free: 9.871 MB / 0.8731 GB (rm -f Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches