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.007807/0.007807, allocations: 102 kB / 15.73 MB, free: 6 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.001723/0.001723, allocations: 193.9 kB / 16.68 MB, free: 5.922 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00206/0.00206, allocations: 299.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9231/0.9231, allocations: 169.3 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 91.86 kB / 0.6814 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4795/0.4813, allocations: 86.98 MB / 0.7664 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01544/0.4968, allocations: 14.42 MB / 0.7804 GB, free: 5.484 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005275/0.5021, allocations: 3.652 MB / 0.784 GB, free: 1.82 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004134/0.5025, allocations: 15.94 kB / 0.784 GB, free: 1.805 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006892/0.5032, allocations: 198.7 kB / 0.7842 GB, free: 1.609 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.5047, allocations: 0.5907 MB / 0.7848 GB, free: 1.016 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009109/0.5056, allocations: 391.1 kB / 0.7852 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001351/0.5069, allocations: 1.087 MB / 0.7862 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004236/0.5074, allocations: 328.2 kB / 0.7865 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008882/0.5083, allocations: 400.4 kB / 0.7869 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.5087, allocations: 310.6 kB / 0.7872 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.613e-05/0.5087, allocations: 32 kB / 0.7872 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005163/0.5093, allocations: 259.5 kB / 0.7875 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.5094, allocations: 87.73 kB / 0.7876 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.5096, allocations: 211 kB / 0.7878 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000792/0.5104, allocations: 0.5945 MB / 0.7884 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.5104, allocations: 7.984 kB / 0.7884 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5104, allocations: 0 / 0.7884 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.495e-06/0.5104, allocations: 0 / 0.7884 GB, free: 13.35 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.001223/0.5117, allocations: 0.7379 MB / 0.7891 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.5117, allocations: 11.97 kB / 0.7891 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.5119, allocations: 44.47 kB / 0.7891 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007181/0.5126, allocations: 475.6 kB / 0.7896 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.5127, allocations: 24.94 kB / 0.7896 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.994e-05/0.5128, allocations: 35.84 kB / 0.7897 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.5133, allocations: 310.2 kB / 0.79 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.5133, allocations: 0 / 0.79 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.5134, allocations: 12 kB / 0.79 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.5134, allocations: 4 kB / 0.79 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004637/0.5139, allocations: 202.1 kB / 0.7902 GB, free: 11.4 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.001911/0.5158, allocations: 1.481 MB / 0.7916 GB, free: 9.789 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004845/0.5163, allocations: 158.6 kB / 0.7918 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.5165, allocations: 66.83 kB / 0.7918 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001602/0.5167, allocations: 89.09 kB / 0.7919 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003243/0.517, allocations: 123.3 kB / 0.792 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 3.777e-06/0.517, allocations: 0 / 0.792 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006583/0.5177, allocations: 241 kB / 0.7923 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.5177, allocations: 55.34 kB / 0.7923 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.5181, allocations: 349.7 kB / 0.7926 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.5182, allocations: 33.7 kB / 0.7927 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.5184, allocations: 215.7 kB / 0.7929 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.624e-05/0.5184, allocations: 59.19 kB / 0.7929 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/0.5185, allocations: 45.7 kB / 0.793 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.5187, allocations: 350.8 kB / 0.7933 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.5189, allocations: 67.95 kB / 0.7934 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.5192, allocations: 147.1 kB / 0.7935 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/0.5196, allocations: 243 kB / 0.7937 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5196, allocations: 0 / 0.7937 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005819/0.5202, allocations: 316.8 kB / 0.7941 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.452e-05/0.5202, allocations: 33.7 kB / 0.7941 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.5203, allocations: 0 / 0.7941 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.5203, allocations: 4 kB / 0.7941 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.5205, allocations: 67.83 kB / 0.7942 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.5205, allocations: 4 kB / 0.7942 GB, free: 7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.5208, allocations: 35.67 kB / 0.7942 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.5208, allocations: 12.19 kB / 0.7942 GB, free: 6.953 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.0001935/0.521, allocations: 157.8 kB / 0.7944 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.5211, allocations: 31.62 kB / 0.7944 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004995/0.5216, allocations: 196.4 kB / 0.7946 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.5216, allocations: 7.922 kB / 0.7946 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5216, allocations: 4 kB / 0.7946 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005267/0.5221, allocations: 491.2 kB / 0.795 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.5226, allocations: 345.3 kB / 0.7954 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5226, allocations: 0 / 0.7954 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.5227, allocations: 35.97 kB / 0.7954 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.5228, allocations: 0 / 0.7954 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.5228, allocations: 4 kB / 0.7954 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.5228, allocations: 11.88 kB / 0.7954 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5228, allocations: 0 / 0.7954 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005874/0.5234, allocations: 288.5 kB / 0.7957 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.5236, allocations: 120.8 kB / 0.7958 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.5236, allocations: 4 kB / 0.7958 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.5238, allocations: 23.84 kB / 0.7958 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.78e-05/0.5239, allocations: 15.98 kB / 0.7959 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.5239, allocations: 15.92 kB / 0.7959 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002428/0.5242, allocations: 251.2 kB / 0.7961 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5242, allocations: 0 / 0.7961 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004071/0.5246, allocations: 124 kB / 0.7962 GB, free: 4.684 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.0003445/0.525, allocations: 199.1 kB / 0.7964 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004874/0.5255, allocations: 235.5 kB / 0.7966 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5255, allocations: 0 / 0.7966 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.5257, allocations: 67.89 kB / 0.7967 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/0.5265, allocations: 209 kB / 0.7969 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.5278, allocations: 0.7271 MB / 0.7976 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.5282, allocations: 0.7918 MB / 0.7984 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.5284, allocations: 59.25 kB / 0.7985 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.5285, allocations: 35.42 kB / 0.7985 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.5285, allocations: 0 / 0.7985 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of Templates: time 0.01212/0.5406, allocations: 7.302 MB / 0.8056 GB, free: 11.13 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)