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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 99.34 kB / 16.35 MB, free: 5.828 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.001231/0.001231, allocations: 192.3 kB / 17.29 MB, free: 5.484 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7932/0.7932, allocations: 135.1 MB / 426.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001236, allocations: 63.89 kB / 0.5067 GB, free: 7.656 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.367, allocations: 80.91 MB / 0.5857 GB, free: 25.52 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.6095/0.9766, allocations: 305.1 MB / 0.8837 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03639/1.013, allocations: 25.81 MB / 0.9089 GB, free: 2.691 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006062/1.019, allocations: 131.2 kB / 0.909 GB, free: 2.562 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.006044/1.025, allocations: 1.79 MB / 0.9108 GB, free: 0.7617 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01625/1.042, allocations: 5.948 MB / 0.9166 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.006697/1.048, allocations: 2.636 MB / 0.9192 GB, free: 8.176 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01202/1.06, allocations: 8.903 MB / 0.9279 GB, free: 15.25 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004972/1.065, allocations: 3.628 MB / 0.9314 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009897/1.075, allocations: 4.165 MB / 0.9355 GB, free: 7.402 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005965/1.081, allocations: 2.952 MB / 0.9384 GB, free: 4.461 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0009749/1.082, allocations: 360 kB / 0.9387 GB, free: 4.109 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01029/1.092, allocations: 4.595 MB / 0.9432 GB, free: 15.5 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.002353/1.095, allocations: 1.644 MB / 0.9448 GB, free: 13.86 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003907/1.099, allocations: 2.135 MB / 0.9469 GB, free: 11.71 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01293/1.112, allocations: 6.75 MB / 0.9535 GB, free: 4.941 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/1.112, allocations: 4 kB / 0.9535 GB, free: 4.938 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.572e-06/1.112, allocations: 3.938 kB / 0.9535 GB, free: 4.934 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001306/1.112, allocations: 0 / 0.9535 GB, free: 4.934 MB / 0.67 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.007185/1.119, allocations: 4.179 MB / 0.9576 GB, free: 0.6836 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/1.119, allocations: 13.11 kB / 0.9576 GB, free: 0.6719 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005519/1.125, allocations: 0.9284 MB / 0.9585 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/1.129, allocations: 2.404 MB / 0.9608 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/1.13, allocations: 277.2 kB / 0.9611 GB, free: 12.97 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004163/1.13, allocations: 291.9 kB / 0.9614 GB, free: 12.68 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005295/1.135, allocations: 3.355 MB / 0.9646 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.487e-05/1.135, allocations: 0 / 0.9646 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002338/1.136, allocations: 119.9 kB / 0.9648 GB, free: 9.125 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/1.136, allocations: 105.3 kB / 0.9649 GB, free: 9.02 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004213/1.14, allocations: 2.781 MB / 0.9676 GB, free: 6.227 MB / 0.6856 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.01515/1.155, allocations: 13.23 MB / 0.9805 GB, free: 7.809 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/1.158, allocations: 1.822 MB / 0.9823 GB, free: 5.977 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/1.159, allocations: 1.102 MB / 0.9833 GB, free: 4.875 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004622/1.16, allocations: 329.2 kB / 0.9837 GB, free: 4.5 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/1.16, allocations: 64.48 kB / 0.9837 GB, free: 4.426 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=182): time 2.976e-06/1.16, allocations: 4 kB / 0.9837 GB, free: 4.422 MB / 0.7012 GB Notification: Performance of matching and sorting (n=182): time 0.004934/1.165, allocations: 2.725 MB / 0.9864 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/1.165, allocations: 69.41 kB / 0.9865 GB, free: 1.617 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/1.168, allocations: 2.001 MB / 0.9884 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002722/1.168, allocations: 69.7 kB / 0.9885 GB, free: 15.52 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009795/1.169, allocations: 1.406 MB / 0.9899 GB, free: 14.1 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006661/1.17, allocations: 0.6353 MB / 0.9905 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005465/1.17, allocations: 391.2 kB / 0.9908 GB, free: 13.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.453e-05/1.17, allocations: 301.1 kB / 0.9911 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/1.172, allocations: 0.8013 MB / 0.9919 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/1.173, allocations: 1.439 MB / 0.9933 GB, free: 10.25 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/1.176, allocations: 2.252 MB / 0.9955 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/1.176, allocations: 4 kB / 0.9955 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004187/1.181, allocations: 2.487 MB / 0.998 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/1.181, allocations: 16.03 kB / 0.998 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.955e-05/1.181, allocations: 15.94 kB / 0.998 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.62e-05/1.181, allocations: 24 kB / 0.998 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/1.183, allocations: 0.5538 MB / 0.9985 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/1.185, allocations: 4.157 MB / 1.003 GB, free: 392 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002609/1.188, allocations: 226.9 kB / 1.003 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/1.188, allocations: 87.98 kB / 1.003 GB, free: 80 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002416/1.191, allocations: 1.461 MB / 1.004 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001656/1.192, allocations: 1.428 MB / 1.006 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002811/1.195, allocations: 2.237 MB / 1.008 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.808e-06/1.195, allocations: 7.984 kB / 1.008 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.003916/1.199, allocations: 2.467 MB / 1.01 GB, free: 8.012 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/1.199, allocations: 8 kB / 1.01 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/1.199, allocations: 16 kB / 1.01 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/1.199, allocations: 24 kB / 1.01 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/1.201, allocations: 471.3 kB / 1.011 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.895e-05/1.201, allocations: 31.92 kB / 1.011 GB, free: 7.473 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002356/1.203, allocations: 195.1 kB / 1.011 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/1.203, allocations: 87.98 kB / 1.011 GB, free: 7.195 MB / 0.7325 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.0004747/1.204, allocations: 319.8 kB / 1.011 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/1.204, allocations: 268.8 kB / 1.012 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003211/1.208, allocations: 2.095 MB / 1.014 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/1.208, allocations: 20 kB / 1.014 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.208, allocations: 0 / 1.014 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002465/1.21, allocations: 1.886 MB / 1.016 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007793/1.218, allocations: 5.158 MB / 1.021 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/1.218, allocations: 0 / 1.021 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002327/1.22, allocations: 0.5032 MB / 1.021 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/1.22, allocations: 8.156 kB / 1.021 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/1.22, allocations: 55.98 kB / 1.021 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/1.222, allocations: 4.126 MB / 1.025 GB, free: 8.426 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.222, allocations: 11.88 kB / 1.025 GB, free: 8.414 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/1.227, allocations: 3.363 MB / 1.029 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/1.228, allocations: 0.5638 MB / 1.029 GB, free: 4.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004021/1.229, allocations: 43.98 kB / 1.029 GB, free: 4.367 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001755/1.231, allocations: 78 kB / 1.029 GB, free: 4.293 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/1.231, allocations: 117.8 kB / 1.029 GB, free: 4.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/1.231, allocations: 71.95 kB / 1.029 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001979/1.233, allocations: 1.342 MB / 1.031 GB, free: 2.758 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/1.233, allocations: 0 / 1.031 GB, free: 2.758 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003657/1.237, allocations: 1.71 MB / 1.032 GB, free: 1.043 MB / 0.7481 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.0008334/1.237, allocations: 357.3 kB / 1.033 GB, free: 0.6992 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.2565/1.494, allocations: 3.303 MB / 1.036 GB, free: 324.5 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.494, allocations: 5.5 kB / 1.036 GB, free: 324.5 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001935/1.496, allocations: 1.023 MB / 1.037 GB, free: 324.1 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006617/1.503, allocations: 1.529 MB / 1.038 GB, free: 323.8 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.513, allocations: 6.471 MB / 1.045 GB, free: 321 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/1.514, allocations: 2.189 MB / 1.047 GB, free: 320 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.003737/1.518, allocations: 1.094 MB / 1.048 GB, free: 319.9 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006227/1.519, allocations: 214 kB / 1.048 GB, free: 319.9 MB / 0.7481 GB Notification: Performance of SimCode: time 1.082e-06/1.519, allocations: 0 / 1.048 GB, free: 319.9 MB / 0.7481 GB Notification: Performance of Templates: time 0.0679/1.587, allocations: 54.38 MB / 1.101 GB, free: 271.7 MB / 0.7481 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)