Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9807/0.9807, allocations: 143.4 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001375, allocations: 181 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.68/1.68, allocations: 223.2 MB / 447.7 MB, free: 4.812 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.001101/0.001101, allocations: 92.28 kB / 0.5187 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002285/0.002285, allocations: 276.4 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004863/0.0004864, allocations: 13.66 kB / 0.6929 GB, free: 59.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2162, allocations: 82.79 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.53/5.746, allocations: 1.94 GB / 2.714 GB, free: 137.6 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/5.746, allocations: 95.95 kB / 2.714 GB, free: 137.5 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 8.315/14.06, allocations: 2.064 GB / 4.778 GB, free: 36.03 MB / 0.7605 GB Notification: Performance of FrontEnd: time 3.146e-06/14.06, allocations: 0 / 4.778 GB, free: 36.03 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0003734/14.06, allocations: 98.38 kB / 4.778 GB, free: 35.94 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.01519/14.08, allocations: 3.968 MB / 4.782 GB, free: 31.91 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 6.242e-05/14.08, allocations: 8.031 kB / 4.782 GB, free: 31.9 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002029/14.08, allocations: 387.6 kB / 4.782 GB, free: 31.52 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007364/14.09, allocations: 0.9264 MB / 4.783 GB, free: 30.59 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/14.1, allocations: 2.865 MB / 4.786 GB, free: 27.65 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005586/14.1, allocations: 285.3 kB / 4.786 GB, free: 27.36 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/14.1, allocations: 299.9 kB / 4.787 GB, free: 27.07 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/14.11, allocations: 3.191 MB / 4.79 GB, free: 23.79 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.205e-05/14.11, allocations: 4 kB / 4.79 GB, free: 23.79 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/14.11, allocations: 112 kB / 4.79 GB, free: 23.68 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.7e-05/14.11, allocations: 101.3 kB / 4.79 GB, free: 23.57 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004642/14.12, allocations: 2.64 MB / 4.793 GB, free: 20.92 MB / 0.7605 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.02097/14.14, allocations: 13.19 MB / 4.806 GB, free: 6.59 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002879/14.14, allocations: 1.797 MB / 4.807 GB, free: 4.801 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005188/14.14, allocations: 325.2 kB / 4.808 GB, free: 4.43 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/14.14, allocations: 60.56 kB / 4.808 GB, free: 4.363 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=182): time 4.539e-06/14.14, allocations: 4 kB / 4.808 GB, free: 4.359 MB / 0.7605 GB Notification: Performance of matching and sorting (n=182): time 0.00583/14.15, allocations: 2.678 MB / 4.81 GB, free: 1.68 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/14.15, allocations: 69.41 kB / 4.81 GB, free: 1.598 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00416/14.15, allocations: 1.687 MB / 4.812 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0005083/14.15, allocations: 77.69 kB / 4.812 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.001677/14.15, allocations: 1.415 MB / 4.813 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.001044/14.15, allocations: 0.6353 MB / 4.814 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/14.15, allocations: 40 kB / 4.814 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003094/14.15, allocations: 389.8 kB / 4.814 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/14.16, allocations: 0.7809 MB / 4.815 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002386/14.16, allocations: 1.457 MB / 4.817 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002036/14.16, allocations: 1.045 MB / 4.818 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.671e-05/14.16, allocations: 4 kB / 4.818 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.005252/14.17, allocations: 2.447 MB / 4.82 GB, free: 7.262 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.002872/14.17, allocations: 5.514 MB / 4.825 GB, free: 1.227 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.726e-05/14.17, allocations: 12 kB / 4.825 GB, free: 1.215 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.967e-05/14.17, allocations: 31.95 kB / 4.825 GB, free: 1.184 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/14.17, allocations: 0.5069 MB / 4.826 GB, free: 0.6797 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/14.17, allocations: 4.165 MB / 4.83 GB, free: 12.35 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006063/14.18, allocations: 373.8 kB / 4.83 GB, free: 11.98 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009503/14.18, allocations: 87.98 kB / 4.83 GB, free: 11.9 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/14.18, allocations: 5.719 kB / 4.83 GB, free: 11.89 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006738/14.19, allocations: 2.179 MB / 4.833 GB, free: 9.715 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.261e-05/14.19, allocations: 23.27 kB / 4.833 GB, free: 9.695 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.792e-05/14.19, allocations: 28.16 kB / 4.833 GB, free: 9.668 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002198/14.19, allocations: 467.3 kB / 4.833 GB, free: 9.211 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.622e-05/14.19, allocations: 35.83 kB / 4.833 GB, free: 9.176 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004294/14.2, allocations: 354 kB / 4.833 GB, free: 8.828 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003803/14.2, allocations: 87.98 kB / 4.834 GB, free: 8.742 MB / 0.7917 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 (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.00287/14.2, allocations: 0.8557 MB / 4.834 GB, free: 7.875 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001242/14.2, allocations: 264.8 kB / 4.835 GB, free: 7.613 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004705/14.2, allocations: 2.086 MB / 4.837 GB, free: 5.52 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/14.2, allocations: 24 kB / 4.837 GB, free: 5.496 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/14.2, allocations: 3.953 kB / 4.837 GB, free: 5.492 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00303/14.21, allocations: 1.852 MB / 4.839 GB, free: 3.586 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7154/14.92, allocations: 5.114 MB / 4.844 GB, free: 79.94 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/14.92, allocations: 2.562 kB / 4.844 GB, free: 79.94 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/14.93, allocations: 0.5071 MB / 4.844 GB, free: 79.94 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.157e-05/14.93, allocations: 10.78 kB / 4.844 GB, free: 79.94 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/14.93, allocations: 51.73 kB / 4.844 GB, free: 79.94 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/14.93, allocations: 4.123 MB / 4.848 GB, free: 75.86 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/14.93, allocations: 7.703 kB / 4.848 GB, free: 75.86 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005707/14.93, allocations: 3.546 MB / 4.852 GB, free: 75.26 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/14.94, allocations: 0.5651 MB / 4.852 GB, free: 75.15 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005533/14.94, allocations: 40.89 kB / 4.852 GB, free: 75.15 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002524/14.94, allocations: 252.3 kB / 4.852 GB, free: 75.14 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/14.94, allocations: 114.3 kB / 4.853 GB, free: 75.13 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/14.94, allocations: 76.12 kB / 4.853 GB, free: 75.13 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.002621/14.94, allocations: 1.293 MB / 4.854 GB, free: 74.98 MB / 0.7917 GB Notification: Performance of sort global known variables: time 2.01e-07/14.94, allocations: 0 / 4.854 GB, free: 74.98 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.008826/14.95, allocations: 2.145 MB / 4.856 GB, free: 74.86 MB / 0.7917 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 (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.01746/14.97, allocations: 9.5 MB / 4.865 GB, free: 70.72 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.008068/14.98, allocations: 3.201 MB / 4.868 GB, free: 70.67 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/14.98, allocations: 3.062 kB / 4.868 GB, free: 70.67 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.001816/14.98, allocations: 1.006 MB / 4.869 GB, free: 70.66 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008878/14.99, allocations: 1.582 MB / 4.871 GB, free: 70.62 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02186/15.01, allocations: 19.25 MB / 4.89 GB, free: 56.64 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/15.01, allocations: 2.242 MB / 4.892 GB, free: 55.89 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.004934/15.02, allocations: 1.089 MB / 4.893 GB, free: 55.86 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/15.02, allocations: 1.25 MB / 4.894 GB, free: 55.85 MB / 0.7917 GB Notification: Performance of SimCode: time 1.512e-06/15.02, allocations: 2.844 kB / 4.894 GB, free: 55.85 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2467/15.26, allocations: 135.7 MB / 5.027 GB, free: 49.79 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/15.26, allocations: 263.5 kB / 5.027 GB, free: 49.43 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/22.61, allocations: 0 / 5.027 GB, free: 49.43 MB / 0.7917 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)