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.00111/0.00111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001176, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9759/0.9759, allocations: 135.1 MB / 425.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 64.44 kB / 0.5053 GB, free: 5.309 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.175, allocations: 80.93 MB / 0.5844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.9711/1.146, allocations: 305.1 MB / 0.8823 GB, free: 1.453 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03501/1.181, allocations: 25.79 MB / 0.9075 GB, free: 1.301 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005816/1.187, allocations: 127.1 kB / 0.9076 GB, free: 1.301 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005749/1.193, allocations: 1.791 MB / 0.9094 GB, free: 1.277 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.01693/1.21, allocations: 5.958 MB / 0.9152 GB, free: 1.039 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007178/1.217, allocations: 2.589 MB / 0.9177 GB, free: 0.9883 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.01757/1.235, allocations: 8.893 MB / 0.9264 GB, free: 0.9727 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00927/1.244, allocations: 3.63 MB / 0.9299 GB, free: 16.44 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01255/1.257, allocations: 4.145 MB / 0.934 GB, free: 16.39 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006916/1.264, allocations: 2.957 MB / 0.9369 GB, free: 16.22 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.002154/1.266, allocations: 358.7 kB / 0.9372 GB, free: 16.22 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01299/1.279, allocations: 4.598 MB / 0.9417 GB, free: 16.18 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.003345/1.282, allocations: 1.639 MB / 0.9433 GB, free: 16.02 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.006072/1.288, allocations: 2.131 MB / 0.9454 GB, free: 15.46 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01529/1.304, allocations: 6.691 MB / 0.9519 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/1.304, allocations: 0 / 0.9519 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.014e-06/1.304, allocations: 0 / 0.9519 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0002928/1.304, allocations: 4 kB / 0.9519 GB, free: 13.54 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.01121/1.315, allocations: 4.18 MB / 0.956 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/1.315, allocations: 9.469 kB / 0.956 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00632/1.322, allocations: 0.9293 MB / 0.9569 GB, free: 10.89 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005125/1.327, allocations: 2.267 MB / 0.9591 GB, free: 9.855 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002691/1.327, allocations: 275.7 kB / 0.9594 GB, free: 9.781 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008689/1.328, allocations: 292.5 kB / 0.9597 GB, free: 9.773 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007021/1.335, allocations: 3.354 MB / 0.9629 GB, free: 8.867 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.779e-05/1.335, allocations: 6.531 kB / 0.963 GB, free: 8.863 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004356/1.335, allocations: 118.8 kB / 0.9631 GB, free: 8.863 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/1.336, allocations: 108.6 kB / 0.9632 GB, free: 8.848 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005318/1.341, allocations: 2.788 MB / 0.9659 GB, free: 7.109 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.01968/1.361, allocations: 13.33 MB / 0.9789 GB, free: 8.863 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003291/1.364, allocations: 1.819 MB / 0.9807 GB, free: 7.059 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/1.366, allocations: 1.098 MB / 0.9818 GB, free: 5.965 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005551/1.367, allocations: 339.5 kB / 0.9821 GB, free: 5.59 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/1.367, allocations: 56.56 kB / 0.9821 GB, free: 5.523 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=182): time 3.828e-06/1.367, allocations: 4 kB / 0.9821 GB, free: 5.52 MB / 0.7012 GB Notification: Performance of matching and sorting (n=182): time 0.006029/1.373, allocations: 2.716 MB / 0.9848 GB, free: 2.805 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/1.373, allocations: 77.34 kB / 0.9849 GB, free: 2.719 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003924/1.377, allocations: 1.994 MB / 0.9868 GB, free: 0.707 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0005884/1.377, allocations: 73.7 kB / 0.9869 GB, free: 0.6289 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.001574/1.379, allocations: 1.412 MB / 0.9883 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.00132/1.38, allocations: 0.647 MB / 0.9889 GB, free: 14.59 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001233/1.382, allocations: 391.2 kB / 0.9893 GB, free: 14.2 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001032/1.382, allocations: 301.1 kB / 0.9896 GB, free: 13.9 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.383, allocations: 0.8091 MB / 0.9903 GB, free: 13.08 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00222/1.385, allocations: 1.433 MB / 0.9917 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003699/1.389, allocations: 2.252 MB / 0.9939 GB, free: 9.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.956e-05/1.389, allocations: 4 kB / 0.9939 GB, free: 9.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005071/1.394, allocations: 2.487 MB / 0.9964 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/1.394, allocations: 8 kB / 0.9964 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/1.394, allocations: 16.88 kB / 0.9964 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.511e-05/1.394, allocations: 23.94 kB / 0.9964 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/1.397, allocations: 0.5605 MB / 0.997 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/1.399, allocations: 4.152 MB / 1.001 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/1.402, allocations: 227.9 kB / 1.001 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/1.402, allocations: 91.92 kB / 1.001 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002555/1.405, allocations: 1.463 MB / 1.003 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001776/1.407, allocations: 1.425 MB / 1.004 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003043/1.41, allocations: 2.231 MB / 1.006 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.678e-06/1.41, allocations: 4 kB / 1.006 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.004122/1.414, allocations: 2.47 MB / 1.009 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/1.414, allocations: 12.94 kB / 1.009 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/1.414, allocations: 12 kB / 1.009 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.476e-05/1.414, allocations: 24 kB / 1.009 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001806/1.416, allocations: 478.3 kB / 1.009 GB, free: 9.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-05/1.416, allocations: 29.06 kB / 1.009 GB, free: 8.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/1.419, allocations: 192.8 kB / 1.009 GB, free: 8.797 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/1.419, allocations: 87.98 kB / 1.01 GB, free: 8.711 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.0005084/1.419, allocations: 322.8 kB / 1.01 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000726/1.42, allocations: 268.8 kB / 1.01 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/1.424, allocations: 2.099 MB / 1.012 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/1.424, allocations: 16 kB / 1.012 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.424, allocations: 0 / 1.012 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002601/1.426, allocations: 1.875 MB / 1.014 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009677/1.436, allocations: 5.162 MB / 1.019 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/1.436, allocations: 4.375 kB / 1.019 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002549/1.438, allocations: 0.5018 MB / 1.02 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.533e-05/1.439, allocations: 8 kB / 1.02 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001727/1.439, allocations: 55.97 kB / 1.02 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/1.441, allocations: 4.131 MB / 1.024 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/1.441, allocations: 4 kB / 1.024 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00644/1.447, allocations: 3.366 MB / 1.027 GB, free: 6.656 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.449, allocations: 0.5638 MB / 1.027 GB, free: 6.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006315/1.45, allocations: 44 kB / 1.028 GB, free: 6.027 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/1.452, allocations: 79.92 kB / 1.028 GB, free: 5.949 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/1.452, allocations: 112.5 kB / 1.028 GB, free: 5.844 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/1.452, allocations: 83.91 kB / 1.028 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002427/1.455, allocations: 1.33 MB / 1.029 GB, free: 4.422 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/1.455, allocations: 0 / 1.029 GB, free: 4.422 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004698/1.46, allocations: 1.714 MB / 1.031 GB, free: 2.703 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.0007948/1.46, allocations: 368.3 kB / 1.031 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.01004/1.47, allocations: 4.638 MB / 1.036 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/1.47, allocations: 4 kB / 1.036 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001875/1.472, allocations: 1.022 MB / 1.037 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00754/1.48, allocations: 1.543 MB / 1.038 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/1.49, allocations: 6.553 MB / 1.045 GB, free: 4.812 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/1.493, allocations: 2.193 MB / 1.047 GB, free: 2.586 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.004135/1.497, allocations: 1.088 MB / 1.048 GB, free: 1.492 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/1.498, allocations: 215.3 kB / 1.048 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of SimCode: time 7.31e-07/1.498, allocations: 4 kB / 1.048 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of Templates: time 0.09115/1.589, allocations: 54.38 MB / 1.101 GB, free: 11.72 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)