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.001454/0.001454, allocations: 173.9 kB / 7.648 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.9099/0.9099, allocations: 133.6 MB / 141.6 MB, free: 2.938 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.487/1.487, allocations: 221.5 MB / 395.5 MB, free: 10.79 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.0008876/0.0008878, allocations: 101.7 kB / 478.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.381e-05/2.382e-05, allocations: 4 kB / 0.5535 GB, free: 8.973 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5462/0.5462, allocations: 82.3 MB / 0.6339 GB, free: 40.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.429/5.975, allocations: 1.942 GB / 2.576 GB, free: 95.22 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/5.976, allocations: 95.45 kB / 2.576 GB, free: 95.13 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.695/14.67, allocations: 2.041 GB / 4.617 GB, free: 62.33 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.643e-06/14.67, allocations: 1.375 kB / 4.617 GB, free: 62.33 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0004827/14.67, allocations: 92.94 kB / 4.617 GB, free: 62.33 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.01308/14.68, allocations: 3.485 MB / 4.621 GB, free: 61.18 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/14.68, allocations: 7.062 kB / 4.621 GB, free: 61.18 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008335/14.69, allocations: 0.9275 MB / 4.622 GB, free: 60.98 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01002/14.7, allocations: 2.889 MB / 4.625 GB, free: 60.55 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/14.7, allocations: 176 kB / 4.625 GB, free: 60.48 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00144/14.7, allocations: 176.2 kB / 4.625 GB, free: 60.47 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006898/14.71, allocations: 2.431 MB / 4.627 GB, free: 60.46 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00655/14.72, allocations: 2.74 MB / 4.63 GB, free: 60.21 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.009e-05/14.72, allocations: 0 / 4.63 GB, free: 60.21 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002561/14.72, allocations: 3.844 kB / 4.63 GB, free: 60.21 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/14.72, allocations: 108 kB / 4.63 GB, free: 60.21 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.01568/14.73, allocations: 12.68 MB / 4.642 GB, free: 53.13 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/14.74, allocations: 1.688 MB / 4.644 GB, free: 53.09 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/14.74, allocations: 1.003 MB / 4.645 GB, free: 53.07 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004799/14.74, allocations: 338.5 kB / 4.645 GB, free: 52.79 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/14.74, allocations: 55.25 kB / 4.645 GB, free: 52.74 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=182): time 5.981e-06/14.74, allocations: 3.156 kB / 4.645 GB, free: 52.74 MB / 0.7605 GB Notification: Performance of matching and sorting (n=182): time 0.003896/14.74, allocations: 1.854 MB / 4.647 GB, free: 52.53 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/14.74, allocations: 74.34 kB / 4.647 GB, free: 52.47 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/14.74, allocations: 1.428 MB / 4.649 GB, free: 52.26 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0002778/14.74, allocations: 29.64 kB / 4.649 GB, free: 52.23 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008893/14.75, allocations: 1.406 MB / 4.65 GB, free: 51.66 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005936/14.75, allocations: 0.6277 MB / 4.651 GB, free: 51.25 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/14.75, allocations: 0 / 4.651 GB, free: 51.25 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001243/14.75, allocations: 386.8 kB / 4.651 GB, free: 50.94 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/14.75, allocations: 0.7192 MB / 4.652 GB, free: 50.93 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/14.75, allocations: 1.385 MB / 4.653 GB, free: 50.16 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/14.75, allocations: 0.9868 MB / 4.654 GB, free: 50.14 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/14.75, allocations: 3.625 kB / 4.654 GB, free: 50.14 MB / 0.7605 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003437/14.75, allocations: 2.228 MB / 4.656 GB, free: 49.94 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001105/14.75, allocations: 5.49 MB / 4.662 GB, free: 44.09 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/14.75, allocations: 14.41 kB / 4.662 GB, free: 44.09 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.546e-05/14.75, allocations: 24.44 kB / 4.662 GB, free: 44.09 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00229/14.76, allocations: 0.514 MB / 4.662 GB, free: 44.09 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/14.76, allocations: 4.172 MB / 4.666 GB, free: 40 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/14.76, allocations: 311.3 kB / 4.667 GB, free: 39.91 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/14.76, allocations: 102.6 kB / 4.667 GB, free: 39.9 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/14.76, allocations: 5.016 kB / 4.667 GB, free: 39.9 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00282/14.77, allocations: 1.916 MB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/14.77, allocations: 11.09 kB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.948e-05/14.77, allocations: 26.03 kB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/14.77, allocations: 479 kB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.659e-05/14.77, allocations: 30.45 kB / 4.669 GB, free: 39.86 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003492/14.77, allocations: 283.9 kB / 4.669 GB, free: 39.78 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/14.77, allocations: 93.39 kB / 4.669 GB, free: 39.78 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.0005343/14.77, allocations: 161.8 kB / 4.67 GB, free: 39.66 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002518/14.77, allocations: 1.765 MB / 4.671 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/14.77, allocations: 253.6 kB / 4.672 GB, free: 39.33 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/14.78, allocations: 1.878 MB / 4.673 GB, free: 39.21 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/14.78, allocations: 19.5 kB / 4.673 GB, free: 39.21 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/14.78, allocations: 0 / 4.673 GB, free: 39.21 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002065/14.78, allocations: 1.723 MB / 4.675 GB, free: 38.91 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007621/14.79, allocations: 4.649 MB / 4.68 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-06/14.79, allocations: 2.75 kB / 4.68 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/14.79, allocations: 0.5026 MB / 4.68 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/14.79, allocations: 10.69 kB / 4.68 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/14.79, allocations: 40.33 kB / 4.68 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/14.79, allocations: 4.129 MB / 4.684 GB, free: 34.31 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/14.79, allocations: 7.656 kB / 4.684 GB, free: 34.31 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/14.79, allocations: 3.352 MB / 4.687 GB, free: 33.56 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/14.8, allocations: 0.5435 MB / 4.688 GB, free: 33.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003244/14.8, allocations: 20 kB / 4.688 GB, free: 33.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/14.8, allocations: 218.8 kB / 4.688 GB, free: 33.3 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/14.8, allocations: 115.4 kB / 4.688 GB, free: 33.29 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/14.8, allocations: 71.97 kB / 4.688 GB, free: 33.29 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.001541/14.8, allocations: 1.065 MB / 4.689 GB, free: 33.15 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.5e-07/14.8, allocations: 0 / 4.689 GB, free: 33.15 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.005314/14.81, allocations: 1.921 MB / 4.691 GB, free: 32.88 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.01147/14.82, allocations: 9.746 MB / 4.701 GB, free: 28.73 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.006147/14.82, allocations: 3.056 MB / 4.704 GB, free: 28.67 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/14.82, allocations: 0 / 4.704 GB, free: 28.67 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001542/14.82, allocations: 0.944 MB / 4.705 GB, free: 28.66 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007946/14.83, allocations: 1.442 MB / 4.706 GB, free: 28.63 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/14.84, allocations: 6.154 MB / 4.712 GB, free: 27.27 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/14.85, allocations: 2.264 MB / 4.714 GB, free: 26.5 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.004596/14.85, allocations: 1.258 MB / 4.716 GB, free: 26.48 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/14.85, allocations: 1.222 MB / 4.717 GB, free: 26.47 MB / 0.7605 GB Notification: Performance of SimCode: time 1.232e-06/14.85, allocations: 0 / 4.717 GB, free: 26.47 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/15.03, allocations: 104.9 MB / 4.819 GB, free: 10.83 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/15.03, allocations: 167.6 kB / 4.819 GB, free: 10.64 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.374/21.4, allocations: 1.438 kB / 4.819 GB, free: 10.64 MB / 0.7605 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)