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.001589/0.001589, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001521/0.001521, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.359/1.359, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.964/0.964, allocations: 135.6 MB / 425.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 64.53 kB / 0.5054 GB, free: 5.176 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1883, allocations: 81.02 MB / 0.5845 GB, free: 4.293 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.931/1.119, allocations: 301.6 MB / 0.879 GB, free: 1.43 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03196/1.151, allocations: 25.63 MB / 0.904 GB, free: 1.27 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004929/1.156, allocations: 113.5 kB / 0.9041 GB, free: 1.27 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.004993/1.161, allocations: 1.592 MB / 0.9057 GB, free: 1.246 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01362/1.175, allocations: 5.594 MB / 0.9112 GB, free: 1.02 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006207/1.181, allocations: 2.407 MB / 0.9135 GB, free: 0.9648 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01148/1.193, allocations: 8.892 MB / 0.9222 GB, free: 0.9492 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00533/1.198, allocations: 3.524 MB / 0.9256 GB, free: 16.44 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01286/1.211, allocations: 4.163 MB / 0.9297 GB, free: 16.38 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007426/1.218, allocations: 3.158 MB / 0.9328 GB, free: 16.27 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001384/1.22, allocations: 359.2 kB / 0.9331 GB, free: 16.27 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01075/1.231, allocations: 4.827 MB / 0.9378 GB, free: 16.23 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.002949/1.234, allocations: 1.652 MB / 0.9394 GB, free: 16.09 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.005534/1.239, allocations: 2.135 MB / 0.9415 GB, free: 15.53 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01298/1.252, allocations: 7.019 MB / 0.9484 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/1.252, allocations: 0 / 0.9484 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.896e-06/1.252, allocations: 7.922 kB / 0.9484 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001423/1.252, allocations: 0 / 0.9484 GB, free: 14.36 MB / 0.6856 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.007415/1.26, allocations: 4.177 MB / 0.9525 GB, free: 12.08 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/1.26, allocations: 10.06 kB / 0.9525 GB, free: 12.08 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005633/1.265, allocations: 0.9325 MB / 0.9534 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/1.27, allocations: 2.268 MB / 0.9556 GB, free: 10.66 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/1.27, allocations: 276.5 kB / 0.9559 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004861/1.27, allocations: 288.1 kB / 0.9561 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005484/1.276, allocations: 3.359 MB / 0.9594 GB, free: 9.676 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.718e-05/1.276, allocations: 5.938 kB / 0.9594 GB, free: 9.676 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000261/1.276, allocations: 113 kB / 0.9595 GB, free: 9.676 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/1.276, allocations: 106 kB / 0.9596 GB, free: 9.664 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004178/1.281, allocations: 2.787 MB / 0.9624 GB, free: 9.113 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.01863/1.299, allocations: 13.21 MB / 0.9753 GB, free: 11.47 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002871/1.302, allocations: 1.819 MB / 0.977 GB, free: 9.672 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/1.304, allocations: 1.102 MB / 0.9781 GB, free: 8.562 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005152/1.304, allocations: 325.7 kB / 0.9784 GB, free: 8.199 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/1.304, allocations: 64.56 kB / 0.9785 GB, free: 8.125 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=182): time 3.507e-06/1.304, allocations: 0 / 0.9785 GB, free: 8.125 MB / 0.7012 GB Notification: Performance of matching and sorting (n=182): time 0.005696/1.31, allocations: 2.72 MB / 0.9811 GB, free: 5.406 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/1.31, allocations: 73.41 kB / 0.9812 GB, free: 5.324 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003049/1.313, allocations: 2.001 MB / 0.9832 GB, free: 3.305 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.000294/1.314, allocations: 69.7 kB / 0.9832 GB, free: 3.23 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001246/1.315, allocations: 1.409 MB / 0.9846 GB, free: 1.812 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007282/1.316, allocations: 0.6365 MB / 0.9852 GB, free: 1.18 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005895/1.316, allocations: 391.2 kB / 0.9856 GB, free: 0.7891 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001228/1.316, allocations: 303.6 kB / 0.9859 GB, free: 0.4922 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/1.318, allocations: 0.8123 MB / 0.9867 GB, free: 15.67 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/1.32, allocations: 1.441 MB / 0.9881 GB, free: 13.97 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003164/1.323, allocations: 2.246 MB / 0.9903 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/1.323, allocations: 6.531 kB / 0.9903 GB, free: 11.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004164/1.327, allocations: 2.488 MB / 0.9927 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/1.327, allocations: 12 kB / 0.9927 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/1.327, allocations: 12 kB / 0.9927 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/1.327, allocations: 24 kB / 0.9928 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002477/1.329, allocations: 0.5619 MB / 0.9933 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/1.332, allocations: 4.153 MB / 0.9974 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003077/1.335, allocations: 371.8 kB / 0.9977 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/1.335, allocations: 87.98 kB / 0.9978 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0026/1.338, allocations: 1.456 MB / 0.9992 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001908/1.34, allocations: 1.436 MB / 1.001 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003152/1.343, allocations: 2.228 MB / 1.003 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.306e-06/1.343, allocations: 4 kB / 1.003 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004279/1.347, allocations: 2.469 MB / 1.005 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.347, allocations: 12 kB / 1.005 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/1.347, allocations: 12 kB / 1.005 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/1.347, allocations: 24 kB / 1.005 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/1.349, allocations: 469.7 kB / 1.006 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.83e-05/1.349, allocations: 34.3 kB / 1.006 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/1.352, allocations: 344.7 kB / 1.006 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/1.352, allocations: 83.98 kB / 1.006 GB, free: 11.02 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.0005806/1.353, allocations: 322.4 kB / 1.006 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005873/1.354, allocations: 268.8 kB / 1.007 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/1.357, allocations: 2.097 MB / 1.009 GB, free: 8.352 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/1.357, allocations: 20 kB / 1.009 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.357, allocations: 0 / 1.009 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002764/1.36, allocations: 1.884 MB / 1.011 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009029/1.369, allocations: 5.166 MB / 1.016 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/1.369, allocations: 0 / 1.016 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002408/1.372, allocations: 0.5052 MB / 1.016 GB, free: 0.7188 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.668e-05/1.372, allocations: 8 kB / 1.016 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/1.372, allocations: 55.97 kB / 1.016 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/1.374, allocations: 4.122 MB / 1.02 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.374, allocations: 4 kB / 1.02 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005572/1.38, allocations: 3.374 MB / 1.024 GB, free: 8.961 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.381, allocations: 0.5599 MB / 1.024 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003519/1.382, allocations: 43.94 kB / 1.024 GB, free: 8.336 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002171/1.384, allocations: 243.4 kB / 1.024 GB, free: 8.098 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/1.384, allocations: 109.8 kB / 1.024 GB, free: 7.992 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.384, allocations: 71.97 kB / 1.025 GB, free: 7.922 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002082/1.386, allocations: 1.338 MB / 1.026 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.61e-07/1.386, allocations: 0 / 1.026 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003988/1.39, allocations: 1.722 MB / 1.028 GB, free: 4.848 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.0007564/1.391, allocations: 350.7 kB / 1.028 GB, free: 4.539 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.009299/1.4, allocations: 4.629 MB / 1.032 GB, free: 40 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.401, allocations: 0 / 1.032 GB, free: 40 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001755/1.402, allocations: 1.035 MB / 1.033 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006609/1.409, allocations: 1.529 MB / 1.035 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.421, allocations: 7.815 MB / 1.043 GB, free: 5.73 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002262/1.423, allocations: 2.193 MB / 1.045 GB, free: 3.504 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.003979/1.427, allocations: 1.088 MB / 1.046 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006362/1.428, allocations: 211.4 kB / 1.046 GB, free: 2.203 MB / 0.7637 GB Notification: Performance of SimCode: time 6.21e-07/1.428, allocations: 0 / 1.046 GB, free: 2.203 MB / 0.7637 GB Notification: Performance of Templates: time 0.09599/1.524, allocations: 54.13 MB / 1.099 GB, free: 12.91 MB / 0.8262 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)