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.9972/0.9972, allocations: 141.8 MB / 149.3 MB, free: 9.246 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.001376, allocations: 183.8 kB / 182.2 MB, free: 9.465 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.423/1.423, allocations: 221.5 MB / 436.4 MB, free: 13.36 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.000978/0.0009781, allocations: 88.16 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001886/0.001886, allocations: 279.5 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.038e-05, allocations: 11.98 kB / 0.6766 GB, free: 12.76 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.421, allocations: 82.76 MB / 0.7575 GB, free: 31.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.498/4.919, allocations: 1.932 GB / 2.69 GB, free: 87.35 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/4.92, allocations: 93.67 kB / 2.69 GB, free: 87.31 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.475/7.394, allocations: 0.6571 GB / 3.347 GB, free: 114.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.332e-06/7.394, allocations: 0 / 3.347 GB, free: 114.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.06e-05/7.394, allocations: 32.14 kB / 3.347 GB, free: 114.2 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.002445/7.397, allocations: 1.324 MB / 3.348 GB, free: 113.8 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/7.397, allocations: 7.812 kB / 3.348 GB, free: 113.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/7.398, allocations: 245 kB / 3.348 GB, free: 113.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002315/7.4, allocations: 1.109 MB / 3.35 GB, free: 113.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/7.4, allocations: 32.19 kB / 3.35 GB, free: 113.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/7.401, allocations: 56.5 kB / 3.35 GB, free: 113.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001218/7.402, allocations: 0.7559 MB / 3.35 GB, free: 113.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/7.403, allocations: 0.9743 MB / 3.351 GB, free: 113.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/7.403, allocations: 5.438 kB / 3.351 GB, free: 113.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/7.403, allocations: 3.188 kB / 3.351 GB, free: 113.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/7.403, allocations: 36.41 kB / 3.351 GB, free: 113.2 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.004558/7.408, allocations: 5.512 MB / 3.357 GB, free: 109.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/7.408, allocations: 0.5051 MB / 3.357 GB, free: 109.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/7.409, allocations: 284.9 kB / 3.357 GB, free: 109.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004935/7.409, allocations: 313.3 kB / 3.358 GB, free: 109.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/7.409, allocations: 40.56 kB / 3.358 GB, free: 109.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/7.409, allocations: 0 / 3.358 GB, free: 109.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001178/7.411, allocations: 0.5711 MB / 3.358 GB, free: 109.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/7.411, allocations: 55.75 kB / 3.358 GB, free: 109.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005892/7.411, allocations: 0.5155 MB / 3.359 GB, free: 108.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.144e-05/7.411, allocations: 29.67 kB / 3.359 GB, free: 108.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/7.411, allocations: 0.5096 MB / 3.359 GB, free: 108.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/7.412, allocations: 168.3 kB / 3.36 GB, free: 108.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.65e-05/7.412, allocations: 0 / 3.36 GB, free: 108.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001001/7.412, allocations: 383.1 kB / 3.36 GB, free: 108.3 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/7.412, allocations: 222.1 kB / 3.36 GB, free: 108.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/7.412, allocations: 0.5516 MB / 3.361 GB, free: 107.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/7.413, allocations: 357 kB / 3.361 GB, free: 107.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/7.413, allocations: 0 / 3.361 GB, free: 107.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001057/7.414, allocations: 0.7708 MB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/7.414, allocations: 12.78 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/7.414, allocations: 11.19 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/7.414, allocations: 13.75 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005357/7.415, allocations: 160.7 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/7.415, allocations: 15.41 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/7.416, allocations: 106.9 kB / 3.362 GB, free: 107.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/7.416, allocations: 37.11 kB / 3.362 GB, free: 107.8 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.0001337/7.416, allocations: 129.3 kB / 3.362 GB, free: 107.7 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007535/7.417, allocations: 0.5442 MB / 3.363 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-05/7.417, allocations: 80.48 kB / 3.363 GB, free: 107.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009124/7.418, allocations: 0.5788 MB / 3.363 GB, free: 107.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/7.418, allocations: 3.688 kB / 3.363 GB, free: 107.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/7.418, allocations: 3.422 kB / 3.363 GB, free: 107.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006047/7.418, allocations: 0.5033 MB / 3.364 GB, free: 107.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/7.421, allocations: 1.532 MB / 3.365 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/7.421, allocations: 7.688 kB / 3.365 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000497/7.421, allocations: 107.3 kB / 3.366 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/7.421, allocations: 9.469 kB / 3.366 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/7.421, allocations: 8.219 kB / 3.366 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/7.421, allocations: 3.969 kB / 3.366 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/7.421, allocations: 3.844 kB / 3.366 GB, free: 107.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/7.422, allocations: 1.091 MB / 3.367 GB, free: 106.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003419/7.423, allocations: 215.5 kB / 3.367 GB, free: 106.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/7.423, allocations: 6.469 kB / 3.367 GB, free: 106.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/7.423, allocations: 57.94 kB / 3.367 GB, free: 106.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/7.423, allocations: 39.22 kB / 3.367 GB, free: 106.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/7.424, allocations: 16.84 kB / 3.367 GB, free: 106.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004054/7.424, allocations: 396.8 kB / 3.367 GB, free: 106.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/7.424, allocations: 0 / 3.367 GB, free: 106.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001259/7.425, allocations: 416.4 kB / 3.368 GB, free: 106.5 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.004103/7.429, allocations: 4.141 MB / 3.372 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009102/7.43, allocations: 0.554 MB / 3.372 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/7.43, allocations: 0 / 3.372 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002778/7.431, allocations: 256.2 kB / 3.373 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/7.433, allocations: 354.1 kB / 3.373 GB, free: 104.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/7.436, allocations: 1.738 MB / 3.375 GB, free: 104.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/7.437, allocations: 1.138 MB / 3.376 GB, free: 103.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009705/7.438, allocations: 254.8 kB / 3.376 GB, free: 103.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004322/7.438, allocations: 358.9 kB / 3.376 GB, free: 103.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.082e-06/7.438, allocations: 0 / 3.376 GB, free: 103.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0699/7.508, allocations: 34.44 MB / 3.41 GB, free: 102.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/7.508, allocations: 171.2 kB / 3.41 GB, free: 102.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.172/10.68, allocations: 0 / 3.41 GB, free: 102.3 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)