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: 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/BuildingSystems 2.0.0-master/package.mo): time 0.8395/0.8395, allocations: 143.4 MB / 159.2 MB, free: 4.91 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.001415/0.001415, allocations: 178.9 kB / 191.9 MB, free: 5.727 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.339/1.339, allocations: 222.9 MB / 447.3 MB, free: 5.82 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.001014/0.001014, allocations: 99.75 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00181/0.00181, allocations: 280.8 kB / 0.5973 GB, free: 49.36 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 83.88 kB / 0.6885 GB, free: 3.832 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3551, allocations: 81.31 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5117/0.8669, allocations: 192.8 MB / 0.9562 GB, free: 15.89 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01566/0.8826, allocations: 14.38 MB / 0.9703 GB, free: 15.52 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001799/0.8844, allocations: 31.38 kB / 0.9703 GB, free: 15.52 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001514/0.886, allocations: 418.3 kB / 0.9707 GB, free: 15.52 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.005231/0.8912, allocations: 1.776 MB / 0.9725 GB, free: 15.42 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002557/0.8938, allocations: 0.761 MB / 0.9732 GB, free: 15.29 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.004724/0.8985, allocations: 3.624 MB / 0.9767 GB, free: 14.47 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.8999, allocations: 0.9542 MB / 0.9777 GB, free: 14.04 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004911/0.9049, allocations: 1.44 MB / 0.9791 GB, free: 13.34 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001796/0.9067, allocations: 0.9648 MB / 0.98 GB, free: 12.89 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.9068, allocations: 57.47 kB / 0.9801 GB, free: 12.89 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00268/0.9095, allocations: 1.265 MB / 0.9813 GB, free: 12.32 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.000467/0.91, allocations: 462.1 kB / 0.9818 GB, free: 12.04 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007081/0.9107, allocations: 0.5857 MB / 0.9823 GB, free: 11.69 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.9131, allocations: 1.92 MB / 0.9842 GB, free: 10.54 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.9131, allocations: 2.688 kB / 0.9842 GB, free: 10.54 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.102e-06/0.9131, allocations: 0 / 0.9842 GB, free: 10.54 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.9131, allocations: 0 / 0.9842 GB, free: 10.54 MB / 0.573 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.002222/0.9154, allocations: 1.439 MB / 0.9856 GB, free: 9.449 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.9154, allocations: 7.375 kB / 0.9856 GB, free: 9.449 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.9167, allocations: 261 kB / 0.9859 GB, free: 9.328 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.9179, allocations: 0.754 MB / 0.9866 GB, free: 8.766 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.314e-05/0.918, allocations: 71.28 kB / 0.9867 GB, free: 8.73 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.9181, allocations: 91.91 kB / 0.9868 GB, free: 8.703 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.9197, allocations: 1.178 MB / 0.9879 GB, free: 7.922 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.9197, allocations: 2.781 kB / 0.9879 GB, free: 7.922 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.9198, allocations: 42.03 kB / 0.988 GB, free: 7.891 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.852e-05/0.9199, allocations: 32.34 kB / 0.988 GB, free: 7.887 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.9211, allocations: 0.8983 MB / 0.9889 GB, free: 7.449 MB / 0.573 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.005227/0.9264, allocations: 5.726 MB / 0.9945 GB, free: 2.27 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007489/0.9271, allocations: 0.531 MB / 0.995 GB, free: 1.988 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004008/0.9275, allocations: 316.7 kB / 0.9953 GB, free: 1.836 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005501/0.9281, allocations: 314.7 kB / 0.9956 GB, free: 1.523 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.9281, allocations: 41.84 kB / 0.9956 GB, free: 1.477 MB / 0.573 GB Notification: Performance of pre-optimization done (n=49): time 4.418e-06/0.9282, allocations: 3.984 kB / 0.9956 GB, free: 1.473 MB / 0.573 GB Notification: Performance of matching and sorting (n=49): time 0.001598/0.9298, allocations: 0.7961 MB / 0.9964 GB, free: 1.078 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.9298, allocations: 61.11 kB / 0.9965 GB, free: 1.012 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009364/0.9308, allocations: 0.7443 MB / 0.9972 GB, free: 0.5898 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.9308, allocations: 36.52 kB / 0.9972 GB, free: 0.5508 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/0.9312, allocations: 0.5078 MB / 0.9977 GB, free: 100 kB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.9314, allocations: 172.8 kB / 0.9979 GB, free: 15.95 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.9316, allocations: 143.6 kB / 0.998 GB, free: 15.87 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.9317, allocations: 345.6 kB / 0.9983 GB, free: 15.53 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.9321, allocations: 249.9 kB / 0.9986 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006585/0.9328, allocations: 0.5565 MB / 0.9991 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009142/0.9337, allocations: 0.7957 MB / 0.9999 GB, free: 13.78 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.9337, allocations: 4 kB / 0.9999 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001204/0.9349, allocations: 0.8424 MB / 1.001 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.9349, allocations: 12 kB / 1.001 GB, free: 12.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.935, allocations: 8 kB / 1.001 GB, free: 12.91 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.935, allocations: 12 kB / 1.001 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.9355, allocations: 155.7 kB / 1.001 GB, free: 12.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.9356, allocations: 16.5 kB / 1.001 GB, free: 12.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009477/0.9365, allocations: 135 kB / 1.001 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.314e-05/0.9366, allocations: 39.92 kB / 1.001 GB, free: 12.55 MB / 0.5886 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.0004312/0.937, allocations: 334.8 kB / 1.001 GB, free: 12.22 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.9372, allocations: 82.97 kB / 1.001 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009808/0.9382, allocations: 0.6295 MB / 1.002 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.9382, allocations: 4 kB / 1.002 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.9382, allocations: 0 / 1.002 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006619/0.9389, allocations: 0.5134 MB / 1.003 GB, free: 10.97 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.9413, allocations: 1.657 MB / 1.004 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.9413, allocations: 11.88 kB / 1.004 GB, free: 9.234 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.9419, allocations: 111.9 kB / 1.004 GB, free: 9.125 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.9419, allocations: 4 kB / 1.004 GB, free: 9.121 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.9419, allocations: 19.98 kB / 1.004 GB, free: 9.102 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.9419, allocations: 0 / 1.004 GB, free: 9.102 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.9419, allocations: 8.156 kB / 1.004 GB, free: 9.094 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006662/0.9486, allocations: 4.721 MB / 1.009 GB, free: 4.191 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003368/0.949, allocations: 224.1 kB / 1.009 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.465e-05/0.9491, allocations: 15.94 kB / 1.009 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.9496, allocations: 67.86 kB / 1.009 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.9497, allocations: 35.95 kB / 1.009 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/0.9497, allocations: 16 kB / 1.009 GB, free: 3.82 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0005847/0.9503, allocations: 0.5107 MB / 1.01 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9503, allocations: 0 / 1.01 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.00176/0.9521, allocations: 435.3 kB / 1.01 GB, free: 2.887 MB / 0.5886 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 (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.0005028/0.9526, allocations: 208.4 kB / 1.01 GB, free: 2.695 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0008998/0.9535, allocations: 0.6042 MB / 1.011 GB, free: 2.09 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.9535, allocations: 0 / 1.011 GB, free: 2.09 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.9539, allocations: 272.3 kB / 1.011 GB, free: 1.824 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.9559, allocations: 448 kB / 1.012 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.9593, allocations: 2.634 MB / 1.014 GB, free: 14.7 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006692/0.96, allocations: 1.138 MB / 1.015 GB, free: 13.54 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0008534/0.9608, allocations: 275.1 kB / 1.016 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.961, allocations: 79.42 kB / 1.016 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of SimCode: time 4.01e-07/0.961, allocations: 0 / 1.016 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of Templates: time 0.02753/0.9886, allocations: 16.19 MB / 1.032 GB, free: 13.23 MB / 0.6198 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)