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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 104.5 kB / 16.41 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001148, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002173/0.002173, allocations: 290.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.053/1.053, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002088, allocations: 92.28 kB / 0.6821 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5094/0.5115, allocations: 86.98 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.2002/0.7118, allocations: 195.1 MB / 0.9576 GB, free: 92 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4878/1.2, allocations: 14.29 MB / 0.9715 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/1.201, allocations: 36.75 kB / 0.9716 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001404/1.203, allocations: 0.4935 MB / 0.9721 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004556/1.207, allocations: 1.893 MB / 0.9739 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002413/1.21, allocations: 0.8733 MB / 0.9748 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003327/1.213, allocations: 2.579 MB / 0.9773 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001401/1.214, allocations: 1.116 MB / 0.9784 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004156/1.219, allocations: 1.608 MB / 0.9799 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/1.22, allocations: 0.9275 MB / 0.9808 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/1.22, allocations: 109.7 kB / 0.981 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/1.223, allocations: 1.096 MB / 0.982 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004405/1.223, allocations: 0.4974 MB / 0.9825 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007415/1.224, allocations: 0.6359 MB / 0.9831 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004122/1.228, allocations: 1.918 MB / 0.985 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.228, allocations: 0.8125 kB / 0.985 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.024e-06/1.228, allocations: 5.141 kB / 0.985 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.656e-05/1.228, allocations: 0.9688 kB / 0.985 GB, free: 1.453 MB / 0.7169 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.002937/1.231, allocations: 1.454 MB / 0.9864 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/1.231, allocations: 9.5 kB / 0.9864 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002065/1.233, allocations: 253.9 kB / 0.9867 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/1.235, allocations: 0.7882 MB / 0.9875 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/1.235, allocations: 67.25 kB / 0.9875 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/1.235, allocations: 101.6 kB / 0.9876 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/1.238, allocations: 1.167 MB / 0.9888 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/1.238, allocations: 6.25 kB / 0.9888 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/1.238, allocations: 40.56 kB / 0.9888 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.107e-05/1.238, allocations: 30.78 kB / 0.9888 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/1.24, allocations: 0.9069 MB / 0.9897 GB, free: 16.07 MB / 0.7325 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.007497/1.247, allocations: 5.742 MB / 0.9953 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/1.248, allocations: 0.5296 MB / 0.9958 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005863/1.249, allocations: 324.1 kB / 0.9961 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000784/1.25, allocations: 310.9 kB / 0.9964 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/1.25, allocations: 42.45 kB / 0.9965 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 3.577e-06/1.25, allocations: 0.9062 kB / 0.9965 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.002041/1.252, allocations: 0.8 MB / 0.9973 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/1.252, allocations: 61.23 kB / 0.9973 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/1.253, allocations: 0.7489 MB / 0.9981 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.76e-05/1.253, allocations: 38.52 kB / 0.9981 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005142/1.254, allocations: 0.5083 MB / 0.9986 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/1.254, allocations: 173.4 kB / 0.9988 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003422/1.254, allocations: 142.7 kB / 0.9989 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002334/1.255, allocations: 338 kB / 0.9992 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005654/1.255, allocations: 246.8 kB / 0.9994 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009533/1.256, allocations: 0.552 MB / 1 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/1.258, allocations: 0.8019 MB / 1.001 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/1.258, allocations: 5.125 kB / 1.001 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001961/1.26, allocations: 0.8439 MB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/1.26, allocations: 9.062 kB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/1.26, allocations: 11.33 kB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.433e-05/1.26, allocations: 10.28 kB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008901/1.261, allocations: 158.7 kB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.799e-05/1.261, allocations: 16.81 kB / 1.002 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/1.262, allocations: 90.77 kB / 1.002 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.416e-05/1.262, allocations: 36 kB / 1.002 GB, free: 10.18 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000684/1.263, allocations: 332.8 kB / 1.002 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/1.263, allocations: 85.31 kB / 1.002 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001403/1.264, allocations: 0.6184 MB / 1.003 GB, free: 9.957 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/1.265, allocations: 8.344 kB / 1.003 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/1.265, allocations: 2.156 kB / 1.003 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001034/1.266, allocations: 0.5203 MB / 1.003 GB, free: 9.883 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003545/1.269, allocations: 1.669 MB / 1.005 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/1.269, allocations: 0.9375 kB / 1.005 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/1.27, allocations: 115.3 kB / 1.005 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/1.27, allocations: 4.359 kB / 1.005 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.117e-05/1.27, allocations: 19.22 kB / 1.005 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/1.27, allocations: 3.281 kB / 1.005 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.27, allocations: 8.453 kB / 1.005 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/1.272, allocations: 1.012 MB / 1.006 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005515/1.273, allocations: 225 kB / 1.006 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002085/1.273, allocations: 18.73 kB / 1.006 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007939/1.274, allocations: 19.34 kB / 1.006 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/1.274, allocations: 29.42 kB / 1.006 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.493e-05/1.274, allocations: 20.31 kB / 1.006 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0009951/1.275, allocations: 0.5102 MB / 1.007 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.31e-07/1.275, allocations: 0.8438 kB / 1.007 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001438/1.276, allocations: 300.6 kB / 1.007 GB, free: 8.98 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006854/1.277, allocations: 222.8 kB / 1.007 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001307/1.278, allocations: 0.6096 MB / 1.008 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/1.278, allocations: 0 / 1.008 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004833/1.279, allocations: 273.6 kB / 1.008 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/1.282, allocations: 438.9 kB / 1.009 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/1.285, allocations: 2.005 MB / 1.011 GB, free: 7.973 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006682/1.285, allocations: 1.125 MB / 1.012 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002422/1.286, allocations: 79.89 kB / 1.012 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of SimCode: time 4.51e-07/1.286, allocations: 0 / 1.012 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of Templates: time 0.02279/1.308, allocations: 14.64 MB / 1.026 GB, free: 4.195 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)