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/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_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_dev_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.001035/0.001034, allocations: 174.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7207/0.7207, allocations: 133.4 MB / 146.7 MB, free: 10.77 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 221.3 MB / 400.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000902/0.000902, allocations: 91.47 kB / 483.3 MB, free: 5.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.55e-05/4.553e-05, allocations: 7.234 kB / 0.5601 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.211, allocations: 82.31 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.215/6.426, allocations: 1.943 GB / 2.583 GB, free: 198.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/6.426, allocations: 93.11 kB / 2.583 GB, free: 198.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 7.785/14.21, allocations: 2.063 GB / 4.647 GB, free: 47.03 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.594e-06/14.21, allocations: 0 / 4.647 GB, free: 47.03 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0005564/14.21, allocations: 100.3 kB / 4.647 GB, free: 47 MB / 0.7448 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.01182/14.22, allocations: 3.485 MB / 4.65 GB, free: 45.24 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/14.22, allocations: 11.56 kB / 4.65 GB, free: 45.24 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001539/14.23, allocations: 383.3 kB / 4.65 GB, free: 45.19 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007259/14.23, allocations: 0.9292 MB / 4.651 GB, free: 44.97 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0098/14.24, allocations: 2.885 MB / 4.654 GB, free: 43.74 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/14.24, allocations: 285.1 kB / 4.654 GB, free: 43.66 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/14.24, allocations: 297.4 kB / 4.655 GB, free: 43.66 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0087/14.25, allocations: 3.132 MB / 4.658 GB, free: 42.94 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/14.25, allocations: 4 kB / 4.658 GB, free: 42.94 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006665/14.25, allocations: 119.8 kB / 4.658 GB, free: 42.93 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/14.25, allocations: 102.5 kB / 4.658 GB, free: 42.92 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004911/14.26, allocations: 2.564 MB / 4.661 GB, free: 42.21 MB / 0.7448 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.01668/14.28, allocations: 13.2 MB / 4.673 GB, free: 28.61 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/14.28, allocations: 1.762 MB / 4.675 GB, free: 26.86 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/14.28, allocations: 1.055 MB / 4.676 GB, free: 25.8 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004907/14.28, allocations: 325.2 kB / 4.676 GB, free: 25.43 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/14.28, allocations: 60.55 kB / 4.677 GB, free: 25.36 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=182): time 3.847e-06/14.28, allocations: 0 / 4.677 GB, free: 25.36 MB / 0.7448 GB Notification: Performance of matching and sorting (n=182): time 0.004164/14.28, allocations: 1.944 MB / 4.678 GB, free: 23.41 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/14.28, allocations: 69.41 kB / 4.679 GB, free: 23.32 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/14.29, allocations: 1.688 MB / 4.68 GB, free: 21.62 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0003011/14.29, allocations: 73.7 kB / 4.68 GB, free: 21.54 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007616/14.29, allocations: 1.409 MB / 4.682 GB, free: 20.11 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005635/14.29, allocations: 0.6392 MB / 4.682 GB, free: 19.46 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.424e-05/14.29, allocations: 40 kB / 4.682 GB, free: 19.42 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001243/14.29, allocations: 397.9 kB / 4.683 GB, free: 19.02 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/14.29, allocations: 0.7498 MB / 4.683 GB, free: 18.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/14.29, allocations: 1.428 MB / 4.685 GB, free: 16.54 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/14.29, allocations: 1.035 MB / 4.686 GB, free: 15.51 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/14.29, allocations: 4 kB / 4.686 GB, free: 15.51 MB / 0.7448 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003662/14.3, allocations: 2.404 MB / 4.688 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001232/14.3, allocations: 5.533 MB / 4.694 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/14.3, allocations: 19.84 kB / 4.694 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.945e-05/14.3, allocations: 24 kB / 4.694 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/14.3, allocations: 0.511 MB / 4.694 GB, free: 6.5 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/14.3, allocations: 4.145 MB / 4.698 GB, free: 2.191 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/14.31, allocations: 377.9 kB / 4.698 GB, free: 1.82 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003188/14.31, allocations: 87.98 kB / 4.699 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/14.31, allocations: 7.953 kB / 4.699 GB, free: 1.727 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003205/14.31, allocations: 2.14 MB / 4.701 GB, free: 15.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/14.31, allocations: 16 kB / 4.701 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.993e-05/14.31, allocations: 27.94 kB / 4.701 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001776/14.31, allocations: 471.3 kB / 4.701 GB, free: 15.08 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.901e-05/14.31, allocations: 31.92 kB / 4.701 GB, free: 15.05 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004021/14.32, allocations: 350.1 kB / 4.702 GB, free: 14.71 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/14.32, allocations: 87.98 kB / 4.702 GB, free: 14.62 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.0007321/14.32, allocations: 243.9 kB / 4.702 GB, free: 14.38 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009654/14.32, allocations: 272.8 kB / 4.702 GB, free: 14.11 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004047/14.32, allocations: 2.038 MB / 4.704 GB, free: 12.06 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/14.32, allocations: 16 kB / 4.704 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/14.32, allocations: 0 / 4.704 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002608/14.32, allocations: 1.82 MB / 4.706 GB, free: 10.18 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/14.33, allocations: 5.084 MB / 4.711 GB, free: 4.992 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-06/14.33, allocations: 0 / 4.711 GB, free: 4.992 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002352/14.34, allocations: 0.507 MB / 4.711 GB, free: 4.488 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-05/14.34, allocations: 16.16 kB / 4.711 GB, free: 4.473 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/14.34, allocations: 47.97 kB / 4.711 GB, free: 4.426 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/14.34, allocations: 4.126 MB / 4.715 GB, free: 140 kB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/14.34, allocations: 4.031 kB / 4.715 GB, free: 136 kB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00519/14.34, allocations: 3.503 MB / 4.719 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002157/14.35, allocations: 0.5638 MB / 4.719 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006365/14.35, allocations: 44 kB / 4.719 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002797/14.35, allocations: 255.3 kB / 4.72 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/14.35, allocations: 117.8 kB / 4.72 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/14.35, allocations: 71.97 kB / 4.72 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002267/14.35, allocations: 1.286 MB / 4.721 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.1e-07/14.35, allocations: 0 / 4.721 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006997/14.36, allocations: 2.14 MB / 4.723 GB, free: 7.988 MB / 0.7761 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.5682/14.93, allocations: 9.437 MB / 4.732 GB, free: 87.62 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.007749/14.94, allocations: 3.216 MB / 4.736 GB, free: 87.57 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/14.94, allocations: 3.062 kB / 4.736 GB, free: 87.57 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.002081/14.94, allocations: 0.9809 MB / 4.737 GB, free: 87.57 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009487/14.95, allocations: 1.579 MB / 4.738 GB, free: 87.54 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/14.96, allocations: 6.357 MB / 4.744 GB, free: 86.19 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/14.97, allocations: 2.257 MB / 4.746 GB, free: 85.43 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.006901/14.97, allocations: 1.339 MB / 4.748 GB, free: 85.4 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002205/14.98, allocations: 1.223 MB / 4.749 GB, free: 85.4 MB / 0.7761 GB Notification: Performance of SimCode: time 1.513e-06/14.98, allocations: 3.375 kB / 4.749 GB, free: 85.4 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2442/15.22, allocations: 151.1 MB / 4.897 GB, free: 71.95 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/15.22, allocations: 225.3 kB / 4.897 GB, free: 71.72 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/23.22, allocations: 4.391 kB / 4.897 GB, free: 71.72 MB / 0.7761 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IDEAS_dev_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)