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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9392/0.9392, allocations: 143.4 MB / 159.2 MB, free: 4.844 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001881/0.001881, allocations: 190.1 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 447.3 MB, free: 5.867 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 115.6 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002721/0.002721, allocations: 281.8 kB / 0.5973 GB, free: 49.38 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 79.88 kB / 0.6885 GB, free: 3.848 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3555, allocations: 81.3 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01166/0.3672, allocations: 14.38 MB / 0.782 GB, free: 13.23 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004461/0.3717, allocations: 3.658 MB / 0.7855 GB, free: 9.559 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000598/0.3723, allocations: 15.88 kB / 0.7856 GB, free: 9.543 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006217/0.373, allocations: 171.1 kB / 0.7857 GB, free: 9.375 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001406/0.3744, allocations: 0.5339 MB / 0.7862 GB, free: 8.84 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009461/0.3754, allocations: 354.3 kB / 0.7866 GB, free: 8.496 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.3766, allocations: 1.449 MB / 0.788 GB, free: 7.047 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.3769, allocations: 267.7 kB / 0.7882 GB, free: 6.781 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003431/0.3773, allocations: 318.6 kB / 0.7886 GB, free: 6.469 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.3776, allocations: 314.6 kB / 0.7889 GB, free: 6.16 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/0.3776, allocations: 16 kB / 0.7889 GB, free: 6.145 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.3782, allocations: 247.3 kB / 0.7891 GB, free: 5.902 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 8.878e-05/0.3783, allocations: 75.72 kB / 0.7892 GB, free: 5.828 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.3785, allocations: 206.9 kB / 0.7894 GB, free: 5.625 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000518/0.379, allocations: 0.5686 MB / 0.7899 GB, free: 5.055 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3791, allocations: 0 / 0.7899 GB, free: 5.055 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3791, allocations: 0 / 0.7899 GB, free: 5.055 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.3791, allocations: 0 / 0.7899 GB, free: 5.055 MB / 458.7 MB 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.001045/0.3801, allocations: 0.7418 MB / 0.7907 GB, free: 4.258 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3802, allocations: 8.031 kB / 0.7907 GB, free: 4.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.3803, allocations: 56.45 kB / 0.7907 GB, free: 4.195 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006393/0.381, allocations: 459.2 kB / 0.7912 GB, free: 3.711 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.381, allocations: 28.62 kB / 0.7912 GB, free: 3.684 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.3811, allocations: 28 kB / 0.7912 GB, free: 3.656 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004892/0.3816, allocations: 310.2 kB / 0.7915 GB, free: 3.332 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.3816, allocations: 0 / 0.7915 GB, free: 3.332 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.3816, allocations: 12 kB / 0.7915 GB, free: 3.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.3817, allocations: 8 kB / 0.7915 GB, free: 3.312 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.3821, allocations: 198 kB / 0.7917 GB, free: 3.121 MB / 458.7 MB 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.001452/0.3836, allocations: 1.485 MB / 0.7932 GB, free: 1.508 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.384, allocations: 158.6 kB / 0.7933 GB, free: 1.344 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.3842, allocations: 64.81 kB / 0.7934 GB, free: 1.277 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002067/0.3844, allocations: 93.03 kB / 0.7935 GB, free: 1.168 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.3846, allocations: 123.3 kB / 0.7936 GB, free: 1.035 MB / 458.7 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.3847, allocations: 4 kB / 0.7936 GB, free: 1.031 MB / 458.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005722/0.3852, allocations: 237.9 kB / 0.7938 GB, free: 0.793 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.3853, allocations: 55.41 kB / 0.7939 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.3855, allocations: 325.7 kB / 0.7942 GB, free: 408 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3856, allocations: 33.7 kB / 0.7942 GB, free: 368 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.895e-05/0.3857, allocations: 223.7 kB / 0.7944 GB, free: 140 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.3857, allocations: 51.27 kB / 0.7945 GB, free: 88 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.929e-05/0.3858, allocations: 57.61 kB / 0.7945 GB, free: 24 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.386, allocations: 342.7 kB / 0.7948 GB, free: 15.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.3862, allocations: 71.95 kB / 0.7949 GB, free: 15.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.3864, allocations: 142.9 kB / 0.7951 GB, free: 15.44 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.3868, allocations: 245.7 kB / 0.7953 GB, free: 15.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3868, allocations: 0 / 0.7953 GB, free: 15.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005639/0.3874, allocations: 314.6 kB / 0.7956 GB, free: 14.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.3874, allocations: 33.7 kB / 0.7956 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3874, allocations: 0 / 0.7956 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.3875, allocations: 11.94 kB / 0.7956 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.3877, allocations: 59.89 kB / 0.7957 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3877, allocations: 4.312 kB / 0.7957 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.388, allocations: 35.77 kB / 0.7957 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.388, allocations: 16 kB / 0.7957 GB, free: 14.68 MB / 474.7 MB 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.0001599/0.3882, allocations: 157.8 kB / 0.7959 GB, free: 14.51 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/0.3882, allocations: 31.62 kB / 0.7959 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004579/0.3887, allocations: 203 kB / 0.7961 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3887, allocations: 7.938 kB / 0.7961 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3887, allocations: 0 / 0.7961 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004843/0.3892, allocations: 483.7 kB / 0.7966 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.3897, allocations: 349.3 kB / 0.7969 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3897, allocations: 0 / 0.7969 GB, free: 13.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.3899, allocations: 35.91 kB / 0.797 GB, free: 13.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.3899, allocations: 3.984 kB / 0.797 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3899, allocations: 8 kB / 0.797 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3899, allocations: 3.938 kB / 0.797 GB, free: 13.26 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3899, allocations: 0 / 0.797 GB, free: 13.26 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002806/0.3927, allocations: 1.863 MB / 0.7988 GB, free: 11.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.3929, allocations: 128.8 kB / 0.7989 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/0.3929, allocations: 0 / 0.7989 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.3932, allocations: 19.92 kB / 0.7989 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.3932, allocations: 19.91 kB / 0.7989 GB, free: 11.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.3933, allocations: 12 kB / 0.799 GB, free: 11.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0002544/0.3935, allocations: 239.2 kB / 0.7992 GB, free: 10.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3936, allocations: 0 / 0.7992 GB, free: 10.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006116/0.3942, allocations: 160 kB / 0.7993 GB, free: 10.68 MB / 474.7 MB 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.0003293/0.3945, allocations: 175.7 kB / 0.7995 GB, free: 10.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0004863/0.395, allocations: 223.2 kB / 0.7997 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.395, allocations: 0 / 0.7997 GB, free: 10.27 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001822/0.3952, allocations: 75.83 kB / 0.7998 GB, free: 10.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009732/0.3962, allocations: 202.7 kB / 0.8 GB, free: 10 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.3979, allocations: 1.005 MB / 0.801 GB, free: 8.953 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.3983, allocations: 0.7999 MB / 0.8017 GB, free: 8.129 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0002864/0.3985, allocations: 63.25 kB / 0.8018 GB, free: 8.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.3986, allocations: 43.3 kB / 0.8018 GB, free: 8.027 MB / 474.7 MB Notification: Performance of SimCode: time 4e-07/0.3986, allocations: 0 / 0.8018 GB, free: 8.027 MB / 474.7 MB Notification: Performance of Templates: time 0.01225/0.4109, allocations: 6.911 MB / 0.8086 GB, free: 1.207 MB / 474.7 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)