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.001282/0.001282, allocations: 105.4 kB / 16.4 MB, free: 6.516 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.001279/0.001279, allocations: 188 kB / 17.34 MB, free: 5.734 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 299.7 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.039/1.039, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004232/0.004232, allocations: 99.83 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5396/0.5438, allocations: 86.97 MB / 0.7671 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.7158/1.26, allocations: 195.6 MB / 0.9581 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01634/1.276, allocations: 14.34 MB / 0.9721 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/1.277, allocations: 39.16 kB / 0.9721 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001416/1.279, allocations: 0.5157 MB / 0.9726 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004627/1.283, allocations: 1.962 MB / 0.9745 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002708/1.286, allocations: 0.8625 MB / 0.9754 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003384/1.29, allocations: 2.58 MB / 0.9779 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/1.291, allocations: 0.9298 MB / 0.9788 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004021/1.295, allocations: 1.643 MB / 0.9804 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/1.296, allocations: 0.9303 MB / 0.9813 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/1.296, allocations: 105.3 kB / 0.9814 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/1.299, allocations: 1.11 MB / 0.9825 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004232/1.299, allocations: 0.5132 MB / 0.983 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007092/1.3, allocations: 0.6312 MB / 0.9836 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002448/1.302, allocations: 1.922 MB / 0.9855 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/1.302, allocations: 0.7188 kB / 0.9855 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/1.302, allocations: 0.9375 kB / 0.9855 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.901e-05/1.302, allocations: 2.25 kB / 0.9855 GB, free: 1.43 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.00209/1.304, allocations: 1.489 MB / 0.987 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/1.304, allocations: 8.438 kB / 0.987 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/1.306, allocations: 260.4 kB / 0.9872 GB, free: 16.55 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/1.307, allocations: 0.8013 MB / 0.988 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/1.307, allocations: 70.97 kB / 0.9881 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/1.307, allocations: 92.34 kB / 0.9881 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/1.308, allocations: 1.171 MB / 0.9893 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/1.308, allocations: 5.406 kB / 0.9893 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.757e-05/1.308, allocations: 37.94 kB / 0.9893 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.32e-05/1.308, allocations: 36.86 kB / 0.9894 GB, free: 16.01 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/1.31, allocations: 0.9093 MB / 0.9903 GB, free: 15.99 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.005338/1.315, allocations: 5.75 MB / 0.9959 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/1.316, allocations: 0.5097 MB / 0.9964 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/1.316, allocations: 302.5 kB / 0.9967 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000596/1.317, allocations: 310.8 kB / 0.997 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/1.317, allocations: 38.06 kB / 0.997 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/1.317, allocations: 0.9375 kB / 0.997 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001333/1.318, allocations: 0.8076 MB / 0.9978 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/1.318, allocations: 56.66 kB / 0.9978 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/1.319, allocations: 0.7528 MB / 0.9986 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.18e-05/1.319, allocations: 37.7 kB / 0.9986 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/1.319, allocations: 0.5204 MB / 0.9991 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/1.319, allocations: 184.9 kB / 0.9993 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/1.319, allocations: 140.8 kB / 0.9994 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.32, allocations: 340.4 kB / 0.9997 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002981/1.32, allocations: 247.4 kB / 1 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/1.32, allocations: 0.5535 MB / 1.001 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008717/1.321, allocations: 0.8055 MB / 1.001 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/1.321, allocations: 4.078 kB / 1.001 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001055/1.322, allocations: 0.8489 MB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/1.322, allocations: 11.19 kB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/1.322, allocations: 5.031 kB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/1.322, allocations: 14.25 kB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/1.323, allocations: 156.2 kB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/1.323, allocations: 18.42 kB / 1.002 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007098/1.324, allocations: 91.7 kB / 1.002 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/1.324, allocations: 37.12 kB / 1.002 GB, free: 10.07 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.0004004/1.324, allocations: 336.6 kB / 1.003 GB, free: 9.945 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/1.324, allocations: 88.69 kB / 1.003 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008616/1.325, allocations: 0.6178 MB / 1.003 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/1.325, allocations: 9.359 kB / 1.003 GB, free: 9.836 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/1.325, allocations: 0 / 1.003 GB, free: 9.836 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006013/1.326, allocations: 0.5192 MB / 1.004 GB, free: 9.762 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/1.328, allocations: 1.672 MB / 1.006 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/1.328, allocations: 2.438 kB / 1.006 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004872/1.328, allocations: 111.1 kB / 1.006 GB, free: 9.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/1.328, allocations: 6.062 kB / 1.006 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/1.328, allocations: 16.38 kB / 1.006 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/1.328, allocations: 5.734 kB / 1.006 GB, free: 9.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.328, allocations: 6.5 kB / 1.006 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/1.329, allocations: 1.018 MB / 1.007 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/1.33, allocations: 224.7 kB / 1.007 GB, free: 8.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.653e-05/1.33, allocations: 18.64 kB / 1.007 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/1.33, allocations: 16.41 kB / 1.007 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/1.33, allocations: 38.14 kB / 1.007 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/1.33, allocations: 17.31 kB / 1.007 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005252/1.331, allocations: 0.5094 MB / 1.008 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/1.331, allocations: 0 / 1.008 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008047/1.332, allocations: 303.3 kB / 1.008 GB, free: 8.852 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.0004804/1.332, allocations: 220.2 kB / 1.008 GB, free: 8.738 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007624/1.333, allocations: 0.5847 MB / 1.009 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.333, allocations: 1 kB / 1.009 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002874/1.333, allocations: 260.2 kB / 1.009 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/1.335, allocations: 440.8 kB / 1.009 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/1.338, allocations: 1.959 MB / 1.011 GB, free: 7.871 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/1.338, allocations: 1.123 MB / 1.012 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006732/1.339, allocations: 275.3 kB / 1.013 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/1.339, allocations: 69.55 kB / 1.013 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of SimCode: time 5.91e-07/1.339, allocations: 1.312 kB / 1.013 GB, free: 7.098 MB / 0.7325 GB Notification: Performance of Templates: time 0.02464/1.364, allocations: 15.65 MB / 1.028 GB, free: 3.668 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)