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.006946/0.006945, allocations: 101.2 kB / 15.73 MB, free: 6.047 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: 194.2 kB / 16.67 MB, free: 5.977 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002054/0.002054, allocations: 286.5 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.905/0.905, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 96.22 kB / 0.6809 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1687, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.3682/0.5369, allocations: 14.42 MB / 0.78 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004251/0.5412, allocations: 3.649 MB / 0.7835 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/0.5416, allocations: 20.19 kB / 0.7835 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005442/0.5422, allocations: 190.4 kB / 0.7837 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.5434, allocations: 0.5945 MB / 0.7843 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007766/0.5442, allocations: 397.9 kB / 0.7847 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00109/0.5453, allocations: 1.081 MB / 0.7857 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003795/0.5457, allocations: 332.7 kB / 0.7861 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007875/0.5465, allocations: 393.2 kB / 0.7864 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.5468, allocations: 315.3 kB / 0.7867 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.5469, allocations: 32.5 kB / 0.7868 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004596/0.5473, allocations: 255.7 kB / 0.787 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.563e-05/0.5475, allocations: 94.06 kB / 0.7871 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.5476, allocations: 210.9 kB / 0.7873 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008415/0.5485, allocations: 0.5864 MB / 0.7879 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.5485, allocations: 1.891 kB / 0.7879 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.695e-06/0.5485, allocations: 0 / 0.7879 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.343e-05/0.5485, allocations: 3.938 kB / 0.7879 GB, free: 4.047 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.001044/0.5496, allocations: 0.745 MB / 0.7886 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.5496, allocations: 9.438 kB / 0.7886 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.5497, allocations: 66.17 kB / 0.7887 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.5499, allocations: 50.48 kB / 0.7887 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.5505, allocations: 471.9 kB / 0.7892 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.5505, allocations: 21.33 kB / 0.7892 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.5506, allocations: 28.56 kB / 0.7892 GB, free: 3 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.5511, allocations: 312.6 kB / 0.7895 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.5511, allocations: 2.938 kB / 0.7895 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.5512, allocations: 11.2 kB / 0.7895 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.5512, allocations: 7.188 kB / 0.7895 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.5516, allocations: 191.2 kB / 0.7897 GB, free: 2.773 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.001458/0.553, allocations: 1.493 MB / 0.7912 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003925/0.5535, allocations: 153.8 kB / 0.7913 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.5536, allocations: 69.5 kB / 0.7914 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.5537, allocations: 89.97 kB / 0.7915 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.554, allocations: 126.3 kB / 0.7916 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.554, allocations: 0 / 0.7916 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005784/0.5546, allocations: 230.5 kB / 0.7918 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.5546, allocations: 62.8 kB / 0.7919 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.5549, allocations: 346.9 kB / 0.7922 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.555, allocations: 33.58 kB / 0.7922 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.5551, allocations: 210.9 kB / 0.7924 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.479e-05/0.5551, allocations: 54.72 kB / 0.7925 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.855e-05/0.5552, allocations: 51.91 kB / 0.7925 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.315e-05/0.5553, allocations: 338.6 kB / 0.7929 GB, free: 376 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.5555, allocations: 78.25 kB / 0.7929 GB, free: 348 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.5557, allocations: 140.4 kB / 0.7931 GB, free: 236 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.556, allocations: 248.1 kB / 0.7933 GB, free: 48 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.556, allocations: 0 / 0.7933 GB, free: 48 kB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005555/0.5566, allocations: 315.3 kB / 0.7936 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.5566, allocations: 36.92 kB / 0.7937 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.5566, allocations: 2.875 kB / 0.7937 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.5566, allocations: 2.906 kB / 0.7937 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.5569, allocations: 63.86 kB / 0.7937 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.5569, allocations: 3.578 kB / 0.7937 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.5571, allocations: 32.69 kB / 0.7938 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.5572, allocations: 15.02 kB / 0.7938 GB, free: 15.82 MB / 0.5762 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.0001498/0.5573, allocations: 160.4 kB / 0.7939 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.031e-05/0.5574, allocations: 31.45 kB / 0.7939 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000435/0.5578, allocations: 206.5 kB / 0.7941 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5578, allocations: 4.969 kB / 0.7942 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5578, allocations: 5.062 kB / 0.7942 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004529/0.5583, allocations: 490.4 kB / 0.7946 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004176/0.5587, allocations: 348.5 kB / 0.795 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.5587, allocations: 0.5625 kB / 0.795 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.5589, allocations: 35.11 kB / 0.795 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5589, allocations: 0 / 0.795 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.5589, allocations: 6.188 kB / 0.795 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.5589, allocations: 4.641 kB / 0.795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5589, allocations: 3.406 kB / 0.795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.5595, allocations: 281.2 kB / 0.7953 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.5597, allocations: 120.1 kB / 0.7954 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.98e-05/0.5597, allocations: 2.516 kB / 0.7954 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.56, allocations: 23.19 kB / 0.7954 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.148e-05/0.56, allocations: 17.09 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.5601, allocations: 5.203 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002498/0.5603, allocations: 246.6 kB / 0.7957 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.684e-06/0.5603, allocations: 4 kB / 0.7957 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004257/0.5608, allocations: 137.2 kB / 0.7958 GB, free: 14.38 MB / 0.5762 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.001069/0.5618, allocations: 0.908 MB / 0.7967 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000468/0.5623, allocations: 227.2 kB / 0.7969 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5623, allocations: 0 / 0.7969 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.5625, allocations: 67.67 kB / 0.797 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/0.5634, allocations: 224.2 kB / 0.7972 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.5672, allocations: 3.066 MB / 0.8002 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.5676, allocations: 0.7857 MB / 0.8009 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002296/0.5678, allocations: 66.25 kB / 0.801 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.568, allocations: 118.7 kB / 0.8011 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/0.568, allocations: 0 / 0.8011 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.6039, allocations: 10.39 MB / 0.8113 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.583/8.187, allocations: 6.281 kB / 0.8113 GB, free: 8.668 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)