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.001095/0.001095, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001142/0.001142, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002057/0.002057, allocations: 291.2 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9612/0.9612, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 106.8 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1784, allocations: 86.98 MB / 0.6816 GB, free: 7.434 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4815/0.66, allocations: 195.1 MB / 0.8721 GB, free: 11.3 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01625/0.6762, allocations: 14.32 MB / 0.8861 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.6774, allocations: 31.81 kB / 0.8861 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.6788, allocations: 0.4929 MB / 0.8866 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.00401/0.6828, allocations: 1.898 MB / 0.8884 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.685, allocations: 0.8638 MB / 0.8893 GB, free: 9.645 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002955/0.688, allocations: 2.569 MB / 0.8918 GB, free: 7.07 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.6893, allocations: 1.124 MB / 0.8929 GB, free: 5.922 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003494/0.6928, allocations: 1.597 MB / 0.8945 GB, free: 4.34 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001295/0.6941, allocations: 0.9155 MB / 0.8953 GB, free: 3.426 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.6942, allocations: 108 kB / 0.8954 GB, free: 3.32 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.6962, allocations: 1.103 MB / 0.8965 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004438/0.6967, allocations: 0.4987 MB / 0.897 GB, free: 1.715 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0006246/0.6973, allocations: 0.63 MB / 0.8976 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.002056/0.6994, allocations: 1.916 MB / 0.8995 GB, free: 15.16 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.6994, allocations: 0 / 0.8995 GB, free: 15.16 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6994, allocations: 0 / 0.8995 GB, free: 15.16 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.519e-05/0.6994, allocations: 0 / 0.8995 GB, free: 15.16 MB / 0.67 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.001999/0.7014, allocations: 1.453 MB / 0.9009 GB, free: 13.65 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.7015, allocations: 8.031 kB / 0.9009 GB, free: 13.64 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/0.7027, allocations: 250.3 kB / 0.9012 GB, free: 13.4 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.7041, allocations: 0.7998 MB / 0.9019 GB, free: 12.56 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.852e-05/0.7042, allocations: 70 kB / 0.902 GB, free: 12.49 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.7043, allocations: 95.94 kB / 0.9021 GB, free: 12.4 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.7059, allocations: 1.177 MB / 0.9033 GB, free: 11.15 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/0.7059, allocations: 3.938 kB / 0.9033 GB, free: 11.15 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/0.706, allocations: 36 kB / 0.9033 GB, free: 11.11 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/0.7061, allocations: 37.94 kB / 0.9033 GB, free: 11.07 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.7074, allocations: 0.9015 MB / 0.9042 GB, free: 10.17 MB / 0.67 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.005171/0.7125, allocations: 5.75 MB / 0.9098 GB, free: 3.961 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007996/0.7134, allocations: 0.5316 MB / 0.9103 GB, free: 3.422 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.7138, allocations: 314.6 kB / 0.9106 GB, free: 3.113 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005509/0.7143, allocations: 307.8 kB / 0.9109 GB, free: 2.758 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.7144, allocations: 47 kB / 0.911 GB, free: 2.703 MB / 0.67 GB Notification: Performance of pre-optimization done (n=49): time 1.803e-06/0.7144, allocations: 0 / 0.911 GB, free: 2.703 MB / 0.67 GB Notification: Performance of matching and sorting (n=49): time 0.001444/0.7158, allocations: 0.8026 MB / 0.9118 GB, free: 1.895 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.7159, allocations: 59.84 kB / 0.9118 GB, free: 1.824 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008017/0.7167, allocations: 0.747 MB / 0.9126 GB, free: 1.07 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.7167, allocations: 37.7 kB / 0.9126 GB, free: 1.027 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.7171, allocations: 0.5104 MB / 0.9131 GB, free: 0.5078 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.7172, allocations: 177.5 kB / 0.9133 GB, free: 340 kB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/0.7175, allocations: 146.4 kB / 0.9134 GB, free: 188 kB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.7176, allocations: 337.9 kB / 0.9137 GB, free: 15.85 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.7179, allocations: 245.8 kB / 0.914 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005609/0.7185, allocations: 0.5585 MB / 0.9145 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009169/0.7194, allocations: 0.7956 MB / 0.9153 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.7195, allocations: 4 kB / 0.9153 GB, free: 14.01 MB / 0.6856 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001183/0.7206, allocations: 0.843 MB / 0.9161 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.7207, allocations: 8 kB / 0.9161 GB, free: 13.15 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.7207, allocations: 8 kB / 0.9161 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.7207, allocations: 16.03 kB / 0.9161 GB, free: 13.13 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.7213, allocations: 155.8 kB / 0.9163 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.7213, allocations: 15.94 kB / 0.9163 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006752/0.722, allocations: 95.09 kB / 0.9164 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.722, allocations: 32 kB / 0.9164 GB, free: 12.84 MB / 0.6856 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.0004346/0.7225, allocations: 338.3 kB / 0.9167 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.7226, allocations: 86.97 kB / 0.9168 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009817/0.7236, allocations: 0.6141 MB / 0.9174 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.7236, allocations: 8 kB / 0.9174 GB, free: 11.78 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.7236, allocations: 0 / 0.9174 GB, free: 11.78 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006786/0.7243, allocations: 0.5172 MB / 0.9179 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.7266, allocations: 1.671 MB / 0.9196 GB, free: 9.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.7266, allocations: 4 kB / 0.9196 GB, free: 9.496 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.7272, allocations: 111.8 kB / 0.9197 GB, free: 9.387 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.7272, allocations: 4 kB / 0.9197 GB, free: 9.383 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.7273, allocations: 19.94 kB / 0.9197 GB, free: 9.363 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.7273, allocations: 8.219 kB / 0.9197 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.7273, allocations: 4 kB / 0.9197 GB, free: 9.352 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.7286, allocations: 1.019 MB / 0.9207 GB, free: 8.293 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.729, allocations: 231.9 kB / 0.9209 GB, free: 8.047 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.612e-05/0.7291, allocations: 12 kB / 0.9209 GB, free: 8.035 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/0.7295, allocations: 19.92 kB / 0.921 GB, free: 8.016 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.7296, allocations: 31.95 kB / 0.921 GB, free: 7.984 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.653e-05/0.7296, allocations: 16 kB / 0.921 GB, free: 7.969 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0005922/0.7302, allocations: 0.5146 MB / 0.9215 GB, free: 7.457 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.382e-06/0.7302, allocations: 0 / 0.9215 GB, free: 7.457 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0008573/0.7311, allocations: 303.3 kB / 0.9218 GB, free: 7.16 MB / 0.6856 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.0004386/0.7316, allocations: 207.9 kB / 0.922 GB, free: 6.961 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0009073/0.7325, allocations: 0.6149 MB / 0.9226 GB, free: 6.352 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.7325, allocations: 0 / 0.9226 GB, free: 6.352 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0003459/0.7328, allocations: 271.7 kB / 0.9229 GB, free: 6.086 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/0.7345, allocations: 437.9 kB / 0.9233 GB, free: 5.672 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.7372, allocations: 1.935 MB / 0.9252 GB, free: 3.688 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.7379, allocations: 1.126 MB / 0.9263 GB, free: 2.535 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0006919/0.7386, allocations: 271 kB / 0.9265 GB, free: 2.266 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.7387, allocations: 63.44 kB / 0.9266 GB, free: 2.203 MB / 0.6856 GB Notification: Performance of SimCode: time 5.21e-07/0.7387, allocations: 0 / 0.9266 GB, free: 2.203 MB / 0.6856 GB Notification: Performance of Templates: time 0.02366/0.7624, allocations: 15.4 MB / 0.9416 GB, free: 3.07 MB / 0.7012 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)