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.001166/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00117/0.00117, allocations: 195.7 kB / 16.14 MB, free: 6.66 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7926/0.7926, allocations: 132.2 MB / 422.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 60.38 kB / 0.5011 GB, free: 9.273 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.1676, allocations: 80.21 MB / 0.5794 GB, free: 9.289 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.9842/1.152, allocations: 302.9 MB / 0.8752 GB, free: 1.336 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03218/1.184, allocations: 25.96 MB / 0.9006 GB, free: 1.066 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004682/1.189, allocations: 119.8 kB / 0.9007 GB, free: 1.062 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005853/1.195, allocations: 1.535 MB / 0.9022 GB, free: 1.039 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01643/1.211, allocations: 5.624 MB / 0.9077 GB, free: 0.7656 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006807/1.218, allocations: 2.364 MB / 0.91 GB, free: 0.7148 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01589/1.234, allocations: 12.4 MB / 0.9221 GB, free: 0.6914 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006257/1.24, allocations: 3.108 MB / 0.9251 GB, free: 16.18 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0125/1.253, allocations: 3.68 MB / 0.9287 GB, free: 16.13 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007145/1.26, allocations: 3.07 MB / 0.9317 GB, free: 16.07 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.002701/1.263, allocations: 197.1 kB / 0.9319 GB, free: 16.07 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01357/1.276, allocations: 5.322 MB / 0.9371 GB, free: 16.02 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.003185/1.279, allocations: 1.491 MB / 0.9386 GB, free: 15.88 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.005877/1.285, allocations: 1.95 MB / 0.9405 GB, free: 15.33 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01429/1.3, allocations: 6.868 MB / 0.9472 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/1.3, allocations: 0 / 0.9472 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.183e-06/1.3, allocations: 0 / 0.9472 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0002164/1.3, allocations: 7.938 kB / 0.9472 GB, free: 13.01 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.009448/1.309, allocations: 4.178 MB / 0.9513 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/1.309, allocations: 8.281 kB / 0.9513 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00643/1.316, allocations: 0.9313 MB / 0.9522 GB, free: 10.36 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004988/1.321, allocations: 2.272 MB / 0.9544 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/1.321, allocations: 269.4 kB / 0.9547 GB, free: 9.25 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009688/1.322, allocations: 299.1 kB / 0.955 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007697/1.33, allocations: 3.352 MB / 0.9582 GB, free: 8.336 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.838e-05/1.33, allocations: 9.625 kB / 0.9582 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003317/1.33, allocations: 114.8 kB / 0.9583 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/1.331, allocations: 104.2 kB / 0.9584 GB, free: 8.32 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004821/1.335, allocations: 2.787 MB / 0.9612 GB, free: 7.746 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.01853/1.354, allocations: 13.21 MB / 0.9741 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/1.357, allocations: 1.809 MB / 0.9758 GB, free: 10.2 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/1.359, allocations: 1.106 MB / 0.9769 GB, free: 9.086 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004863/1.359, allocations: 329.5 kB / 0.9772 GB, free: 8.719 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.932e-05/1.359, allocations: 56.56 kB / 0.9773 GB, free: 8.652 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=182): time 3.937e-06/1.359, allocations: 0 / 0.9773 GB, free: 8.652 MB / 0.7012 GB Notification: Performance of matching and sorting (n=182): time 0.005087/1.364, allocations: 2.72 MB / 0.9799 GB, free: 5.93 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/1.364, allocations: 69.41 kB / 0.98 GB, free: 5.852 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/1.367, allocations: 1.998 MB / 0.982 GB, free: 3.836 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0003121/1.367, allocations: 69.7 kB / 0.982 GB, free: 3.762 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009697/1.368, allocations: 1.413 MB / 0.9834 GB, free: 2.34 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007466/1.369, allocations: 0.642 MB / 0.984 GB, free: 1.703 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005421/1.37, allocations: 391.2 kB / 0.9844 GB, free: 1.312 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.336e-05/1.37, allocations: 309 kB / 0.9847 GB, free: 1.008 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/1.371, allocations: 0.8091 MB / 0.9855 GB, free: 192 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/1.373, allocations: 1.432 MB / 0.9869 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/1.376, allocations: 2.254 MB / 0.9891 GB, free: 12.12 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/1.376, allocations: 4 kB / 0.9891 GB, free: 12.12 MB / 0.7169 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004226/1.38, allocations: 2.486 MB / 0.9915 GB, free: 9.703 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/1.38, allocations: 9 kB / 0.9915 GB, free: 9.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/1.38, allocations: 12 kB / 0.9915 GB, free: 9.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.404e-05/1.38, allocations: 28 kB / 0.9916 GB, free: 9.656 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/1.383, allocations: 0.5515 MB / 0.9921 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/1.385, allocations: 4.16 MB / 0.9962 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/1.389, allocations: 373 kB / 0.9965 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003075/1.389, allocations: 87.98 kB / 0.9966 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002877/1.392, allocations: 1.46 MB / 0.998 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00196/1.394, allocations: 1.422 MB / 0.9994 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003361/1.398, allocations: 2.234 MB / 1.002 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.166e-05/1.398, allocations: 4 kB / 1.002 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004851/1.403, allocations: 2.477 MB / 1.004 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/1.403, allocations: 14.34 kB / 1.004 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/1.403, allocations: 16.16 kB / 1.004 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/1.403, allocations: 24 kB / 1.004 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/1.404, allocations: 470.3 kB / 1.005 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.321e-05/1.404, allocations: 33.05 kB / 1.005 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003819/1.408, allocations: 338.7 kB / 1.005 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/1.408, allocations: 84 kB / 1.005 GB, free: 11.54 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.0007126/1.409, allocations: 314.8 kB / 1.005 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008752/1.41, allocations: 272.8 kB / 1.006 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003562/1.414, allocations: 2.098 MB / 1.008 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/1.414, allocations: 16 kB / 1.008 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.414, allocations: 0 / 1.008 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00247/1.416, allocations: 1.888 MB / 1.009 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00934/1.426, allocations: 5.165 MB / 1.014 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/1.426, allocations: 4 kB / 1.014 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002335/1.428, allocations: 0.5019 MB / 1.015 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.9e-05/1.428, allocations: 12.06 kB / 1.015 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/1.428, allocations: 55.98 kB / 1.015 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/1.43, allocations: 4.119 MB / 1.019 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.43, allocations: 4 kB / 1.019 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004826/1.435, allocations: 3.372 MB / 1.022 GB, free: 9.484 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/1.436, allocations: 0.5599 MB / 1.023 GB, free: 8.902 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/1.437, allocations: 43.98 kB / 1.023 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002138/1.439, allocations: 242.2 kB / 1.023 GB, free: 8.625 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/1.439, allocations: 120.4 kB / 1.023 GB, free: 8.512 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.439, allocations: 67.95 kB / 1.023 GB, free: 8.445 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001812/1.441, allocations: 1.334 MB / 1.025 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/1.441, allocations: 3.938 kB / 1.025 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003756/1.445, allocations: 1.718 MB / 1.026 GB, free: 5.375 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.000783/1.446, allocations: 351.3 kB / 1.027 GB, free: 5.07 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005994/1.452, allocations: 3.297 MB / 1.03 GB, free: 1.887 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/1.452, allocations: 0 / 1.03 GB, free: 1.887 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001745/1.453, allocations: 1.027 MB / 1.031 GB, free: 0.9023 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008906/1.462, allocations: 1.601 MB / 1.032 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/1.475, allocations: 7.805 MB / 1.04 GB, free: 7.496 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002799/1.478, allocations: 2.193 MB / 1.042 GB, free: 5.27 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.005047/1.483, allocations: 1.092 MB / 1.043 GB, free: 4.172 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007413/1.484, allocations: 219.4 kB / 1.043 GB, free: 3.957 MB / 0.7637 GB Notification: Performance of SimCode: time 1.322e-06/1.484, allocations: 0 / 1.043 GB, free: 3.957 MB / 0.7637 GB Notification: Performance of Templates: time 0.09511/1.579, allocations: 53.17 MB / 1.095 GB, free: 15.65 MB / 0.8262 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)