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.006638/0.006637, allocations: 101.4 kB / 15.73 MB, free: 6.051 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.001379/0.00138, allocations: 188.3 kB / 16.67 MB, free: 5.969 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002335/0.002335, allocations: 286.8 kB / 290.8 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 0.9207/0.9207, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 103.8 kB / 0.6815 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5027/0.5044, allocations: 86.98 MB / 0.7664 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.2089/0.7134, allocations: 195.1 MB / 0.9569 GB, free: 60 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4499/1.163, allocations: 14.3 MB / 0.9709 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/1.164, allocations: 36.41 kB / 0.9709 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001182/1.166, allocations: 0.4982 MB / 0.9714 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.003566/1.169, allocations: 1.883 MB / 0.9732 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001956/1.171, allocations: 0.8627 MB / 0.9741 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002199/1.173, allocations: 2.578 MB / 0.9766 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/1.175, allocations: 1.113 MB / 0.9777 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003686/1.178, allocations: 1.598 MB / 0.9793 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/1.18, allocations: 0.9257 MB / 0.9802 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001677/1.18, allocations: 107.1 kB / 0.9803 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00194/1.182, allocations: 1.096 MB / 0.9813 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003731/1.182, allocations: 0.5027 MB / 0.9818 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005963/1.183, allocations: 0.6317 MB / 0.9824 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001913/1.185, allocations: 1.923 MB / 0.9843 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/1.185, allocations: 0.9688 kB / 0.9843 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.343e-06/1.185, allocations: 0 / 0.9843 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.367e-05/1.185, allocations: 3.406 kB / 0.9843 GB, free: 1.414 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.001789/1.187, allocations: 1.487 MB / 0.9858 GB, free: 16.61 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/1.187, allocations: 11.12 kB / 0.9858 GB, free: 16.61 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/1.188, allocations: 260.5 kB / 0.986 GB, free: 16.54 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/1.189, allocations: 0.8026 MB / 0.9868 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/1.189, allocations: 69.66 kB / 0.9869 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/1.189, allocations: 102.8 kB / 0.987 GB, free: 16.21 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/1.19, allocations: 1.169 MB / 0.9881 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/1.191, allocations: 2.312 kB / 0.9881 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.53e-05/1.191, allocations: 41.53 kB / 0.9882 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.178e-05/1.191, allocations: 33.78 kB / 0.9882 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/1.192, allocations: 0.9008 MB / 0.9891 GB, free: 15.97 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.004483/1.196, allocations: 5.754 MB / 0.9947 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/1.197, allocations: 0.5399 MB / 0.9952 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/1.197, allocations: 317.6 kB / 0.9955 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005279/1.198, allocations: 314.6 kB / 0.9958 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/1.198, allocations: 37.83 kB / 0.9959 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/1.198, allocations: 1.688 kB / 0.9959 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001226/1.199, allocations: 0.8081 MB / 0.9967 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/1.199, allocations: 56.62 kB / 0.9967 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000707/1.2, allocations: 0.7486 MB / 0.9974 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.02e-05/1.2, allocations: 36.05 kB / 0.9975 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/1.2, allocations: 0.5193 MB / 0.998 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/1.2, allocations: 186.5 kB / 0.9982 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/1.201, allocations: 140.5 kB / 0.9983 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001167/1.201, allocations: 336.4 kB / 0.9986 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/1.201, allocations: 249.2 kB / 0.9989 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/1.202, allocations: 0.553 MB / 0.9994 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008215/1.202, allocations: 0.8047 MB / 1 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/1.202, allocations: 0.7812 kB / 1 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001055/1.203, allocations: 0.8495 MB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.203, allocations: 8.625 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.203, allocations: 9.219 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/1.204, allocations: 13.53 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/1.204, allocations: 156.2 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/1.204, allocations: 16.72 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006214/1.205, allocations: 92.33 kB / 1.001 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/1.205, allocations: 38.25 kB / 1.001 GB, free: 10.06 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.0003449/1.205, allocations: 334.6 kB / 1.002 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/1.205, allocations: 88.53 kB / 1.002 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008666/1.206, allocations: 0.6207 MB / 1.002 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/1.206, allocations: 4.953 kB / 1.002 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.206, allocations: 4.828 kB / 1.002 GB, free: 9.824 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005966/1.207, allocations: 0.5194 MB / 1.003 GB, free: 9.75 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/1.209, allocations: 1.671 MB / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/1.209, allocations: 3.312 kB / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/1.209, allocations: 120.2 kB / 1.005 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/1.209, allocations: 6.188 kB / 1.005 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.92e-05/1.209, allocations: 16.47 kB / 1.005 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/1.209, allocations: 3.5 kB / 1.005 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.209, allocations: 3.688 kB / 1.005 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/1.21, allocations: 1.014 MB / 1.006 GB, free: 9.117 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002688/1.211, allocations: 234.9 kB / 1.006 GB, free: 8.969 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/1.211, allocations: 17.22 kB / 1.006 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/1.211, allocations: 20.78 kB / 1.006 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/1.211, allocations: 34.09 kB / 1.006 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/1.211, allocations: 17.91 kB / 1.006 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004989/1.212, allocations: 0.5142 MB / 1.006 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/1.212, allocations: 0.9062 kB / 1.006 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007308/1.213, allocations: 297.1 kB / 1.007 GB, free: 8.836 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.0004884/1.213, allocations: 204.8 kB / 1.007 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008045/1.214, allocations: 0.612 MB / 1.008 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.214, allocations: 7.469 kB / 1.008 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003249/1.214, allocations: 272.2 kB / 1.008 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.216, allocations: 441.7 kB / 1.008 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/1.219, allocations: 1.948 MB / 1.01 GB, free: 7.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/1.219, allocations: 1.126 MB / 1.011 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006727/1.22, allocations: 260.3 kB / 1.011 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/1.22, allocations: 72.36 kB / 1.012 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of SimCode: time 2.81e-07/1.22, allocations: 3.938 kB / 1.012 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of Templates: time 0.02347/1.244, allocations: 15.58 MB / 1.027 GB, free: 3.797 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)