Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.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.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") translateModel(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007249/0.007249, allocations: 101.6 kB / 15.73 MB, free: 6.043 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.00175/0.00175, allocations: 201.2 kB / 16.68 MB, free: 5.961 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.307/1.307, 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.002132/0.002132, allocations: 291.8 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9326/0.9326, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 103.8 kB / 0.6815 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4214, allocations: 86.97 MB / 0.7664 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1808/0.6023, allocations: 187.3 MB / 0.9493 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4446/1.047, allocations: 13.06 MB / 0.962 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/1.048, allocations: 31.62 kB / 0.9621 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001309/1.05, allocations: 430.2 kB / 0.9625 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002553/1.052, allocations: 1.16 MB / 0.9636 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001593/1.054, allocations: 0.706 MB / 0.9643 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002348/1.056, allocations: 2.024 MB / 0.9663 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/1.057, allocations: 0.8362 MB / 0.9671 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003765/1.061, allocations: 1.827 MB / 0.9689 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/1.063, allocations: 0.6664 MB / 0.9695 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001422/1.063, allocations: 79.25 kB / 0.9696 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/1.064, allocations: 0.8716 MB / 0.9705 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003519/1.065, allocations: 386.6 kB / 0.9708 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005394/1.065, allocations: 0.493 MB / 0.9713 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001779/1.067, allocations: 1.505 MB / 0.9728 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/1.067, allocations: 1.875 kB / 0.9728 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.124e-06/1.067, allocations: 3.281 kB / 0.9728 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.264e-05/1.067, allocations: 0.8125 kB / 0.9728 GB, free: 1.59 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.001711/1.069, allocations: 1.234 MB / 0.974 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/1.069, allocations: 12.45 kB / 0.974 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/1.07, allocations: 217.4 kB / 0.9742 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/1.071, allocations: 0.6876 MB / 0.9749 GB, free: 16.54 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/1.071, allocations: 57.09 kB / 0.9749 GB, free: 16.54 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.356e-05/1.071, allocations: 79.09 kB / 0.975 GB, free: 16.54 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/1.072, allocations: 0.9264 MB / 0.9759 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/1.072, allocations: 6.781 kB / 0.9759 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/1.072, allocations: 35.47 kB / 0.9759 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.15e-05/1.072, allocations: 33.11 kB / 0.976 GB, free: 16.29 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007903/1.073, allocations: 0.6183 MB / 0.9766 GB, free: 16.28 MB / 0.7325 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.003754/1.077, allocations: 4.58 MB / 0.9811 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006518/1.078, allocations: 0.5462 MB / 0.9816 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/1.078, allocations: 241.3 kB / 0.9818 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001693/1.078, allocations: 109 kB / 0.9819 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.078, allocations: 44.94 kB / 0.982 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=43): time 2.114e-06/1.078, allocations: 0 / 0.982 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.002312/1.08, allocations: 1.591 MB / 0.9835 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/1.081, allocations: 108.8 kB / 0.9836 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006763/1.081, allocations: 0.7149 MB / 0.9843 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/1.081, allocations: 38.89 kB / 0.9844 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000241/1.082, allocations: 416.2 kB / 0.9848 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/1.082, allocations: 165.8 kB / 0.9849 GB, free: 11.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/1.082, allocations: 118.2 kB / 0.985 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001094/1.082, allocations: 330.4 kB / 0.9853 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/1.082, allocations: 187.1 kB / 0.9855 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/1.083, allocations: 415.5 kB / 0.9859 GB, free: 11.03 MB / 0.7325 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (sin.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00193/1.084, allocations: 1.179 MB / 0.9871 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/1.084, allocations: 4.672 kB / 0.9871 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008508/1.085, allocations: 0.6662 MB / 0.9877 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/1.085, allocations: 9.5 kB / 0.9877 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/1.085, allocations: 11.53 kB / 0.9877 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/1.085, allocations: 9 kB / 0.9878 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004192/1.086, allocations: 129 kB / 0.9879 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/1.086, allocations: 15.91 kB / 0.9879 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/1.086, allocations: 24.31 kB / 0.9879 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/1.086, allocations: 28.47 kB / 0.9879 GB, free: 10.62 MB / 0.7325 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 2 (intTraSubOut.local_reset,intTraSubIn.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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.0003299/1.087, allocations: 275.8 kB / 0.9882 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/1.087, allocations: 81.75 kB / 0.9883 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/1.087, allocations: 94.88 kB / 0.9884 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/1.087, allocations: 5.562 kB / 0.9884 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.087, allocations: 0 / 0.9884 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006441/1.088, allocations: 0.6987 MB / 0.9891 GB, free: 10 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/1.09, allocations: 1.642 MB / 0.9907 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.09, allocations: 5.062 kB / 0.9907 GB, free: 9.414 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/1.09, allocations: 102.5 kB / 0.9908 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/1.09, allocations: 5.875 kB / 0.9908 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/1.09, allocations: 19.09 kB / 0.9908 GB, free: 9.406 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.45e-06/1.09, allocations: 6.875 kB / 0.9908 GB, free: 9.406 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.09, allocations: 9.219 kB / 0.9908 GB, free: 9.406 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/1.091, allocations: 0.8634 MB / 0.9916 GB, free: 9.094 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003148/1.092, allocations: 203.6 kB / 0.9918 GB, free: 8.961 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/1.092, allocations: 23.45 kB / 0.9919 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/1.092, allocations: 17.14 kB / 0.9919 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/1.092, allocations: 43.92 kB / 0.9919 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/1.092, allocations: 24.28 kB / 0.9919 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000538/1.093, allocations: 0.5106 MB / 0.9924 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of sort global known variables: time 7.21e-07/1.093, allocations: 0 / 0.9924 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006979/1.094, allocations: 206.1 kB / 0.9926 GB, free: 8.848 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 5 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.mC[1],intTraSubIn.y,intTraSubOut.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000568/1.094, allocations: 188.5 kB / 0.9928 GB, free: 8.754 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007344/1.095, allocations: 492.7 kB / 0.9933 GB, free: 8.738 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/1.095, allocations: 2.438 kB / 0.9933 GB, free: 8.738 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002426/1.095, allocations: 211.8 kB / 0.9935 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/1.097, allocations: 474.3 kB / 0.9939 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/1.1, allocations: 1.661 MB / 0.9956 GB, free: 7.949 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/1.1, allocations: 1.032 MB / 0.9966 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006571/1.101, allocations: 208.6 kB / 0.9968 GB, free: 7.219 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/1.101, allocations: 63.44 kB / 0.9968 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/1.101, allocations: 0 / 0.9968 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of Templates: time 0.02752/1.129, allocations: 15.45 MB / 1.012 GB, free: 5.906 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & ./BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1)