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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7829/0.7829, allocations: 133.6 MB / 141.6 MB, free: 2.91 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 221.5 MB / 395.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008859/0.0008859, allocations: 107.3 kB / 478.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.707e-05, allocations: 0 / 0.5536 GB, free: 8.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5543/0.5544, allocations: 82.3 MB / 0.6339 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.516/6.071, allocations: 1.942 GB / 2.576 GB, free: 94.42 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/6.071, allocations: 87.95 kB / 2.576 GB, free: 94.34 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.938/15.01, allocations: 2.041 GB / 4.617 GB, free: 62.42 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.543e-06/15.01, allocations: 2.156 kB / 4.617 GB, free: 62.42 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.00054/15.01, allocations: 98.52 kB / 4.617 GB, free: 62.42 MB / 0.7605 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.01598/15.03, allocations: 3.485 MB / 4.621 GB, free: 61.27 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/15.03, allocations: 10.22 kB / 4.621 GB, free: 61.27 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/15.04, allocations: 0.925 MB / 4.622 GB, free: 61.07 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01443/15.05, allocations: 2.894 MB / 4.625 GB, free: 60.64 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005896/15.05, allocations: 170.1 kB / 4.625 GB, free: 60.57 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00184/15.05, allocations: 178.8 kB / 4.625 GB, free: 60.57 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01059/15.07, allocations: 2.431 MB / 4.627 GB, free: 60.55 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/15.08, allocations: 2.742 MB / 4.63 GB, free: 60.31 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001827/15.08, allocations: 9.781 kB / 4.63 GB, free: 60.31 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009898/15.08, allocations: 2.406 kB / 4.63 GB, free: 60.31 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/15.08, allocations: 103.1 kB / 4.63 GB, free: 60.3 MB / 0.7605 GB Warning: The model contains alias variables with conflicting start and/or 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.028/15.11, allocations: 12.68 MB / 4.642 GB, free: 53.21 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003712/15.11, allocations: 1.691 MB / 4.644 GB, free: 53.18 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/15.11, allocations: 1.007 MB / 4.645 GB, free: 53.15 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006903/15.11, allocations: 329.6 kB / 4.645 GB, free: 52.87 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.149e-05/15.11, allocations: 56.03 kB / 4.645 GB, free: 52.83 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=182): time 7.574e-06/15.11, allocations: 6.438 kB / 4.645 GB, free: 52.83 MB / 0.7605 GB Notification: Performance of matching and sorting (n=182): time 0.00623/15.12, allocations: 1.852 MB / 4.647 GB, free: 52.62 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/15.12, allocations: 71.78 kB / 4.647 GB, free: 52.55 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004706/15.12, allocations: 1.43 MB / 4.649 GB, free: 52.34 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.000843/15.13, allocations: 29.61 kB / 4.649 GB, free: 52.31 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.001531/15.13, allocations: 1.407 MB / 4.65 GB, free: 51.75 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.001244/15.13, allocations: 0.6235 MB / 4.651 GB, free: 51.33 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/15.13, allocations: 0 / 4.651 GB, free: 51.33 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001698/15.13, allocations: 387.7 kB / 4.651 GB, free: 51.03 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/15.13, allocations: 0.7174 MB / 4.652 GB, free: 51.02 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/15.13, allocations: 1.393 MB / 4.653 GB, free: 50.25 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00213/15.13, allocations: 0.9834 MB / 4.654 GB, free: 50.23 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/15.13, allocations: 3.938 kB / 4.654 GB, free: 50.23 MB / 0.7605 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005608/15.14, allocations: 2.227 MB / 4.656 GB, free: 50.03 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001291/15.14, allocations: 5.494 MB / 4.662 GB, free: 44.18 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.228e-05/15.14, allocations: 14 kB / 4.662 GB, free: 44.18 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.588e-05/15.14, allocations: 24.03 kB / 4.662 GB, free: 44.18 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004067/15.15, allocations: 0.5155 MB / 4.662 GB, free: 44.18 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/15.15, allocations: 4.176 MB / 4.666 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006092/15.15, allocations: 314.4 kB / 4.667 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005446/15.15, allocations: 92.97 kB / 4.667 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/15.15, allocations: 4.75 kB / 4.667 GB, free: 39.99 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004961/15.16, allocations: 1.913 MB / 4.669 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/15.16, allocations: 15.06 kB / 4.669 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.156e-05/15.16, allocations: 24.78 kB / 4.669 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/15.16, allocations: 472.8 kB / 4.669 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.286e-05/15.16, allocations: 30.73 kB / 4.669 GB, free: 39.94 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006679/15.17, allocations: 291.5 kB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006553/15.17, allocations: 87.7 kB / 4.669 GB, free: 39.86 MB / 0.7605 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 () * 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 (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.0008983/15.17, allocations: 165.4 kB / 4.67 GB, free: 39.75 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005087/15.18, allocations: 1.753 MB / 4.671 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/15.18, allocations: 259.9 kB / 4.672 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005222/15.18, allocations: 1.885 MB / 4.673 GB, free: 39.3 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/15.18, allocations: 16.69 kB / 4.673 GB, free: 39.3 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/15.18, allocations: 0 / 4.673 GB, free: 39.3 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00352/15.19, allocations: 1.716 MB / 4.675 GB, free: 39 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/15.2, allocations: 4.646 MB / 4.68 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.936e-05/15.2, allocations: 3 kB / 4.68 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00351/15.21, allocations: 0.5043 MB / 4.68 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.33e-05/15.21, allocations: 7.438 kB / 4.68 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002611/15.21, allocations: 39.92 kB / 4.68 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/15.21, allocations: 4.13 MB / 4.684 GB, free: 34.4 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-05/15.21, allocations: 8.172 kB / 4.684 GB, free: 34.4 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006768/15.21, allocations: 3.356 MB / 4.687 GB, free: 33.64 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/15.22, allocations: 0.5513 MB / 4.688 GB, free: 33.4 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/15.22, allocations: 13.41 kB / 4.688 GB, free: 33.4 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004852/15.22, allocations: 215.5 kB / 4.688 GB, free: 33.38 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004937/15.22, allocations: 120.9 kB / 4.688 GB, free: 33.38 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004072/15.22, allocations: 71.42 kB / 4.688 GB, free: 33.38 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.003265/15.23, allocations: 1.063 MB / 4.689 GB, free: 33.23 MB / 0.7605 GB Notification: Performance of sort global known variables: time 4.31e-07/15.23, allocations: 3.062 kB / 4.689 GB, free: 33.23 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0109/15.24, allocations: 1.921 MB / 4.691 GB, free: 32.96 MB / 0.7605 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 () * 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 (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.02171/15.26, allocations: 9.751 MB / 4.701 GB, free: 28.81 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.008742/15.27, allocations: 3.06 MB / 4.704 GB, free: 28.75 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/15.27, allocations: 5.438 kB / 4.704 GB, free: 28.75 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.002228/15.27, allocations: 0.9397 MB / 4.705 GB, free: 28.75 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009503/15.28, allocations: 1.447 MB / 4.706 GB, free: 28.71 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/15.3, allocations: 6.159 MB / 4.712 GB, free: 27.34 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004016/15.3, allocations: 2.255 MB / 4.714 GB, free: 26.58 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.007183/15.31, allocations: 1.266 MB / 4.716 GB, free: 26.55 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002711/15.31, allocations: 1.218 MB / 4.717 GB, free: 26.54 MB / 0.7605 GB Notification: Performance of SimCode: time 1.513e-06/15.31, allocations: 5.297 kB / 4.717 GB, free: 26.54 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1852/15.5, allocations: 104.9 MB / 4.819 GB, free: 10.14 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/15.5, allocations: 162.8 kB / 4.819 GB, free: 9.945 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.43/21.93, allocations: 0 / 4.819 GB, free: 9.945 MB / 0.7605 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)