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.005772/0.005772, allocations: 102.5 kB / 15.73 MB, free: 6.492 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.001263/0.001263, allocations: 192 kB / 16.67 MB, free: 6.379 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.289 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.302/2.302, allocations: 390.3 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.001391, allocations: 69.27 kB / 0.9504 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2657, allocations: 140.4 MB / 1.087 GB, free: 2.074 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.006456/0.2722, allocations: 4.587 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2734, allocations: 0.8186 MB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.2735, allocations: 0 / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.2737, allocations: 35.75 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.538e-05/0.2739, allocations: 31.72 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.2745, allocations: 167.4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.2747, allocations: 179.4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2749, allocations: 21.06 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.2751, allocations: 79.7 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.2753, allocations: 75.72 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.955e-05/0.2753, allocations: 12 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003885/0.2757, allocations: 155.8 kB / 1.094 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.446e-05/0.2757, allocations: 31.91 kB / 1.094 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.472e-05/0.2758, allocations: 67.66 kB / 1.094 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.2763, allocations: 254.9 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2763, allocations: 0 / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.298e-06/0.2763, allocations: 4 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.2763, allocations: 0 / 1.094 GB, free: 11.55 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.0008982/0.2772, allocations: 470.9 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2773, allocations: 12.03 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.2773, allocations: 42.75 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.133e-05/0.2774, allocations: 12.84 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.2775, allocations: 176.2 kB / 1.095 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2775, allocations: 11.94 kB / 1.095 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.2776, allocations: 8 kB / 1.095 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.2779, allocations: 122.9 kB / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2779, allocations: 0 / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.2779, allocations: 11.98 kB / 1.095 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.278, allocations: 4 kB / 1.095 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.2784, allocations: 135.9 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009615/0.2793, allocations: 468.4 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.2796, allocations: 128.5 kB / 1.095 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.2798, allocations: 76.8 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001347/0.2812, allocations: 0.9608 MB / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.2812, allocations: 38.56 kB / 1.096 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.2813, allocations: 0 / 1.096 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0006841/0.2819, allocations: 213.3 kB / 1.097 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.282, allocations: 59.33 kB / 1.097 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.2821, allocations: 163.2 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.2822, allocations: 29.7 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.2822, allocations: 104.4 kB / 1.097 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.2823, allocations: 47.39 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.2824, allocations: 53.64 kB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.2825, allocations: 322.8 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.2827, allocations: 75.94 kB / 1.097 GB, free: 7.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.283, allocations: 103.4 kB / 1.098 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004314/0.2834, allocations: 178.5 kB / 1.098 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2834, allocations: 4 kB / 1.098 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000559/0.284, allocations: 245.1 kB / 1.098 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.284, allocations: 8 kB / 1.098 GB, free: 6.945 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.284, allocations: 0 / 1.098 GB, free: 6.945 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.284, allocations: 0 / 1.098 GB, free: 6.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.2843, allocations: 59.89 kB / 1.098 GB, free: 6.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2843, allocations: 96 / 1.098 GB, free: 6.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.2845, allocations: 31.83 kB / 1.098 GB, free: 6.855 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.2845, allocations: 4 kB / 1.098 GB, free: 6.852 MB / 0.8575 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 9.527e-05/0.2846, allocations: 129.8 kB / 1.098 GB, free: 6.715 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.2847, allocations: 19.75 kB / 1.098 GB, free: 6.695 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004775/0.2851, allocations: 174.9 kB / 1.098 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2852, allocations: 3.984 kB / 1.098 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2852, allocations: 0 / 1.098 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2852, allocations: 3.938 kB / 1.098 GB, free: 6.512 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.2854, allocations: 217.5 kB / 1.099 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2854, allocations: 3.938 kB / 1.099 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.2856, allocations: 31.97 kB / 1.099 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2856, allocations: 0 / 1.099 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2856, allocations: 4 kB / 1.099 GB, free: 6.211 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2856, allocations: 8 kB / 1.099 GB, free: 6.203 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2856, allocations: 3.938 kB / 1.099 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.2861, allocations: 251.2 kB / 1.099 GB, free: 5.938 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.139e-05/0.2861, allocations: 96.94 kB / 1.099 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.2862, allocations: 7.922 kB / 1.099 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2863, allocations: 19.98 kB / 1.099 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.2864, allocations: 7.984 kB / 1.099 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.2864, allocations: 8 kB / 1.099 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.718e-05/0.2864, allocations: 116.9 kB / 1.099 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2865, allocations: 0 / 1.099 GB, free: 5.668 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003475/0.2868, allocations: 63.97 kB / 1.099 GB, free: 5.605 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 (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.0009004/0.2877, allocations: 0.8495 MB / 1.1 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005092/0.2882, allocations: 173.6 kB / 1.1 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2883, allocations: 0 / 1.1 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.2885, allocations: 72.08 kB / 1.1 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2888, allocations: 19.98 kB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.2914, allocations: 1.952 MB / 1.102 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.2917, allocations: 0.7045 MB / 1.103 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001098/0.2918, allocations: 25 kB / 1.103 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.533e-05/0.2919, allocations: 35.42 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of SimCode: time 3.717e-06/0.2919, allocations: 0 / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.3131, allocations: 4.343 MB / 1.107 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.809, allocations: 11.75 kB / 1.107 GB, free: 13.43 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 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.mat","/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