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.9178/0.9178, allocations: 143.4 MB / 158.3 MB, free: 5.809 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.001231/0.001231, allocations: 183.3 kB / 191.5 MB, free: 5.766 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.793/1.793, 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.001006/0.001007, allocations: 92.25 kB / 0.5187 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001846/0.001846, allocations: 271.3 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.000474, allocations: 14.5 kB / 0.6929 GB, free: 59.55 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2223, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.35/5.572, allocations: 1.933 GB / 2.707 GB, free: 145.4 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/5.573, allocations: 99.33 kB / 2.707 GB, free: 145.3 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.332/7.904, allocations: 0.6652 GB / 3.372 GB, free: 30.45 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.866e-06/7.904, allocations: 0 / 3.372 GB, free: 30.45 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.115e-05/7.904, allocations: 28 kB / 3.372 GB, free: 30.42 MB / 0.7136 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.003274/7.908, allocations: 1.477 MB / 3.373 GB, free: 28.88 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/7.908, allocations: 8.031 kB / 3.373 GB, free: 28.88 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/7.908, allocations: 139.6 kB / 3.374 GB, free: 28.73 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/7.909, allocations: 242.4 kB / 3.374 GB, free: 28.49 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/7.912, allocations: 1.117 MB / 3.375 GB, free: 27.34 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.975e-05/7.912, allocations: 73.95 kB / 3.375 GB, free: 27.26 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/7.913, allocations: 99.91 kB / 3.375 GB, free: 27.16 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/7.914, allocations: 1.123 MB / 3.376 GB, free: 25.97 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/7.914, allocations: 7.875 kB / 3.376 GB, free: 25.96 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.421e-05/7.914, allocations: 36 kB / 3.376 GB, free: 25.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.507e-05/7.914, allocations: 34 kB / 3.376 GB, free: 25.89 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/7.916, allocations: 0.8469 MB / 3.377 GB, free: 25.05 MB / 0.7136 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.005222/7.921, allocations: 5.687 MB / 3.383 GB, free: 18.91 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006807/7.922, allocations: 0.5249 MB / 3.383 GB, free: 18.37 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005054/7.922, allocations: 315.7 kB / 3.383 GB, free: 18 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/7.922, allocations: 39 kB / 3.384 GB, free: 17.96 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=49): time 3.677e-06/7.922, allocations: 3.984 kB / 3.384 GB, free: 17.95 MB / 0.7136 GB Notification: Performance of matching and sorting (n=49): time 0.001382/7.924, allocations: 0.7869 MB / 3.384 GB, free: 17.16 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/7.924, allocations: 55.84 kB / 3.384 GB, free: 17.09 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/7.924, allocations: 0.6486 MB / 3.385 GB, free: 16.44 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.223e-05/7.924, allocations: 41.64 kB / 3.385 GB, free: 16.39 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/7.925, allocations: 0.4987 MB / 3.385 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000136/7.925, allocations: 177.5 kB / 3.386 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/7.925, allocations: 20 kB / 3.386 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.758e-05/7.925, allocations: 337.9 kB / 3.386 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/7.925, allocations: 237.9 kB / 3.386 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/7.926, allocations: 0.577 MB / 3.387 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/7.926, allocations: 349.1 kB / 3.387 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/7.926, allocations: 4 kB / 3.387 GB, free: 14.05 MB / 0.7136 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001043/7.927, allocations: 0.835 MB / 3.388 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/7.927, allocations: 11.95 kB / 3.388 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/7.927, allocations: 8 kB / 3.388 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/7.927, allocations: 12 kB / 3.388 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/7.928, allocations: 155.7 kB / 3.388 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/7.928, allocations: 15.94 kB / 3.388 GB, free: 13 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009786/7.929, allocations: 139.2 kB / 3.388 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.926e-05/7.929, allocations: 43.98 kB / 3.388 GB, free: 12.82 MB / 0.7136 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 () * Number of clocked 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.0005075/7.93, allocations: 325.5 kB / 3.389 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/7.93, allocations: 90.95 kB / 3.389 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009019/7.931, allocations: 0.5983 MB / 3.389 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/7.931, allocations: 12 kB / 3.389 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/7.931, allocations: 0 / 3.389 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005925/7.931, allocations: 0.5094 MB / 3.39 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/7.934, allocations: 1.656 MB / 3.391 GB, free: 9.531 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/7.934, allocations: 0 / 3.391 GB, free: 9.531 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005008/7.934, allocations: 111.8 kB / 3.392 GB, free: 9.422 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/7.934, allocations: 4 kB / 3.392 GB, free: 9.418 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/7.934, allocations: 16 kB / 3.392 GB, free: 9.402 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/7.934, allocations: 4 kB / 3.392 GB, free: 9.398 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/7.934, allocations: 3.938 kB / 3.392 GB, free: 9.395 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/7.935, allocations: 1.127 MB / 3.393 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000428/7.936, allocations: 224 kB / 3.393 GB, free: 7.945 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/7.936, allocations: 12 kB / 3.393 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/7.936, allocations: 67.78 kB / 3.393 GB, free: 7.867 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/7.937, allocations: 31.92 kB / 3.393 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.663e-05/7.937, allocations: 27.92 kB / 3.393 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0005571/7.937, allocations: 0.499 MB / 3.393 GB, free: 7.312 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/7.937, allocations: 0 / 3.393 GB, free: 7.312 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001827/7.939, allocations: 487.3 kB / 3.394 GB, free: 6.836 MB / 0.7136 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 () * Number of clocked 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.004394/7.943, allocations: 3.942 MB / 3.398 GB, free: 2.766 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0009631/7.944, allocations: 0.5998 MB / 3.398 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/7.944, allocations: 0 / 3.398 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002995/7.945, allocations: 263.7 kB / 3.399 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/7.947, allocations: 425.1 kB / 3.399 GB, free: 1.5 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5029/8.449, allocations: 10.85 MB / 3.41 GB, free: 106.9 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/8.45, allocations: 1.138 MB / 3.411 GB, free: 106.2 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00108/8.451, allocations: 264.2 kB / 3.411 GB, free: 106.1 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/8.452, allocations: 359.9 kB / 3.411 GB, free: 106.1 MB / 0.7136 GB Notification: Performance of SimCode: time 1.313e-06/8.452, allocations: 0 / 3.411 GB, free: 106.1 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09774/8.55, allocations: 51.41 MB / 3.462 GB, free: 105.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/8.55, allocations: 229.2 kB / 3.462 GB, free: 105.4 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.955/12.5, allocations: 2.812 kB / 3.462 GB, free: 105.4 MB / 0.7136 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)