Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6904/0.6904, allocations: 133.4 MB / 150.1 MB, free: 11.14 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 404.7 MB, free: 6.113 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009982/0.0009981, allocations: 102.8 kB / 485.9 MB, free: 7.285 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 55.91 kB / 0.5636 GB, free: 69.97 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.125, allocations: 80.43 MB / 0.6421 GB, free: 5.473 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.5986/0.7237, allocations: 302.9 MB / 0.938 GB, free: 1.883 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.5824/1.306, allocations: 25.97 MB / 0.9633 GB, free: 0.9883 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005647/1.312, allocations: 115.3 kB / 0.9634 GB, free: 0.9883 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.00645/1.318, allocations: 1.543 MB / 0.9649 GB, free: 0.9844 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.01922/1.338, allocations: 5.622 MB / 0.9704 GB, free: 0.9102 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.009579/1.347, allocations: 2.363 MB / 0.9727 GB, free: 0.8594 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.02329/1.371, allocations: 12.45 MB / 0.9849 GB, free: 0.8359 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.011/1.382, allocations: 3.097 MB / 0.9879 GB, free: 16.4 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01616/1.398, allocations: 3.7 MB / 0.9915 GB, free: 16.36 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008401/1.406, allocations: 3.09 MB / 0.9945 GB, free: 16.34 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.002041/1.408, allocations: 194.2 kB / 0.9947 GB, free: 16.34 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01676/1.425, allocations: 5.317 MB / 0.9999 GB, free: 16.29 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.005014/1.43, allocations: 1.494 MB / 1.001 GB, free: 16.29 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.008096/1.438, allocations: 1.951 MB / 1.003 GB, free: 15.73 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.02046/1.459, allocations: 6.862 MB / 1.01 GB, free: 14.93 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 9.869e-06/1.459, allocations: 0 / 1.01 GB, free: 14.93 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.006e-06/1.459, allocations: 0 / 1.01 GB, free: 14.93 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0004378/1.459, allocations: 0 / 1.01 GB, free: 14.93 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01911/1.478, allocations: 4.18 MB / 1.014 GB, free: 13.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.689e-05/1.479, allocations: 8.656 kB / 1.014 GB, free: 13.1 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007943/1.487, allocations: 0.9329 MB / 1.015 GB, free: 12.89 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008156/1.495, allocations: 2.268 MB / 1.017 GB, free: 12.25 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004477/1.495, allocations: 274.2 kB / 1.017 GB, free: 12.18 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/1.497, allocations: 291.9 kB / 1.018 GB, free: 12.17 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/1.507, allocations: 3.352 MB / 1.021 GB, free: 11.67 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000134/1.507, allocations: 6.938 kB / 1.021 GB, free: 11.67 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007533/1.508, allocations: 112.7 kB / 1.021 GB, free: 11.67 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/1.508, allocations: 113 kB / 1.021 GB, free: 11.66 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006498/1.514, allocations: 2.789 MB / 1.024 GB, free: 11.18 MB / 0.698 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.02212/1.536, allocations: 13.2 MB / 1.037 GB, free: 1.996 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003319/1.54, allocations: 1.817 MB / 1.039 GB, free: 1.742 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/1.542, allocations: 1.11 MB / 1.04 GB, free: 1.582 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000654/1.543, allocations: 324.9 kB / 1.04 GB, free: 1.285 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.552e-05/1.543, allocations: 62.09 kB / 1.04 GB, free: 1.238 MB / 0.698 GB Notification: Performance of pre-optimization done (n=182): time 6.543e-06/1.543, allocations: 2.875 kB / 1.04 GB, free: 1.238 MB / 0.698 GB Notification: Performance of matching and sorting (n=182): time 0.006478/1.549, allocations: 2.715 MB / 1.043 GB, free: 0.7383 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/1.549, allocations: 74.31 kB / 1.043 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004564/1.554, allocations: 1.999 MB / 1.045 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0003679/1.554, allocations: 65.52 kB / 1.045 GB, free: 15.58 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.001352/1.556, allocations: 1.413 MB / 1.046 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.001027/1.557, allocations: 0.6393 MB / 1.047 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008957/1.557, allocations: 400.5 kB / 1.047 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000114/1.558, allocations: 306 kB / 1.047 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/1.559, allocations: 0.8112 MB / 1.048 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002129/1.561, allocations: 1.433 MB / 1.05 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003406/1.565, allocations: 2.247 MB / 1.052 GB, free: 10.08 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/1.565, allocations: 4 kB / 1.052 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004479/1.569, allocations: 2.488 MB / 1.054 GB, free: 8.355 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/1.569, allocations: 12 kB / 1.054 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/1.569, allocations: 12 kB / 1.054 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.758e-05/1.569, allocations: 27.19 kB / 1.054 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/1.572, allocations: 0.5578 MB / 1.055 GB, free: 7.801 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/1.574, allocations: 4.16 MB / 1.059 GB, free: 3.539 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004005/1.578, allocations: 364.9 kB / 1.059 GB, free: 3.219 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/1.578, allocations: 82.61 kB / 1.059 GB, free: 3.152 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002978/1.581, allocations: 1.462 MB / 1.061 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001685/1.583, allocations: 1.422 MB / 1.062 GB, free: 0.8477 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002855/1.586, allocations: 2.235 MB / 1.064 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.095e-05/1.586, allocations: 7.938 kB / 1.064 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004221/1.59, allocations: 2.469 MB / 1.067 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/1.59, allocations: 12 kB / 1.067 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/1.59, allocations: 12 kB / 1.067 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/1.59, allocations: 24 kB / 1.067 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/1.592, allocations: 471 kB / 1.067 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.676e-05/1.592, allocations: 32.09 kB / 1.067 GB, free: 13.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/1.596, allocations: 348.2 kB / 1.068 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/1.596, allocations: 88.05 kB / 1.068 GB, free: 12.64 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006724/1.597, allocations: 317.8 kB / 1.068 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007428/1.598, allocations: 268.8 kB / 1.068 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/1.601, allocations: 2.101 MB / 1.07 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/1.601, allocations: 16 kB / 1.07 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/1.601, allocations: 4 kB / 1.07 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00255/1.604, allocations: 1.879 MB / 1.072 GB, free: 8.699 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/1.616, allocations: 5.159 MB / 1.077 GB, free: 3.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/1.616, allocations: 7.984 kB / 1.077 GB, free: 3.492 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.618, allocations: 0.51 MB / 1.078 GB, free: 3.008 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.567e-05/1.618, allocations: 8 kB / 1.078 GB, free: 3 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/1.618, allocations: 51.98 kB / 1.078 GB, free: 2.949 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/1.62, allocations: 4.126 MB / 1.082 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.62, allocations: 6.531 kB / 1.082 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03199/1.652, allocations: 17.78 MB / 1.099 GB, free: 12.68 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00176/1.654, allocations: 0.5638 MB / 1.1 GB, free: 12.1 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/1.654, allocations: 43.98 kB / 1.1 GB, free: 12.05 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002257/1.657, allocations: 239.4 kB / 1.1 GB, free: 11.82 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/1.657, allocations: 120.3 kB / 1.1 GB, free: 11.71 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.657, allocations: 67.95 kB / 1.1 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.001912/1.659, allocations: 1.334 MB / 1.102 GB, free: 10.3 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.31e-07/1.659, allocations: 0 / 1.102 GB, free: 10.3 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.01074/1.67, allocations: 2.76 MB / 1.104 GB, free: 7.531 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * 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 (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009775/1.671, allocations: 355.5 kB / 1.105 GB, free: 7.215 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.006226/1.677, allocations: 3.307 MB / 1.108 GB, free: 4.031 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/1.677, allocations: 7.938 kB / 1.108 GB, free: 4.023 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001814/1.679, allocations: 1.041 MB / 1.109 GB, free: 3.027 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009151/1.688, allocations: 1.585 MB / 1.11 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/1.702, allocations: 8.87 MB / 1.119 GB, free: 8.535 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003058/1.705, allocations: 2.252 MB / 1.121 GB, free: 6.254 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.004728/1.71, allocations: 1.131 MB / 1.122 GB, free: 5.117 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00092/1.711, allocations: 223.4 kB / 1.123 GB, free: 4.898 MB / 0.7761 GB Notification: Performance of SimCode: time 8.92e-07/1.711, allocations: 0 / 1.123 GB, free: 4.898 MB / 0.7761 GB Notification: Performance of Templates: time 0.1028/1.814, allocations: 59.44 MB / 1.181 GB, free: 10.3 MB / 0.8386 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)