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.001406/0.001406, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 271 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9275/0.9275, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 97 kB / 0.5952 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1712, allocations: 86.99 MB / 0.6802 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4981/0.6693, allocations: 195.1 MB / 0.8707 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01533/0.6847, allocations: 14.31 MB / 0.8846 GB, free: 0.8906 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001638/0.6863, allocations: 44.94 kB / 0.8847 GB, free: 0.8711 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.6881, allocations: 0.4935 MB / 0.8852 GB, free: 464 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005232/0.6934, allocations: 1.884 MB / 0.887 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.6957, allocations: 0.8694 MB / 0.8879 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.002968/0.6987, allocations: 2.563 MB / 0.8904 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.7002, allocations: 1.112 MB / 0.8915 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003472/0.7037, allocations: 1.6 MB / 0.893 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001482/0.7052, allocations: 0.9227 MB / 0.8939 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002325/0.7054, allocations: 108.1 kB / 0.894 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.7075, allocations: 1.092 MB / 0.8951 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005383/0.7081, allocations: 0.4994 MB / 0.8956 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0008622/0.7089, allocations: 0.6385 MB / 0.8962 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002434/0.7114, allocations: 1.887 MB / 0.898 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7114, allocations: 0 / 0.898 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.313e-06/0.7114, allocations: 0 / 0.898 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.476e-05/0.7115, allocations: 2.812 kB / 0.898 GB, free: 8.238 MB / 0.6075 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.002751/0.7142, allocations: 1.456 MB / 0.8995 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.7143, allocations: 8.031 kB / 0.8995 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001429/0.7157, allocations: 254.4 kB / 0.8997 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.7169, allocations: 0.7531 MB / 0.9004 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.717, allocations: 66 kB / 0.9005 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.7171, allocations: 95.94 kB / 0.9006 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.7188, allocations: 1.169 MB / 0.9017 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.7189, allocations: 4 kB / 0.9017 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.18e-05/0.7189, allocations: 36 kB / 0.9018 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.024e-05/0.719, allocations: 41.94 kB / 0.9018 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.7204, allocations: 0.9015 MB / 0.9027 GB, free: 3.492 MB / 0.6075 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.005493/0.7259, allocations: 5.771 MB / 0.9083 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008094/0.7267, allocations: 0.5361 MB / 0.9089 GB, free: 12.72 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.7271, allocations: 318.6 kB / 0.9092 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000546/0.7277, allocations: 311.8 kB / 0.9095 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.7277, allocations: 42.92 kB / 0.9095 GB, free: 12 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/0.7277, allocations: 0 / 0.9095 GB, free: 12 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001438/0.7292, allocations: 0.8026 MB / 0.9103 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.7292, allocations: 55.84 kB / 0.9103 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008319/0.7301, allocations: 0.747 MB / 0.9111 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.7301, allocations: 37.7 kB / 0.9111 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/0.7305, allocations: 0.5142 MB / 0.9116 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.7306, allocations: 173.5 kB / 0.9118 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.7308, allocations: 146.4 kB / 0.9119 GB, free: 9.477 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.7309, allocations: 345.9 kB / 0.9122 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.7313, allocations: 241.9 kB / 0.9125 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006115/0.7319, allocations: 0.5585 MB / 0.913 GB, free: 8.203 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/0.7329, allocations: 0.7964 MB / 0.9138 GB, free: 7.297 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.7329, allocations: 4 kB / 0.9138 GB, free: 7.293 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001196/0.7341, allocations: 0.8463 MB / 0.9146 GB, free: 6.441 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.7341, allocations: 12 kB / 0.9146 GB, free: 6.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.7341, allocations: 8 kB / 0.9146 GB, free: 6.422 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.7342, allocations: 12 kB / 0.9147 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.7347, allocations: 155.8 kB / 0.9148 GB, free: 6.258 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.7347, allocations: 19.92 kB / 0.9148 GB, free: 6.238 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.7354, allocations: 91.64 kB / 0.9149 GB, free: 6.148 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.7355, allocations: 36.62 kB / 0.9149 GB, free: 6.113 MB / 0.6231 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.0004084/0.7359, allocations: 334.7 kB / 0.9153 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.736, allocations: 82.97 kB / 0.9153 GB, free: 5.695 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009382/0.737, allocations: 0.6179 MB / 0.916 GB, free: 5.066 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.737, allocations: 8 kB / 0.916 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.737, allocations: 0 / 0.916 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006681/0.7377, allocations: 0.5134 MB / 0.9165 GB, free: 4.535 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.7399, allocations: 1.675 MB / 0.9181 GB, free: 2.781 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.7399, allocations: 0 / 0.9181 GB, free: 2.781 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004984/0.7404, allocations: 115.8 kB / 0.9182 GB, free: 2.668 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.7404, allocations: 4 kB / 0.9182 GB, free: 2.664 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.7405, allocations: 12 kB / 0.9182 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.29e-05/0.7405, allocations: 4 kB / 0.9182 GB, free: 2.648 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.7405, allocations: 7.938 kB / 0.9182 GB, free: 2.641 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.7417, allocations: 1.019 MB / 0.9192 GB, free: 1.582 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.742, allocations: 227.9 kB / 0.9194 GB, free: 1.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.7421, allocations: 8 kB / 0.9195 GB, free: 1.332 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.7426, allocations: 23.98 kB / 0.9195 GB, free: 1.309 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.7427, allocations: 35.89 kB / 0.9195 GB, free: 1.273 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.7428, allocations: 16 kB / 0.9195 GB, free: 1.258 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005679/0.7433, allocations: 0.5107 MB / 0.92 GB, free: 0.75 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7433, allocations: 0 / 0.92 GB, free: 0.75 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008188/0.7442, allocations: 303.3 kB / 0.9203 GB, free: 464 kB / 0.6231 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.0004323/0.7446, allocations: 219.3 kB / 0.9205 GB, free: 252 kB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001112/0.7457, allocations: 0.7134 MB / 0.9212 GB, free: 15.53 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7457, allocations: 4.188 kB / 0.9212 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.7461, allocations: 272.4 kB / 0.9215 GB, free: 15.26 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.7481, allocations: 442.6 kB / 0.9219 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.7512, allocations: 1.955 MB / 0.9238 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008878/0.7521, allocations: 1.122 MB / 0.9249 GB, free: 11.69 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008742/0.753, allocations: 267.1 kB / 0.9252 GB, free: 11.43 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.7532, allocations: 67.42 kB / 0.9252 GB, free: 11.36 MB / 0.6387 GB Notification: Performance of SimCode: time 8.12e-07/0.7532, allocations: 0 / 0.9252 GB, free: 11.36 MB / 0.6387 GB Notification: Performance of Templates: time 0.0267/0.7799, allocations: 15.42 MB / 0.9403 GB, free: 12.21 MB / 0.6544 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)