Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",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.6722/0.6722, 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.0009651/0.0009652, allocations: 185.8 kB / 187.3 MB, free: 11.89 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.222/1.222, allocations: 221.3 MB / 441.4 MB, free: 4.617 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.0008525/0.0008526, allocations: 97.78 kB / 0.5124 GB, free: 24.19 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001625/0.001625, allocations: 281 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.001e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3276, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.399/3.726, allocations: 1.933 GB / 2.697 GB, free: 76.08 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/3.727, allocations: 86.52 kB / 2.697 GB, free: 76.04 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.082/5.809, allocations: 0.6646 GB / 3.362 GB, free: 112.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.422e-06/5.809, allocations: 2.656 kB / 3.362 GB, free: 112.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.258e-05/5.809, allocations: 25.45 kB / 3.362 GB, free: 112.9 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002247/5.811, allocations: 1.328 MB / 3.363 GB, free: 112.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/5.811, allocations: 9.188 kB / 3.363 GB, free: 112.4 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001803/5.811, allocations: 140.4 kB / 3.363 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/5.813, allocations: 249.5 kB / 3.364 GB, free: 112.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002167/5.815, allocations: 1.109 MB / 3.365 GB, free: 112 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/5.815, allocations: 69.25 kB / 3.365 GB, free: 112 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/5.815, allocations: 93.47 kB / 3.365 GB, free: 112 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/5.817, allocations: 1.104 MB / 3.366 GB, free: 111.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/5.817, allocations: 5 kB / 3.366 GB, free: 111.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.728e-05/5.817, allocations: 40.56 kB / 3.366 GB, free: 111.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.124e-05/5.817, allocations: 32.56 kB / 3.366 GB, free: 111.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/5.818, allocations: 0.8267 MB / 3.367 GB, free: 111.8 MB / 0.698 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.00388/5.822, allocations: 5.698 MB / 3.372 GB, free: 108.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006037/5.822, allocations: 0.5293 MB / 3.373 GB, free: 108.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/5.823, allocations: 301.5 kB / 3.373 GB, free: 108 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004087/5.823, allocations: 308.8 kB / 3.373 GB, free: 107.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/5.823, allocations: 38.25 kB / 3.373 GB, free: 107.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/5.823, allocations: 3.844 kB / 3.373 GB, free: 107.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.0009274/5.824, allocations: 0.5844 MB / 3.374 GB, free: 107.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/5.824, allocations: 55.31 kB / 3.374 GB, free: 107.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005901/5.825, allocations: 0.6413 MB / 3.375 GB, free: 107.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/5.825, allocations: 37.52 kB / 3.375 GB, free: 107.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/5.825, allocations: 0.5085 MB / 3.375 GB, free: 107.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/5.825, allocations: 178.6 kB / 3.375 GB, free: 107.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/5.825, allocations: 15.06 kB / 3.375 GB, free: 107.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.061e-05/5.825, allocations: 332 kB / 3.376 GB, free: 106.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/5.826, allocations: 240.9 kB / 3.376 GB, free: 106.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/5.826, allocations: 0.5733 MB / 3.377 GB, free: 106.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/5.826, allocations: 343.7 kB / 3.377 GB, free: 106.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/5.826, allocations: 3.906 kB / 3.377 GB, free: 106.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009353/5.827, allocations: 0.823 MB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/5.827, allocations: 7.875 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/5.827, allocations: 6.969 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/5.827, allocations: 15 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000488/5.828, allocations: 156.2 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/5.828, allocations: 18.28 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007829/5.829, allocations: 133.3 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/5.829, allocations: 35.34 kB / 3.378 GB, free: 106.3 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/5.829, allocations: 159.9 kB / 3.378 GB, free: 106.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.559e-05/5.829, allocations: 85.31 kB / 3.378 GB, free: 106.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007838/5.83, allocations: 0.5992 MB / 3.379 GB, free: 106.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/5.83, allocations: 6 kB / 3.379 GB, free: 106.1 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/5.83, allocations: 2.188 kB / 3.379 GB, free: 106.1 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005308/5.83, allocations: 0.5057 MB / 3.379 GB, free: 106 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001829/5.832, allocations: 1.637 MB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/5.832, allocations: 3.812 kB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004683/5.833, allocations: 117.1 kB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/5.833, allocations: 3.781 kB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/5.833, allocations: 13.97 kB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/5.833, allocations: 3.562 kB / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/5.833, allocations: 0 / 3.381 GB, free: 105.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/5.834, allocations: 1.11 MB / 3.382 GB, free: 105.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002458/5.834, allocations: 223.1 kB / 3.382 GB, free: 105.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.905e-05/5.834, allocations: 14.41 kB / 3.382 GB, free: 105.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000515/5.835, allocations: 60.5 kB / 3.382 GB, free: 105.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/5.835, allocations: 44.67 kB / 3.383 GB, free: 105.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/5.835, allocations: 17.97 kB / 3.383 GB, free: 105.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004342/5.835, allocations: 0.4969 MB / 3.383 GB, free: 105.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.61e-07/5.835, allocations: 0 / 3.383 GB, free: 105.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00113/5.836, allocations: 487.1 kB / 3.383 GB, free: 105 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00322/5.839, allocations: 3.938 MB / 3.387 GB, free: 103.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000764/5.84, allocations: 0.5957 MB / 3.388 GB, free: 103.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/5.84, allocations: 0 / 3.388 GB, free: 103.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000316/5.841, allocations: 258.8 kB / 3.388 GB, free: 103.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/5.842, allocations: 433 kB / 3.389 GB, free: 103.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/5.845, allocations: 1.788 MB / 3.39 GB, free: 102.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/5.845, allocations: 1.141 MB / 3.391 GB, free: 102 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007015/5.846, allocations: 268.5 kB / 3.392 GB, free: 102 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003658/5.846, allocations: 360.7 kB / 3.392 GB, free: 102 MB / 0.698 GB Notification: Performance of SimCode: time 3.81e-07/5.846, allocations: 3.156 kB / 3.392 GB, free: 102 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/5.912, allocations: 56.27 MB / 3.447 GB, free: 98.54 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/5.912, allocations: 196.5 kB / 3.447 GB, free: 98.32 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.608/9.52, allocations: 1.688 kB / 3.447 GB, free: 98.32 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)