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.00592/0.00592, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001379, allocations: 198.2 kB / 16.68 MB, free: 5.93 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002945/0.002945, allocations: 291.9 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.9602/0.9602, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 99.84 kB / 0.6815 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5075/0.5093, allocations: 86.98 MB / 0.7664 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.6122/1.122, allocations: 195.1 MB / 0.9569 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01772/1.139, allocations: 14.31 MB / 0.9709 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/1.141, allocations: 34.97 kB / 0.9709 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001463/1.143, allocations: 0.4968 MB / 0.9714 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00514/1.148, allocations: 1.891 MB / 0.9732 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002396/1.15, allocations: 0.8687 MB / 0.9741 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002942/1.153, allocations: 2.572 MB / 0.9766 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/1.154, allocations: 1.113 MB / 0.9777 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003696/1.158, allocations: 1.627 MB / 0.9793 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/1.16, allocations: 0.925 MB / 0.9802 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001507/1.16, allocations: 107 kB / 0.9803 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/1.162, allocations: 1.095 MB / 0.9814 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003794/1.162, allocations: 0.5004 MB / 0.9818 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0006236/1.163, allocations: 0.6386 MB / 0.9825 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002088/1.165, allocations: 1.912 MB / 0.9843 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/1.165, allocations: 2.859 kB / 0.9843 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/1.165, allocations: 1.031 kB / 0.9843 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.663e-05/1.165, allocations: 0 / 0.9843 GB, free: 1.457 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.001906/1.167, allocations: 1.457 MB / 0.9858 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/1.167, allocations: 8.188 kB / 0.9858 GB, free: 16.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/1.168, allocations: 252.9 kB / 0.986 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/1.169, allocations: 0.7927 MB / 0.9868 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/1.169, allocations: 71.34 kB / 0.9869 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/1.169, allocations: 101.9 kB / 0.987 GB, free: 16.3 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/1.171, allocations: 1.167 MB / 0.9881 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/1.171, allocations: 5.281 kB / 0.9881 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.027e-05/1.171, allocations: 40.47 kB / 0.9881 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.519e-05/1.171, allocations: 33.81 kB / 0.9882 GB, free: 16.08 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/1.172, allocations: 0.9058 MB / 0.9891 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.004701/1.177, allocations: 5.74 MB / 0.9947 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/1.177, allocations: 0.5319 MB / 0.9952 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000341/1.178, allocations: 319.4 kB / 0.9955 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005463/1.178, allocations: 315.7 kB / 0.9958 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.854e-05/1.178, allocations: 38.48 kB / 0.9958 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/1.178, allocations: 0 / 0.9958 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001245/1.18, allocations: 0.8033 MB / 0.9966 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/1.18, allocations: 57.22 kB / 0.9967 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007099/1.18, allocations: 0.7498 MB / 0.9974 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/1.181, allocations: 38.67 kB / 0.9974 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/1.181, allocations: 0.5041 MB / 0.9979 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/1.181, allocations: 180 kB / 0.9981 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/1.181, allocations: 142.3 kB / 0.9982 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001158/1.181, allocations: 332.4 kB / 0.9985 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003117/1.182, allocations: 254.2 kB / 0.9988 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000534/1.182, allocations: 0.5545 MB / 0.9993 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008409/1.183, allocations: 0.8088 MB / 1 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/1.183, allocations: 0 / 1 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001053/1.184, allocations: 0.8432 MB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/1.184, allocations: 8.188 kB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/1.184, allocations: 11.38 kB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/1.184, allocations: 10.12 kB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/1.185, allocations: 154 kB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/1.185, allocations: 18.52 kB / 1.001 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006916/1.185, allocations: 94.69 kB / 1.001 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.933e-05/1.185, allocations: 30.69 kB / 1.001 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.0003481/1.186, allocations: 335.6 kB / 1.002 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/1.186, allocations: 84.81 kB / 1.002 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008025/1.187, allocations: 0.6202 MB / 1.002 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/1.187, allocations: 4.344 kB / 1.002 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/1.187, allocations: 3.844 kB / 1.002 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005722/1.187, allocations: 0.511 MB / 1.003 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/1.189, allocations: 1.682 MB / 1.004 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/1.189, allocations: 2.562 kB / 1.004 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/1.19, allocations: 110.9 kB / 1.005 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/1.19, allocations: 4.938 kB / 1.005 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/1.19, allocations: 20.33 kB / 1.005 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/1.19, allocations: 7.969 kB / 1.005 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.19, allocations: 2.5 kB / 1.005 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/1.191, allocations: 1.012 MB / 1.006 GB, free: 9.254 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/1.191, allocations: 227.3 kB / 1.006 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/1.191, allocations: 15.72 kB / 1.006 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/1.192, allocations: 17.22 kB / 1.006 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.486e-05/1.192, allocations: 34.22 kB / 1.006 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/1.192, allocations: 23.31 kB / 1.006 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005397/1.193, allocations: 0.5103 MB / 1.006 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/1.193, allocations: 0 / 1.006 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008015/1.193, allocations: 296.9 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.0004619/1.194, allocations: 210.9 kB / 1.007 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007682/1.195, allocations: 0.6117 MB / 1.007 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/1.195, allocations: 4.531 kB / 1.007 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002863/1.195, allocations: 271 kB / 1.008 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/1.197, allocations: 447.6 kB / 1.008 GB, free: 8.797 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/1.199, allocations: 1.916 MB / 1.01 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/1.2, allocations: 1.128 MB / 1.011 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0007501/1.201, allocations: 263.8 kB / 1.011 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/1.201, allocations: 70.05 kB / 1.011 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of SimCode: time 5.21e-07/1.201, allocations: 0 / 1.011 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of Templates: time 0.02623/1.227, allocations: 15.57 MB / 1.027 GB, free: 3.953 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)