Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel",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.001663/0.001663, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.33/1.33, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.679/2.679, allocations: 469.4 MB / 0.742 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 72.22 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2412, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01528/0.2565, allocations: 14.43 MB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004945/0.2614, allocations: 3.647 MB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003913/0.2618, allocations: 19.88 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005538/0.2624, allocations: 210.7 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001268/0.2637, allocations: 0.5752 MB / 1.082 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000833/0.2646, allocations: 396.4 kB / 1.082 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001186/0.2657, allocations: 1.083 MB / 1.084 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.2662, allocations: 325.3 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008444/0.267, allocations: 382.2 kB / 1.084 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.2675, allocations: 306.6 kB / 1.085 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.903e-05/0.2675, allocations: 36 kB / 1.085 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005237/0.2681, allocations: 259.5 kB / 1.085 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2682, allocations: 91.69 kB / 1.085 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.2684, allocations: 222.9 kB / 1.085 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007547/0.2692, allocations: 0.5841 MB / 1.086 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2692, allocations: 0 / 1.086 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2692, allocations: 0 / 1.086 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.2692, allocations: 0 / 1.086 GB, free: 7.945 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001121/0.2703, allocations: 0.7457 MB / 1.086 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2704, allocations: 12.03 kB / 1.086 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.828e-05/0.2705, allocations: 62.72 kB / 1.086 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.2706, allocations: 44.47 kB / 1.086 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006354/0.2713, allocations: 451.7 kB / 1.087 GB, free: 6.539 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.2713, allocations: 24.69 kB / 1.087 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.2714, allocations: 28 kB / 1.087 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/0.272, allocations: 306.2 kB / 1.087 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.272, allocations: 3.984 kB / 1.087 GB, free: 6.168 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.272, allocations: 12 kB / 1.087 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.272, allocations: 8 kB / 1.087 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.2725, allocations: 194.1 kB / 1.087 GB, free: 5.957 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.2743, allocations: 1.493 MB / 1.089 GB, free: 4.34 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004341/0.2747, allocations: 154.6 kB / 1.089 GB, free: 4.18 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.2749, allocations: 68.81 kB / 1.089 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.2751, allocations: 93.09 kB / 1.089 GB, free: 4 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.2754, allocations: 128.5 kB / 1.089 GB, free: 3.863 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.2754, allocations: 0 / 1.089 GB, free: 3.863 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.000628/0.276, allocations: 238.7 kB / 1.09 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.2761, allocations: 59.41 kB / 1.09 GB, free: 3.555 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003514/0.2764, allocations: 345.6 kB / 1.09 GB, free: 3.211 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.2765, allocations: 33.69 kB / 1.09 GB, free: 3.172 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.2766, allocations: 211.8 kB / 1.09 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.167e-05/0.2767, allocations: 59.19 kB / 1.09 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.942e-05/0.2768, allocations: 53.7 kB / 1.09 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2769, allocations: 338.8 kB / 1.091 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.2771, allocations: 75.94 kB / 1.091 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.2774, allocations: 142.6 kB / 1.091 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.2778, allocations: 244.9 kB / 1.091 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2778, allocations: 4 kB / 1.091 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006188/0.2784, allocations: 310.9 kB / 1.091 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.2785, allocations: 37.77 kB / 1.091 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2785, allocations: 0 / 1.091 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.2785, allocations: 7.938 kB / 1.091 GB, free: 1.609 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.2787, allocations: 55.91 kB / 1.091 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.2788, allocations: 7.938 kB / 1.091 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.279, allocations: 31.73 kB / 1.092 GB, free: 1.516 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.2791, allocations: 12 kB / 1.092 GB, free: 1.504 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * 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.0001608/0.2792, allocations: 167.5 kB / 1.092 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.2793, allocations: 31.62 kB / 1.092 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004617/0.2798, allocations: 192.5 kB / 1.092 GB, free: 1.109 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.2798, allocations: 7.938 kB / 1.092 GB, free: 1.102 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2798, allocations: 0 / 1.092 GB, free: 1.102 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004921/0.2803, allocations: 488.5 kB / 1.092 GB, free: 0.5391 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.2807, allocations: 357.3 kB / 1.093 GB, free: 144 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2807, allocations: 0 / 1.093 GB, free: 144 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.2809, allocations: 31.97 kB / 1.093 GB, free: 112 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2809, allocations: 0 / 1.093 GB, free: 112 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.2809, allocations: 8 kB / 1.093 GB, free: 104 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2809, allocations: 3.938 kB / 1.093 GB, free: 100 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2809, allocations: 3.938 kB / 1.093 GB, free: 96 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006358/0.2816, allocations: 285.9 kB / 1.093 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.2817, allocations: 124.7 kB / 1.093 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.2818, allocations: 0 / 1.093 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.282, allocations: 19.92 kB / 1.093 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.2821, allocations: 19.97 kB / 1.093 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.2821, allocations: 8 kB / 1.093 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002551/0.2824, allocations: 243.2 kB / 1.093 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2824, allocations: 4 kB / 1.093 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004101/0.2828, allocations: 128 kB / 1.094 GB, free: 15.24 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001061/0.2839, allocations: 0.92 MB / 1.094 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004998/0.2844, allocations: 240.6 kB / 1.095 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2844, allocations: 4 kB / 1.095 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.2846, allocations: 63.95 kB / 1.095 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009633/0.2855, allocations: 221.5 kB / 1.095 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.2896, allocations: 3.069 MB / 1.098 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.2899, allocations: 0.7879 MB / 1.099 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000256/0.2902, allocations: 75.17 kB / 1.099 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.2904, allocations: 111.4 kB / 1.099 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.2904, allocations: 3.938 kB / 1.099 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.3187, allocations: 10.13 MB / 1.109 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.709, allocations: 14.97 kB / 1.109 GB, free: 15.57 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_latest_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches