Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007817/0.0007817, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008233/0.0008234, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7376/0.7376, allocations: 132.4 MB / 423.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002924, allocations: 12 kB / 0.5034 GB, free: 4.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3824, allocations: 81.57 MB / 0.5831 GB, free: 3.953 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.5658/0.9482, allocations: 278.7 MB / 0.8553 GB, free: 8.793 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02359/0.9719, allocations: 24.15 MB / 0.8788 GB, free: 8.367 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0028/0.9747, allocations: 101.6 kB / 0.8789 GB, free: 8.367 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.9775, allocations: 1.198 MB / 0.8801 GB, free: 8.355 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.009344/0.9869, allocations: 4.372 MB / 0.8844 GB, free: 8.148 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004671/0.9915, allocations: 1.951 MB / 0.8863 GB, free: 8.102 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.009155/1.001, allocations: 10.43 MB / 0.8965 GB, free: 8.082 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003891/1.005, allocations: 2.548 MB / 0.899 GB, free: 23.71 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006388/1.011, allocations: 3.2 MB / 0.9021 GB, free: 23.39 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004919/1.016, allocations: 2.83 MB / 0.9049 GB, free: 22.88 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0009691/1.017, allocations: 152.7 kB / 0.905 GB, free: 22.88 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006947/1.024, allocations: 2.409 MB / 0.9074 GB, free: 22.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.002016/1.026, allocations: 1.425 MB / 0.9087 GB, free: 21.92 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001718/1.028, allocations: 0.7629 MB / 0.9095 GB, free: 21.89 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005697/1.033, allocations: 4.745 MB / 0.9141 GB, free: 19.53 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.033, allocations: 7.297 kB / 0.9141 GB, free: 19.53 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.854e-06/1.033, allocations: 0 / 0.9141 GB, free: 19.53 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001715/1.034, allocations: 3.938 kB / 0.9141 GB, free: 19.52 MB / 0.6544 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.005677/1.039, allocations: 3.482 MB / 0.9175 GB, free: 17.4 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/1.039, allocations: 10.22 kB / 0.9175 GB, free: 17.4 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005232/1.045, allocations: 0.9339 MB / 0.9185 GB, free: 17.02 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003718/1.048, allocations: 2.397 MB / 0.9208 GB, free: 16.01 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/1.048, allocations: 277.7 kB / 0.9211 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003294/1.049, allocations: 290.6 kB / 0.9213 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00466/1.053, allocations: 3.349 MB / 0.9246 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.363e-05/1.054, allocations: 8.188 kB / 0.9246 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000217/1.054, allocations: 113.4 kB / 0.9247 GB, free: 15.02 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.738e-05/1.054, allocations: 108.4 kB / 0.9248 GB, free: 15.01 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003782/1.058, allocations: 2.789 MB / 0.9276 GB, free: 14.52 MB / 0.6544 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.0128/1.07, allocations: 13.26 MB / 0.9405 GB, free: 3.328 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/1.073, allocations: 1.86 MB / 0.9423 GB, free: 2.18 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/1.074, allocations: 1.119 MB / 0.9434 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004317/1.075, allocations: 331.8 kB / 0.9437 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/1.075, allocations: 59.47 kB / 0.9438 GB, free: 1.043 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=186): time 3.427e-06/1.075, allocations: 4 kB / 0.9438 GB, free: 1.039 MB / 0.6544 GB Notification: Performance of matching and sorting (n=186): time 0.004408/1.079, allocations: 2.762 MB / 0.9465 GB, free: 15.09 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/1.079, allocations: 73.41 kB / 0.9466 GB, free: 15 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002172/1.081, allocations: 1.979 MB / 0.9485 GB, free: 13.5 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/1.082, allocations: 69.02 kB / 0.9486 GB, free: 13.45 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.000868/1.082, allocations: 1.415 MB / 0.9499 GB, free: 12.59 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005445/1.083, allocations: 0.6609 MB / 0.9506 GB, free: 12.02 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/1.083, allocations: 40.62 kB / 0.9506 GB, free: 12.02 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001443/1.083, allocations: 382 kB / 0.951 GB, free: 11.67 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/1.085, allocations: 0.8034 MB / 0.9518 GB, free: 11.14 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/1.086, allocations: 1.464 MB / 0.9532 GB, free: 9.746 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/1.088, allocations: 1.061 MB / 0.9542 GB, free: 9.105 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/1.088, allocations: 4 kB / 0.9542 GB, free: 9.102 MB / 0.67 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003477/1.091, allocations: 2.495 MB / 0.9567 GB, free: 7.375 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.000256/1.091, allocations: 472.3 kB / 0.9571 GB, free: 6.785 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/1.091, allocations: 12 kB / 0.9571 GB, free: 6.773 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/1.091, allocations: 27.95 kB / 0.9572 GB, free: 6.746 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/1.094, allocations: 0.5582 MB / 0.9577 GB, free: 6.23 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/1.096, allocations: 4.162 MB / 0.9618 GB, free: 1.973 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/1.099, allocations: 379.6 kB / 0.9621 GB, free: 1.637 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/1.099, allocations: 81.61 kB / 0.9622 GB, free: 1.57 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 8.226e-06/1.099, allocations: 4 kB / 0.9622 GB, free: 1.566 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003095/1.102, allocations: 2.228 MB / 0.9644 GB, free: 152 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/1.102, allocations: 13.97 kB / 0.9644 GB, free: 140 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/1.102, allocations: 24 kB / 0.9644 GB, free: 116 kB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/1.104, allocations: 485.5 kB / 0.9649 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.913e-05/1.104, allocations: 38.03 kB / 0.9649 GB, free: 15.65 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/1.106, allocations: 359 kB / 0.9653 GB, free: 15.34 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/1.106, allocations: 83.23 kB / 0.9653 GB, free: 15.27 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001295/1.108, allocations: 0.8584 MB / 0.9662 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003676/1.108, allocations: 272.7 kB / 0.9664 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/1.111, allocations: 2.138 MB / 0.9685 GB, free: 13.04 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/1.111, allocations: 20 kB / 0.9686 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/1.111, allocations: 3.953 kB / 0.9686 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002428/1.114, allocations: 1.915 MB / 0.9704 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007004/1.121, allocations: 5.214 MB / 0.9755 GB, free: 8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/1.121, allocations: 0 / 0.9755 GB, free: 8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.123, allocations: 0.5108 MB / 0.976 GB, free: 7.523 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/1.123, allocations: 12 kB / 0.976 GB, free: 7.512 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/1.123, allocations: 53.09 kB / 0.9761 GB, free: 7.484 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/1.125, allocations: 4.128 MB / 0.9801 GB, free: 3.25 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.125, allocations: 7.094 kB / 0.9801 GB, free: 3.246 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004249/1.129, allocations: 3.421 MB / 0.9835 GB, free: 0.8398 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009662/1.13, allocations: 0.5801 MB / 0.984 GB, free: 356 kB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/1.13, allocations: 41.17 kB / 0.9841 GB, free: 344 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/1.132, allocations: 248.6 kB / 0.9843 GB, free: 124 kB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/1.132, allocations: 116.1 kB / 0.9844 GB, free: 20 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.132, allocations: 73.33 kB / 0.9845 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001574/1.134, allocations: 1.319 MB / 0.9858 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.71e-07/1.134, allocations: 0 / 0.9858 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00337/1.137, allocations: 1.727 MB / 0.9875 GB, free: 13.35 MB / 0.7012 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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006385/1.138, allocations: 381.2 kB / 0.9878 GB, free: 13.06 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.005182/1.143, allocations: 3.352 MB / 0.9911 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.143, allocations: 0 / 0.9911 GB, free: 10.74 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/1.145, allocations: 1.047 MB / 0.9921 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006296/1.151, allocations: 1.605 MB / 0.9937 GB, free: 8.715 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009097/1.16, allocations: 7.901 MB / 1.001 GB, free: 1.414 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/1.162, allocations: 2.196 MB / 1.004 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.003589/1.166, allocations: 1.108 MB / 1.005 GB, free: 14.2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005908/1.166, allocations: 230.2 kB / 1.005 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of SimCode: time 4.3e-07/1.166, allocations: 1.969 kB / 1.005 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of Templates: time 0.07887/1.245, allocations: 52.3 MB / 1.056 GB, free: 10.57 MB / 0.7637 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)