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.6928/0.6928, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 189.8 kB / 187.3 MB, free: 11.88 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.22/1.22, allocations: 221.3 MB / 441.4 MB, free: 4.59 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.000849/0.000849, allocations: 100.1 kB / 0.5124 GB, free: 24.26 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001748/0.001748, allocations: 278.6 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.444e-05/3.454e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3643, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.596/3.961, allocations: 1.94 GB / 2.704 GB, free: 68.89 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/3.961, allocations: 86.58 kB / 2.704 GB, free: 68.85 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.601/10.56, allocations: 2.063 GB / 4.767 GB, free: 63.18 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.343e-06/10.56, allocations: 0 / 4.767 GB, free: 63.18 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 0.0003658/10.56, allocations: 95.11 kB / 4.767 GB, free: 63.18 MB / 0.7761 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.00969/10.57, allocations: 3.479 MB / 4.77 GB, free: 61.97 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/10.57, allocations: 10.88 kB / 4.77 GB, free: 61.97 MB / 0.7761 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001343/10.57, allocations: 392.3 kB / 4.771 GB, free: 61.92 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006562/10.58, allocations: 0.9162 MB / 4.772 GB, free: 61.73 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008504/10.59, allocations: 2.839 MB / 4.774 GB, free: 61.28 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000361/10.59, allocations: 277.9 kB / 4.775 GB, free: 61.21 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/10.59, allocations: 299 kB / 4.775 GB, free: 61.21 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00802/10.6, allocations: 3.131 MB / 4.778 GB, free: 60.95 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001187/10.6, allocations: 5.953 kB / 4.778 GB, free: 60.95 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006504/10.6, allocations: 120.4 kB / 4.778 GB, free: 60.95 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/10.6, allocations: 100.5 kB / 4.778 GB, free: 60.94 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006228/10.61, allocations: 2.559 MB / 4.781 GB, free: 60.91 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.018/10.62, allocations: 13.18 MB / 4.794 GB, free: 53.71 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002657/10.63, allocations: 1.768 MB / 4.795 GB, free: 53.67 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/10.63, allocations: 1.057 MB / 4.796 GB, free: 53.64 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004787/10.63, allocations: 327.8 kB / 4.797 GB, free: 53.36 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/10.63, allocations: 57.97 kB / 4.797 GB, free: 53.32 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=182): time 5.57e-06/10.63, allocations: 1.781 kB / 4.797 GB, free: 53.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=182): time 0.004108/10.63, allocations: 1.94 MB / 4.799 GB, free: 53.11 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/10.63, allocations: 71.91 kB / 4.799 GB, free: 53.04 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003151/10.64, allocations: 1.668 MB / 4.8 GB, free: 52.81 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0002823/10.64, allocations: 72.05 kB / 4.8 GB, free: 52.78 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009349/10.64, allocations: 1.414 MB / 4.802 GB, free: 52.23 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005958/10.64, allocations: 0.6465 MB / 4.802 GB, free: 51.82 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/10.64, allocations: 35.06 kB / 4.802 GB, free: 51.82 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001235/10.64, allocations: 386.1 kB / 4.803 GB, free: 51.52 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/10.64, allocations: 0.756 MB / 4.804 GB, free: 51.51 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/10.64, allocations: 1.44 MB / 4.805 GB, free: 50.74 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/10.64, allocations: 1.024 MB / 4.806 GB, free: 50.71 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/10.64, allocations: 4.156 kB / 4.806 GB, free: 50.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004139/10.65, allocations: 2.402 MB / 4.808 GB, free: 50.5 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.001158/10.65, allocations: 5.517 MB / 4.814 GB, free: 44.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.432e-05/10.65, allocations: 17.09 kB / 4.814 GB, free: 44.65 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.596e-05/10.65, allocations: 29.47 kB / 4.814 GB, free: 44.65 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/10.65, allocations: 0.5128 MB / 4.814 GB, free: 44.65 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/10.65, allocations: 4.155 MB / 4.818 GB, free: 40.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/10.65, allocations: 378.8 kB / 4.819 GB, free: 40.45 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/10.65, allocations: 86.86 kB / 4.819 GB, free: 40.45 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/10.65, allocations: 4.969 kB / 4.819 GB, free: 40.45 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002755/10.66, allocations: 2.141 MB / 4.821 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/10.66, allocations: 12.72 kB / 4.821 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/10.66, allocations: 26.59 kB / 4.821 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/10.66, allocations: 476.7 kB / 4.821 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.225e-05/10.66, allocations: 33.22 kB / 4.821 GB, free: 40.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003021/10.66, allocations: 345.4 kB / 4.822 GB, free: 40.32 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/10.66, allocations: 92.05 kB / 4.822 GB, free: 40.32 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.0004379/10.66, allocations: 236.1 kB / 4.822 GB, free: 40.21 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006382/10.66, allocations: 270.4 kB / 4.822 GB, free: 40.07 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/10.67, allocations: 2.035 MB / 4.824 GB, free: 39.95 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/10.67, allocations: 17.88 kB / 4.824 GB, free: 39.95 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/10.67, allocations: 0 / 4.824 GB, free: 39.95 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002064/10.67, allocations: 1.818 MB / 4.826 GB, free: 39.65 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008157/10.68, allocations: 5.077 MB / 4.831 GB, free: 39.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/10.68, allocations: 3.656 kB / 4.831 GB, free: 39.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/10.68, allocations: 0.5075 MB / 4.832 GB, free: 39.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.508e-05/10.68, allocations: 10.12 kB / 4.832 GB, free: 39.11 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/10.68, allocations: 56.53 kB / 4.832 GB, free: 39.11 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/10.68, allocations: 4.13 MB / 4.836 GB, free: 35.01 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/10.68, allocations: 3.031 kB / 4.836 GB, free: 35.01 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003995/10.68, allocations: 3.492 MB / 4.839 GB, free: 34.26 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/10.69, allocations: 0.5692 MB / 4.84 GB, free: 34.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000584/10.69, allocations: 41.8 kB / 4.84 GB, free: 34.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/10.69, allocations: 255.9 kB / 4.84 GB, free: 33.98 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/10.69, allocations: 118 kB / 4.84 GB, free: 33.98 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/10.69, allocations: 74.62 kB / 4.84 GB, free: 33.98 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001633/10.69, allocations: 1.273 MB / 4.841 GB, free: 33.82 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.6e-07/10.69, allocations: 0 / 4.841 GB, free: 33.82 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.004982/10.7, allocations: 2.141 MB / 4.843 GB, free: 33.57 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.008922/10.71, allocations: 9.447 MB / 4.853 GB, free: 29.41 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.004482/10.71, allocations: 3.217 MB / 4.856 GB, free: 29.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/10.71, allocations: 5.438 kB / 4.856 GB, free: 29.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001254/10.71, allocations: 0.9828 MB / 4.857 GB, free: 29.34 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006442/10.72, allocations: 1.578 MB / 4.858 GB, free: 29.3 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008196/10.73, allocations: 6.329 MB / 4.864 GB, free: 27.92 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/10.73, allocations: 2.245 MB / 4.867 GB, free: 27.16 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.003858/10.73, allocations: 1.344 MB / 4.868 GB, free: 27.13 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/10.73, allocations: 1.216 MB / 4.869 GB, free: 27.13 MB / 0.7761 GB Notification: Performance of SimCode: time 9.52e-07/10.73, allocations: 0 / 4.869 GB, free: 27.13 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6295/11.36, allocations: 150.9 MB / 5.016 GB, free: 99.44 MB / 0.8073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/11.36, allocations: 237.6 kB / 5.017 GB, free: 99.13 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.493/17.85, allocations: 4 kB / 5.017 GB, free: 99.13 MB / 0.8073 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)