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.001309/0.001309, allocations: 104.2 kB / 16.27 MB, free: 5.961 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.001439/0.001439, allocations: 188 kB / 17.19 MB, free: 5.594 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002172/0.002172, allocations: 279.7 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9728/0.9728, allocations: 169.2 MB / 0.4988 GB, free: 4.508 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 94.36 kB / 0.5959 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.172, allocations: 86.98 MB / 0.6808 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5075/0.6795, allocations: 195.1 MB / 0.8713 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01836/0.6979, allocations: 14.31 MB / 0.8853 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0015/0.6995, allocations: 35.81 kB / 0.8853 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.7015, allocations: 0.4968 MB / 0.8858 GB, free: 12.99 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005066/0.7065, allocations: 1.886 MB / 0.8877 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.7091, allocations: 0.867 MB / 0.8885 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003106/0.7122, allocations: 2.568 MB / 0.891 GB, free: 7.66 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001774/0.714, allocations: 1.116 MB / 0.8921 GB, free: 6.523 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004178/0.7182, allocations: 1.592 MB / 0.8937 GB, free: 4.945 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001765/0.72, allocations: 0.9283 MB / 0.8946 GB, free: 4.016 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003429/0.7203, allocations: 104 kB / 0.8947 GB, free: 3.914 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002534/0.7229, allocations: 1.095 MB / 0.8957 GB, free: 2.816 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006933/0.7236, allocations: 0.5026 MB / 0.8962 GB, free: 2.312 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.7248, allocations: 0.6338 MB / 0.8969 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003037/0.7278, allocations: 1.889 MB / 0.8987 GB, free: 15.78 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.7278, allocations: 3.984 kB / 0.8987 GB, free: 15.78 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7278, allocations: 4 kB / 0.8987 GB, free: 15.77 MB / 0.67 GB Notification: Performance of Transformations before backend: time 7.057e-05/0.7279, allocations: 0 / 0.8987 GB, free: 15.77 MB / 0.67 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.00314/0.7311, allocations: 1.449 MB / 0.9001 GB, free: 14.27 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.7311, allocations: 8.031 kB / 0.9001 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.7327, allocations: 250.3 kB / 0.9004 GB, free: 14.02 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.734, allocations: 0.7608 MB / 0.9011 GB, free: 13.22 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.7341, allocations: 66 kB / 0.9012 GB, free: 13.15 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001561/0.7343, allocations: 96 kB / 0.9013 GB, free: 13.06 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.7361, allocations: 1.165 MB / 0.9024 GB, free: 11.82 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.7361, allocations: 4 kB / 0.9024 GB, free: 11.82 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.089e-05/0.7362, allocations: 43.98 kB / 0.9025 GB, free: 11.78 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.35e-05/0.7362, allocations: 45.86 kB / 0.9025 GB, free: 11.73 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.7377, allocations: 0.8937 MB / 0.9034 GB, free: 10.84 MB / 0.67 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.005946/0.7437, allocations: 5.782 MB / 0.909 GB, free: 4.594 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000827/0.7445, allocations: 0.5276 MB / 0.9095 GB, free: 4.059 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004439/0.745, allocations: 318.6 kB / 0.9098 GB, free: 3.746 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005897/0.7456, allocations: 311.7 kB / 0.9101 GB, free: 3.387 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.7456, allocations: 39 kB / 0.9102 GB, free: 3.34 MB / 0.67 GB Notification: Performance of pre-optimization done (n=49): time 2.846e-06/0.7456, allocations: 0 / 0.9102 GB, free: 3.34 MB / 0.67 GB Notification: Performance of matching and sorting (n=49): time 0.001523/0.7472, allocations: 0.7948 MB / 0.9109 GB, free: 2.539 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.7472, allocations: 63.84 kB / 0.911 GB, free: 2.465 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000976/0.7482, allocations: 0.7509 MB / 0.9117 GB, free: 1.707 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.7483, allocations: 37.7 kB / 0.9118 GB, free: 1.664 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.7486, allocations: 0.5143 MB / 0.9123 GB, free: 1.141 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.7488, allocations: 177.5 kB / 0.9124 GB, free: 0.9648 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002052/0.749, allocations: 142.5 kB / 0.9126 GB, free: 0.8203 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.7492, allocations: 337.9 kB / 0.9129 GB, free: 496 kB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.7495, allocations: 241.9 kB / 0.9131 GB, free: 256 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.7502, allocations: 0.5701 MB / 0.9137 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.7512, allocations: 0.7956 MB / 0.9145 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.7512, allocations: 4 kB / 0.9145 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001306/0.7525, allocations: 0.8429 MB / 0.9153 GB, free: 13.79 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.7525, allocations: 8 kB / 0.9153 GB, free: 13.78 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.7526, allocations: 12 kB / 0.9153 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.7526, allocations: 8 kB / 0.9153 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000554/0.7531, allocations: 151.8 kB / 0.9155 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.968e-05/0.7532, allocations: 15.98 kB / 0.9155 GB, free: 13.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.7539, allocations: 95.05 kB / 0.9156 GB, free: 13.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.206e-05/0.754, allocations: 32.12 kB / 0.9156 GB, free: 13.47 MB / 0.6856 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.000438/0.7544, allocations: 334.3 kB / 0.9159 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.7546, allocations: 82.97 kB / 0.916 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009896/0.7556, allocations: 0.6257 MB / 0.9166 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.7556, allocations: 4 kB / 0.9166 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.7556, allocations: 0 / 0.9166 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007144/0.7563, allocations: 0.5211 MB / 0.9171 GB, free: 11.88 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.7589, allocations: 1.667 MB / 0.9188 GB, free: 10.14 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.7589, allocations: 4 kB / 0.9188 GB, free: 10.13 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005213/0.7594, allocations: 116 kB / 0.9189 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.7595, allocations: 0 / 0.9189 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.7595, allocations: 16 kB / 0.9189 GB, free: 10 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.096e-06/0.7595, allocations: 11.92 kB / 0.9189 GB, free: 9.992 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.7595, allocations: 4 kB / 0.9189 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.7609, allocations: 1.023 MB / 0.9199 GB, free: 8.926 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.7613, allocations: 220.1 kB / 0.9201 GB, free: 8.691 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.7614, allocations: 19.97 kB / 0.9201 GB, free: 8.672 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004854/0.7619, allocations: 12 kB / 0.9201 GB, free: 8.66 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.762, allocations: 39.89 kB / 0.9202 GB, free: 8.621 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.7621, allocations: 16 kB / 0.9202 GB, free: 8.605 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0006882/0.7628, allocations: 0.5146 MB / 0.9207 GB, free: 8.094 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7628, allocations: 0 / 0.9207 GB, free: 8.094 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0009801/0.7637, allocations: 303.3 kB / 0.921 GB, free: 7.797 MB / 0.6856 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.000656/0.7644, allocations: 208.1 kB / 0.9212 GB, free: 7.598 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001249/0.7657, allocations: 0.7173 MB / 0.9219 GB, free: 6.887 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.7657, allocations: 0 / 0.9219 GB, free: 6.887 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.7661, allocations: 268.2 kB / 0.9221 GB, free: 6.625 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.7681, allocations: 451 kB / 0.9226 GB, free: 6.203 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.7719, allocations: 2.026 MB / 0.9245 GB, free: 4.121 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.7729, allocations: 1.122 MB / 0.9256 GB, free: 2.973 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.7732, allocations: 79.42 kB / 0.9257 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of SimCode: time 4.11e-07/0.7732, allocations: 0 / 0.9257 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of Templates: time 0.02546/0.7986, allocations: 14.56 MB / 0.9399 GB, free: 4.473 MB / 0.7012 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)