Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.004763/0.004763, allocations: 100.5 kB / 15.73 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.001057/0.001058, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.124/2.124, allocations: 390.3 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7785/0.7799, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.005156/0.7851, allocations: 4.59 MB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.7861, allocations: 0.8138 MB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.183e-05/0.7862, allocations: 0.8125 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.7864, allocations: 32.66 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.401e-05/0.7864, allocations: 32.33 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.7869, allocations: 165.7 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.7871, allocations: 176.8 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.584e-05/0.7872, allocations: 20.17 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.7874, allocations: 92.2 kB / 1.093 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.7875, allocations: 75.22 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/0.7876, allocations: 13 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003343/0.7879, allocations: 150.3 kB / 1.093 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.445e-05/0.7879, allocations: 32.8 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.861e-05/0.788, allocations: 74.31 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.7884, allocations: 237.3 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7884, allocations: 1 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7884, allocations: 3.938 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.7884, allocations: 0 / 1.094 GB, free: 0.918 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007973/0.7892, allocations: 484.7 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.7893, allocations: 9.25 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.297e-05/0.7893, allocations: 39.28 kB / 1.094 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.82e-05/0.7894, allocations: 12.05 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.767e-05/0.7895, allocations: 185.4 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.7895, allocations: 12.38 kB / 1.095 GB, free: 232 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.7895, allocations: 11 kB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.7899, allocations: 123.2 kB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.7899, allocations: 3.938 kB / 1.095 GB, free: 160 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.7899, allocations: 5.375 kB / 1.095 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.7899, allocations: 1.969 kB / 1.095 GB, free: 156 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.7904, allocations: 142.4 kB / 1.095 GB, free: 120 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.7914, allocations: 465.5 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.7917, allocations: 123.8 kB / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.7919, allocations: 71.31 kB / 1.095 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001381/0.7933, allocations: 0.9653 MB / 1.096 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.7934, allocations: 31.98 kB / 1.096 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.7934, allocations: 0 / 1.096 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12): time 0.0007396/0.7941, allocations: 213.1 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.7942, allocations: 53.09 kB / 1.097 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.7944, allocations: 170.8 kB / 1.097 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.7944, allocations: 30.58 kB / 1.097 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.055e-05/0.7945, allocations: 112.5 kB / 1.097 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.7945, allocations: 36.25 kB / 1.097 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/0.7946, allocations: 49.14 kB / 1.097 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.758e-05/0.7947, allocations: 326.2 kB / 1.097 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.795, allocations: 75.47 kB / 1.097 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.7952, allocations: 107.8 kB / 1.098 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.7957, allocations: 174.1 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7957, allocations: 0.6562 kB / 1.098 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006071/0.7963, allocations: 245.8 kB / 1.098 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.7964, allocations: 6.031 kB / 1.098 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.7964, allocations: 1.453 kB / 1.098 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.7964, allocations: 2.812 kB / 1.098 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.7967, allocations: 58.45 kB / 1.098 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.7967, allocations: 2.5 kB / 1.098 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.7969, allocations: 27.5 kB / 1.098 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.7969, allocations: 11.66 kB / 1.098 GB, free: 13.65 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 26 * 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 0.0001018/0.797, allocations: 127 kB / 1.098 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.797, allocations: 17.55 kB / 1.098 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.7976, allocations: 176 kB / 1.098 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.7976, allocations: 1.469 kB / 1.098 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.7976, allocations: 1.406 kB / 1.098 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.7976, allocations: 4.656 kB / 1.098 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.7978, allocations: 214.7 kB / 1.099 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.7979, allocations: 12.67 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.798, allocations: 28.58 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.798, allocations: 5.125 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.7981, allocations: 0.625 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.7981, allocations: 2.078 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.7981, allocations: 0 / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.7986, allocations: 262.5 kB / 1.099 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.593e-05/0.7986, allocations: 103.3 kB / 1.099 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.7987, allocations: 0.7188 kB / 1.099 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.7989, allocations: 16 kB / 1.099 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.7989, allocations: 12.03 kB / 1.099 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.7989, allocations: 6.312 kB / 1.099 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.576e-05/0.799, allocations: 116.7 kB / 1.099 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.799, allocations: 0 / 1.099 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003742/0.7994, allocations: 66.78 kB / 1.099 GB, free: 12.8 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 (12): * Single equations (assignments): 12 * 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.0009231/0.8003, allocations: 0.8466 MB / 1.1 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005229/0.8009, allocations: 171.6 kB / 1.1 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.8009, allocations: 0 / 1.1 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.8011, allocations: 71.03 kB / 1.1 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.8015, allocations: 25.12 kB / 1.1 GB, free: 12 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.8041, allocations: 1.948 MB / 1.102 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.8044, allocations: 0.7073 MB / 1.103 GB, free: 9.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.888e-05/0.8045, allocations: 16.95 kB / 1.103 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.58e-05/0.8046, allocations: 38.55 kB / 1.103 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.8046, allocations: 0 / 1.103 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.8287, allocations: 4.285 MB / 1.107 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/8.588, allocations: 3 kB / 1.107 GB, free: 9.191 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches