Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_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.005045/0.005045, allocations: 101.9 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.001501/0.001501, allocations: 188.8 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.363/1.363, 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/NcDataReader2 2.5.1-master/package.mo): time 0.00248/0.00248, allocations: 289.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9712/0.9712, allocations: 169.2 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002665/0.002665, allocations: 91.86 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3706, allocations: 86.98 MB / 0.7659 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01571/0.3863, allocations: 14.42 MB / 0.78 GB, free: 5.488 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004876/0.3912, allocations: 3.648 MB / 0.7835 GB, free: 1.828 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002398/0.3915, allocations: 19.88 kB / 0.7836 GB, free: 1.809 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.392, allocations: 202.7 kB / 0.7838 GB, free: 1.609 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.3931, allocations: 0.5868 MB / 0.7843 GB, free: 1.02 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007806/0.3939, allocations: 391.9 kB / 0.7847 GB, free: 0.6406 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001189/0.3951, allocations: 1.099 MB / 0.7858 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004178/0.3955, allocations: 316.3 kB / 0.7861 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008214/0.3964, allocations: 388 kB / 0.7864 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003894/0.3968, allocations: 306.7 kB / 0.7867 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.17e-05/0.3968, allocations: 32 kB / 0.7868 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004598/0.3973, allocations: 259.5 kB / 0.787 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.3974, allocations: 91.67 kB / 0.7871 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.3976, allocations: 215 kB / 0.7873 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007948/0.3984, allocations: 0.5967 MB / 0.7879 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.3984, allocations: 4 kB / 0.7879 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3985, allocations: 0 / 0.7879 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.3985, allocations: 0 / 0.7879 GB, free: 13.37 MB / 0.5606 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.001148/0.3996, allocations: 0.7569 MB / 0.7886 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3997, allocations: 12.03 kB / 0.7886 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.588e-05/0.3997, allocations: 62.72 kB / 0.7887 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.3999, allocations: 52.66 kB / 0.7888 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007137/0.4006, allocations: 463.9 kB / 0.7892 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.4007, allocations: 32.61 kB / 0.7892 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.4007, allocations: 24 kB / 0.7892 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005808/0.4013, allocations: 306.2 kB / 0.7895 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.4014, allocations: 4 kB / 0.7895 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.4014, allocations: 19.97 kB / 0.7896 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.4014, allocations: 8 kB / 0.7896 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000462/0.4019, allocations: 190.1 kB / 0.7898 GB, free: 11.33 MB / 0.5606 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.001834/0.4037, allocations: 1.485 MB / 0.7912 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.4042, allocations: 154.6 kB / 0.7913 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.4043, allocations: 72.81 kB / 0.7914 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.4045, allocations: 85.09 kB / 0.7915 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.4048, allocations: 131.3 kB / 0.7916 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.4048, allocations: 0 / 0.7916 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.000621/0.4054, allocations: 241.2 kB / 0.7919 GB, free: 9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.4055, allocations: 55.41 kB / 0.7919 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.4059, allocations: 345.6 kB / 0.7922 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.4059, allocations: 37.69 kB / 0.7923 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.4061, allocations: 220.1 kB / 0.7925 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.545e-05/0.4061, allocations: 59.52 kB / 0.7925 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/0.4062, allocations: 53.66 kB / 0.7926 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4064, allocations: 334.8 kB / 0.7929 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.4066, allocations: 75.94 kB / 0.793 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.4068, allocations: 147.1 kB / 0.7931 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.4073, allocations: 241 kB / 0.7934 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4073, allocations: 4 kB / 0.7934 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005866/0.4079, allocations: 310.9 kB / 0.7937 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.4079, allocations: 33.7 kB / 0.7937 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4079, allocations: 4 kB / 0.7937 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.408, allocations: 11.88 kB / 0.7937 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.4082, allocations: 60.28 kB / 0.7938 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.4082, allocations: 7.938 kB / 0.7938 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.4085, allocations: 31.83 kB / 0.7938 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.4085, allocations: 8 kB / 0.7938 GB, free: 6.875 MB / 0.5606 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.0001622/0.4087, allocations: 161.7 kB / 0.794 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.833e-05/0.4087, allocations: 35.77 kB / 0.794 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004607/0.4092, allocations: 195.9 kB / 0.7942 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4092, allocations: 7.938 kB / 0.7942 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4092, allocations: 0 / 0.7942 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005215/0.4097, allocations: 487.6 kB / 0.7947 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/0.4102, allocations: 357.3 kB / 0.795 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4102, allocations: 0 / 0.795 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.4104, allocations: 35.97 kB / 0.795 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.4104, allocations: 4 kB / 0.795 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.4104, allocations: 4 kB / 0.795 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4104, allocations: 7.875 kB / 0.795 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4104, allocations: 0 / 0.795 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000606/0.411, allocations: 284.7 kB / 0.7953 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.4112, allocations: 124.9 kB / 0.7954 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.4112, allocations: 8 kB / 0.7954 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.4115, allocations: 15.92 kB / 0.7955 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.4115, allocations: 19.97 kB / 0.7955 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.4116, allocations: 8 kB / 0.7955 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002651/0.4118, allocations: 243.2 kB / 0.7957 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4118, allocations: 0 / 0.7957 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004879/0.4123, allocations: 135.6 kB / 0.7958 GB, free: 4.598 MB / 0.5606 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.001113/0.4135, allocations: 0.9157 MB / 0.7967 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004897/0.414, allocations: 231.5 kB / 0.797 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.414, allocations: 0 / 0.797 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.4142, allocations: 71.89 kB / 0.797 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009125/0.4151, allocations: 219.5 kB / 0.7972 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004143/0.4192, allocations: 3.067 MB / 0.8002 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4196, allocations: 0.784 MB / 0.801 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002026/0.4199, allocations: 75.12 kB / 0.8011 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.42, allocations: 123.4 kB / 0.8012 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/0.42, allocations: 0 / 0.8012 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.4565, allocations: 10.2 MB / 0.8111 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.244/9.701, allocations: 20.89 kB / 0.8112 GB, free: 4.938 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)