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.007588/0.007588, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001381/0.001381, allocations: 185.4 kB / 16.67 MB, free: 5.977 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 278.8 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9332/0.9332, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 99.83 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1869, allocations: 86.97 MB / 0.7664 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.6473/0.8342, allocations: 195.1 MB / 0.9569 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0167/0.8509, allocations: 14.32 MB / 0.9709 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.8525, allocations: 35.81 kB / 0.9709 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001396/0.8539, allocations: 0.5046 MB / 0.9714 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004741/0.8587, allocations: 1.882 MB / 0.9733 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002256/0.861, allocations: 0.864 MB / 0.9741 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002956/0.8639, allocations: 2.573 MB / 0.9766 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.8653, allocations: 1.129 MB / 0.9777 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003634/0.869, allocations: 1.61 MB / 0.9793 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.8703, allocations: 0.9189 MB / 0.9802 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000207/0.8705, allocations: 104 kB / 0.9803 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.8725, allocations: 1.103 MB / 0.9814 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004978/0.873, allocations: 0.4987 MB / 0.9819 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007593/0.8738, allocations: 0.6261 MB / 0.9825 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.8761, allocations: 1.928 MB / 0.9843 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.8761, allocations: 0 / 0.9843 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8762, allocations: 0 / 0.9843 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.789e-05/0.8762, allocations: 4 kB / 0.9844 GB, free: 3.441 MB / 0.7325 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.001977/0.8782, allocations: 1.445 MB / 0.9858 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.8782, allocations: 12.03 kB / 0.9858 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001288/0.8795, allocations: 254.3 kB / 0.986 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.8807, allocations: 0.7959 MB / 0.9868 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/0.8807, allocations: 70 kB / 0.9869 GB, free: 0.7812 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.8809, allocations: 88 kB / 0.9869 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.8824, allocations: 1.169 MB / 0.9881 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.8825, allocations: 12.8 kB / 0.9881 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.8826, allocations: 36 kB / 0.9881 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.12e-05/0.8826, allocations: 41.94 kB / 0.9882 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.884, allocations: 0.9054 MB / 0.9891 GB, free: 14.46 MB / 0.7481 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.005232/0.8892, allocations: 5.739 MB / 0.9947 GB, free: 8.262 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008312/0.8901, allocations: 0.5404 MB / 0.9952 GB, free: 7.719 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004089/0.8905, allocations: 315.7 kB / 0.9955 GB, free: 7.41 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005711/0.8911, allocations: 311.8 kB / 0.9958 GB, free: 7.051 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.8911, allocations: 42.98 kB / 0.9958 GB, free: 7 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.505e-06/0.8911, allocations: 0 / 0.9958 GB, free: 7 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001431/0.8926, allocations: 0.7987 MB / 0.9966 GB, free: 6.191 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.8926, allocations: 55.84 kB / 0.9967 GB, free: 6.125 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008846/0.8935, allocations: 0.7548 MB / 0.9974 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.8936, allocations: 41.7 kB / 0.9974 GB, free: 5.316 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.8939, allocations: 0.5104 MB / 0.9979 GB, free: 4.797 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.894, allocations: 173.5 kB / 0.9981 GB, free: 4.625 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.8943, allocations: 142.5 kB / 0.9982 GB, free: 4.477 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.8944, allocations: 341.9 kB / 0.9986 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.8948, allocations: 245.9 kB / 0.9988 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.8954, allocations: 0.5508 MB / 0.9993 GB, free: 3.215 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.8964, allocations: 0.8073 MB / 1 GB, free: 2.297 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.8964, allocations: 0 / 1 GB, free: 2.297 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00123/0.8976, allocations: 0.8467 MB / 1.001 GB, free: 1.445 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.8977, allocations: 8 kB / 1.001 GB, free: 1.438 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.8977, allocations: 12.12 kB / 1.001 GB, free: 1.426 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.8977, allocations: 12.05 kB / 1.001 GB, free: 1.414 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005437/0.8982, allocations: 163.7 kB / 1.001 GB, free: 1.254 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.8983, allocations: 19.92 kB / 1.001 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006746/0.899, allocations: 83.11 kB / 1.001 GB, free: 1.152 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/0.899, allocations: 36 kB / 1.001 GB, free: 1.117 MB / 0.7481 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.0004133/0.8994, allocations: 341.4 kB / 1.002 GB, free: 0.7734 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.8996, allocations: 82.97 kB / 1.002 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009449/0.9005, allocations: 0.6102 MB / 1.002 GB, free: 72 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.9005, allocations: 8 kB / 1.002 GB, free: 64 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.9005, allocations: 0 / 1.002 GB, free: 64 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006923/0.9012, allocations: 0.5172 MB / 1.003 GB, free: 15.54 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002315/0.9036, allocations: 1.667 MB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.9036, allocations: 4 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005106/0.9041, allocations: 115.8 kB / 1.005 GB, free: 13.67 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.9041, allocations: 4 kB / 1.005 GB, free: 13.67 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.957e-05/0.9042, allocations: 20.22 kB / 1.005 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.9042, allocations: 4 kB / 1.005 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.9042, allocations: 0 / 1.005 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.9055, allocations: 1.011 MB / 1.006 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.9059, allocations: 235.9 kB / 1.006 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.971e-05/0.906, allocations: 8 kB / 1.006 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.9064, allocations: 19.98 kB / 1.006 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.9065, allocations: 31.95 kB / 1.006 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.9066, allocations: 20 kB / 1.006 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007082/0.9073, allocations: 0.5146 MB / 1.006 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9073, allocations: 0 / 1.006 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009264/0.9082, allocations: 299.3 kB / 1.007 GB, free: 11.46 MB / 0.7637 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.0004489/0.9087, allocations: 219.3 kB / 1.007 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009086/0.9096, allocations: 0.6107 MB / 1.007 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.9096, allocations: 0 / 1.007 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000351/0.91, allocations: 273.9 kB / 1.008 GB, free: 10.38 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.9118, allocations: 433.2 kB / 1.008 GB, free: 9.961 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.9148, allocations: 1.93 MB / 1.01 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006936/0.9155, allocations: 1.118 MB / 1.011 GB, free: 6.836 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0008648/0.9164, allocations: 275 kB / 1.011 GB, free: 6.562 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.9166, allocations: 79.36 kB / 1.011 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of SimCode: time 9.92e-07/0.9166, allocations: 0 / 1.011 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of Templates: time 0.02686/0.9435, allocations: 15.77 MB / 1.027 GB, free: 6.977 MB / 0.7794 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)