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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 106.5 kB / 16.41 MB, free: 6.484 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.00129/0.00129, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.351/1.351, allocations: 222.9 MB / 241 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.002341/0.002341, allocations: 289.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.958/0.958, allocations: 169.2 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 95.84 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4622/0.4642, allocations: 86.98 MB / 0.767 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01393/0.4782, allocations: 14.41 MB / 0.7811 GB, free: 5.457 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004718/0.4829, allocations: 3.65 MB / 0.7847 GB, free: 1.797 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.4833, allocations: 19.88 kB / 0.7847 GB, free: 1.777 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0005619/0.4839, allocations: 198.7 kB / 0.7849 GB, free: 1.582 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001162/0.4851, allocations: 0.5868 MB / 0.7855 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.4859, allocations: 400.6 kB / 0.7858 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001094/0.487, allocations: 1.087 MB / 0.7869 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004023/0.4874, allocations: 324 kB / 0.7872 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008826/0.4883, allocations: 398 kB / 0.7876 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003526/0.4887, allocations: 306.6 kB / 0.7879 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.4887, allocations: 32 kB / 0.7879 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.4892, allocations: 259.5 kB / 0.7882 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.838e-05/0.4893, allocations: 95.72 kB / 0.7882 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.4895, allocations: 210.9 kB / 0.7884 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006686/0.4902, allocations: 0.5906 MB / 0.789 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4902, allocations: 0 / 0.789 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4902, allocations: 0 / 0.789 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.852e-06/0.4902, allocations: 0 / 0.789 GB, free: 13.33 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.001068/0.4913, allocations: 0.7495 MB / 0.7898 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.4913, allocations: 16.03 kB / 0.7898 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.4915, allocations: 44.47 kB / 0.7898 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000672/0.4922, allocations: 467.6 kB / 0.7903 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.4922, allocations: 20.94 kB / 0.7903 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.4923, allocations: 31.84 kB / 0.7903 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005495/0.4928, allocations: 314.2 kB / 0.7906 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.4929, allocations: 4 kB / 0.7906 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.329e-05/0.4929, allocations: 12 kB / 0.7906 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.4929, allocations: 8 kB / 0.7906 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004392/0.4934, allocations: 194.1 kB / 0.7908 GB, free: 11.38 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.001639/0.495, allocations: 1.485 MB / 0.7923 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.4955, allocations: 158.6 kB / 0.7924 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.4956, allocations: 60.83 kB / 0.7925 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/0.4958, allocations: 89.09 kB / 0.7926 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.496, allocations: 127.3 kB / 0.7927 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.4961, allocations: 0 / 0.7927 GB, free: 9.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005992/0.4967, allocations: 236.1 kB / 0.7929 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.4967, allocations: 59.34 kB / 0.793 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.497, allocations: 345.7 kB / 0.7933 GB, free: 8.648 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.4971, allocations: 33.7 kB / 0.7933 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.4972, allocations: 219.7 kB / 0.7935 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.4973, allocations: 59.2 kB / 0.7936 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.4974, allocations: 49.7 kB / 0.7936 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4975, allocations: 346.8 kB / 0.794 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.4977, allocations: 63.95 kB / 0.794 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.4979, allocations: 151.1 kB / 0.7942 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003933/0.4983, allocations: 239 kB / 0.7944 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4983, allocations: 0 / 0.7944 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005473/0.4989, allocations: 316.7 kB / 0.7947 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.4989, allocations: 36.52 kB / 0.7947 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4989, allocations: 4 kB / 0.7947 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.4989, allocations: 4 kB / 0.7948 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.4992, allocations: 64.16 kB / 0.7948 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.4992, allocations: 11.97 kB / 0.7948 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.4994, allocations: 31.69 kB / 0.7949 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.4995, allocations: 19.98 kB / 0.7949 GB, free: 6.922 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.0001486/0.4996, allocations: 153.8 kB / 0.795 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.4997, allocations: 35.56 kB / 0.7951 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000443/0.5001, allocations: 196.4 kB / 0.7952 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.5002, allocations: 7.938 kB / 0.7952 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5002, allocations: 0 / 0.7952 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004461/0.5006, allocations: 487.7 kB / 0.7957 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.501, allocations: 349.3 kB / 0.796 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.501, allocations: 0 / 0.796 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.5012, allocations: 39.91 kB / 0.7961 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5012, allocations: 0 / 0.7961 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.5012, allocations: 8 kB / 0.7961 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.5012, allocations: 3.938 kB / 0.7961 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5012, allocations: 0 / 0.7961 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.5018, allocations: 280.6 kB / 0.7964 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.5019, allocations: 120.8 kB / 0.7965 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.502, allocations: 8 kB / 0.7965 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.5022, allocations: 23.86 kB / 0.7965 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.5023, allocations: 15.97 kB / 0.7965 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.5023, allocations: 11.94 kB / 0.7965 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002311/0.5026, allocations: 251.2 kB / 0.7968 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5026, allocations: 0 / 0.7968 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003959/0.503, allocations: 124 kB / 0.7969 GB, free: 4.66 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.0003221/0.5033, allocations: 203.1 kB / 0.7971 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004679/0.5038, allocations: 234.1 kB / 0.7973 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5038, allocations: 0 / 0.7973 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.504, allocations: 67.89 kB / 0.7974 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009076/0.5049, allocations: 213.3 kB / 0.7976 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.5061, allocations: 0.7561 MB / 0.7983 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.5064, allocations: 0.784 MB / 0.7991 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.5065, allocations: 43.42 kB / 0.7991 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.5065, allocations: 0 / 0.7991 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of Templates: time 0.008104/0.5146, allocations: 6.179 MB / 0.8052 GB, free: 12.2 MB / 0.5762 GB 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)