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.889/0.889, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001241/0.001241, allocations: 179.8 kB / 182.2 MB, free: 9.457 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.532/1.532, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.001/0.001, allocations: 95.84 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 280.2 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.355e-05, allocations: 4 kB / 0.6766 GB, free: 12.75 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5121/0.5121, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.126/5.639, allocations: 1.939 GB / 2.697 GB, free: 117.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/5.639, allocations: 79.95 kB / 2.697 GB, free: 117.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.579/13.22, allocations: 2.041 GB / 4.737 GB, free: 408 kB / 0.7605 GB Notification: Performance of FrontEnd: time 2.094e-06/13.22, allocations: 0 / 4.737 GB, free: 408 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0002602/13.22, allocations: 91.91 kB / 4.737 GB, free: 316 kB / 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.01086/13.23, allocations: 3.471 MB / 4.741 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/13.23, allocations: 8.031 kB / 4.741 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007049/13.24, allocations: 0.9283 MB / 4.742 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008114/13.24, allocations: 2.847 MB / 4.745 GB, free: 8.914 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/13.24, allocations: 168.8 kB / 4.745 GB, free: 8.734 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007426/13.25, allocations: 179.9 kB / 4.745 GB, free: 8.559 MB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004827/13.25, allocations: 2.428 MB / 4.747 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00521/13.26, allocations: 2.744 MB / 4.75 GB, free: 3.301 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.237e-05/13.26, allocations: 7.938 kB / 4.75 GB, free: 3.293 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/13.26, allocations: 7.984 kB / 4.75 GB, free: 3.285 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/13.26, allocations: 97.34 kB / 4.75 GB, free: 3.188 MB / 0.7761 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.6074/13.86, allocations: 12.67 MB / 4.762 GB, free: 63.27 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/13.87, allocations: 1.697 MB / 4.764 GB, free: 63.23 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/13.87, allocations: 1.004 MB / 4.765 GB, free: 63.22 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004337/13.87, allocations: 328 kB / 4.765 GB, free: 62.93 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/13.87, allocations: 63.03 kB / 4.765 GB, free: 62.89 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=182): time 3.827e-06/13.87, allocations: 1.969 kB / 4.765 GB, free: 62.89 MB / 0.7761 GB Notification: Performance of matching and sorting (n=182): time 0.003688/13.87, allocations: 1.841 MB / 4.767 GB, free: 62.69 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/13.87, allocations: 71.53 kB / 4.767 GB, free: 62.62 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002068/13.87, allocations: 1.417 MB / 4.769 GB, free: 62.42 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002586/13.87, allocations: 29.3 kB / 4.769 GB, free: 62.39 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008733/13.87, allocations: 1.403 MB / 4.77 GB, free: 61.97 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005991/13.88, allocations: 0.6199 MB / 4.771 GB, free: 61.64 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.02e-05/13.88, allocations: 4.875 kB / 4.771 GB, free: 61.64 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001156/13.88, allocations: 384.5 kB / 4.771 GB, free: 61.34 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009828/13.88, allocations: 0.7286 MB / 4.772 GB, free: 61.33 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/13.88, allocations: 1.373 MB / 4.773 GB, free: 60.57 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/13.88, allocations: 0.9912 MB / 4.774 GB, free: 60.54 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/13.88, allocations: 3.844 kB / 4.774 GB, free: 60.54 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003617/13.88, allocations: 2.224 MB / 4.776 GB, free: 60.34 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001039/13.88, allocations: 5.475 MB / 4.782 GB, free: 54.49 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/13.88, allocations: 12.84 kB / 4.782 GB, free: 54.49 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.813e-05/13.88, allocations: 28.3 kB / 4.782 GB, free: 54.49 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/13.89, allocations: 0.5208 MB / 4.782 GB, free: 54.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/13.89, allocations: 4.173 MB / 4.786 GB, free: 50.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003965/13.89, allocations: 310.6 kB / 4.786 GB, free: 50.35 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/13.89, allocations: 94.08 kB / 4.787 GB, free: 50.35 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/13.89, allocations: 7.594 kB / 4.787 GB, free: 50.35 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002904/13.89, allocations: 1.914 MB / 4.788 GB, free: 50.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/13.89, allocations: 13.06 kB / 4.788 GB, free: 50.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/13.89, allocations: 28.73 kB / 4.788 GB, free: 50.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/13.9, allocations: 477.5 kB / 4.789 GB, free: 50.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/13.9, allocations: 31 kB / 4.789 GB, free: 50.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/13.9, allocations: 284.9 kB / 4.789 GB, free: 50.26 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/13.9, allocations: 87.38 kB / 4.789 GB, free: 50.26 MB / 0.7761 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.0006105/13.9, allocations: 167.5 kB / 4.789 GB, free: 50.15 MB / 0.7761 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003206/13.9, allocations: 1.746 MB / 4.791 GB, free: 49.95 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/13.9, allocations: 258.8 kB / 4.791 GB, free: 49.82 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003247/13.91, allocations: 1.882 MB / 4.793 GB, free: 49.7 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/13.91, allocations: 16.91 kB / 4.793 GB, free: 49.7 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/13.91, allocations: 0 / 4.793 GB, free: 49.7 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001987/13.91, allocations: 1.721 MB / 4.795 GB, free: 49.4 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008657/13.92, allocations: 4.635 MB / 4.799 GB, free: 48.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/13.92, allocations: 4.031 kB / 4.8 GB, free: 48.92 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002301/13.92, allocations: 0.5045 MB / 4.8 GB, free: 48.92 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.526e-05/13.92, allocations: 17.62 kB / 4.8 GB, free: 48.92 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/13.92, allocations: 33.73 kB / 4.8 GB, free: 48.92 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/13.92, allocations: 4.135 MB / 4.804 GB, free: 44.82 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/13.92, allocations: 7.422 kB / 4.804 GB, free: 44.82 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004478/13.93, allocations: 3.343 MB / 4.807 GB, free: 44.08 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/13.93, allocations: 0.5521 MB / 4.808 GB, free: 43.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008277/13.93, allocations: 11.5 kB / 4.808 GB, free: 43.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003497/13.93, allocations: 221.7 kB / 4.808 GB, free: 43.84 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/13.93, allocations: 115.9 kB / 4.808 GB, free: 43.84 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/13.93, allocations: 75.95 kB / 4.808 GB, free: 43.84 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.002727/13.94, allocations: 1.053 MB / 4.809 GB, free: 43.69 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6.51e-07/13.94, allocations: 0 / 4.809 GB, free: 43.69 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.009345/13.95, allocations: 1.917 MB / 4.811 GB, free: 43.55 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.01677/13.96, allocations: 9.758 MB / 4.821 GB, free: 39.44 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.007551/13.97, allocations: 3.055 MB / 4.824 GB, free: 39.38 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/13.97, allocations: 1.719 kB / 4.824 GB, free: 39.38 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001876/13.97, allocations: 0.9465 MB / 4.825 GB, free: 39.38 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008926/13.98, allocations: 1.437 MB / 4.826 GB, free: 39.35 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/14, allocations: 6.141 MB / 4.832 GB, free: 38 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/14, allocations: 2.246 MB / 4.834 GB, free: 37.24 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.006453/14.01, allocations: 1.26 MB / 4.835 GB, free: 37.21 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002114/14.01, allocations: 1.212 MB / 4.837 GB, free: 37.21 MB / 0.7761 GB Notification: Performance of SimCode: time 9.82e-07/14.01, allocations: 1.156 kB / 4.837 GB, free: 37.21 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1759/14.19, allocations: 104.7 MB / 4.939 GB, free: 31.88 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/14.19, allocations: 195.9 kB / 4.939 GB, free: 31.68 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.955/20.14, allocations: 0 / 4.939 GB, free: 31.68 MB / 0.7761 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)