Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009636, allocations: 90.36 kB / 15.06 MB, free: 1.094 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.0009265/0.0009265, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001808/0.001808, allocations: 270.9 kB / 291.3 MB, free: 1.953 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9469/0.9469, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004063, allocations: 20.25 kB / 0.598 GB, free: 28.45 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1357, allocations: 88.54 MB / 0.6845 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.538/0.6737, allocations: 278.8 MB / 0.9567 GB, free: 9.297 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03039/0.7042, allocations: 24.17 MB / 0.9803 GB, free: 1.082 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003237/0.7074, allocations: 103.3 kB / 0.9804 GB, free: 0.9805 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.003755/0.7112, allocations: 1.203 MB / 0.9816 GB, free: 15.77 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.7225, allocations: 4.366 MB / 0.9858 GB, free: 11.39 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.005615/0.7282, allocations: 1.964 MB / 0.9877 GB, free: 9.441 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.01162/0.7398, allocations: 10.45 MB / 0.9979 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004151/0.744, allocations: 2.544 MB / 1 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006794/0.7508, allocations: 3.202 MB / 1.004 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004659/0.7555, allocations: 2.818 MB / 1.006 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000801/0.7563, allocations: 156 kB / 1.006 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006572/0.7629, allocations: 2.401 MB / 1.009 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001906/0.7648, allocations: 1.43 MB / 1.01 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001508/0.7663, allocations: 0.7693 MB / 1.011 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.006102/0.7724, allocations: 4.746 MB / 1.016 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.7725, allocations: 4 kB / 1.016 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.973e-06/0.7725, allocations: 0 / 1.016 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001191/0.7726, allocations: 3.938 kB / 1.016 GB, free: 12.8 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: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.005827/0.7784, allocations: 3.487 MB / 1.019 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.7785, allocations: 8.031 kB / 1.019 GB, free: 9.242 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005533/0.784, allocations: 0.9366 MB / 1.02 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004689/0.7887, allocations: 2.392 MB / 1.022 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002324/0.789, allocations: 277.4 kB / 1.023 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004689/0.7895, allocations: 291.9 kB / 1.023 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005461/0.7949, allocations: 3.356 MB / 1.026 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.544e-05/0.795, allocations: 4 kB / 1.026 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/0.7953, allocations: 116 kB / 1.026 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.7954, allocations: 113.3 kB / 1.026 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004375/0.7997, allocations: 2.796 MB / 1.029 GB, free: 14.78 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.01415/0.8139, allocations: 13.29 MB / 1.042 GB, free: 308 kB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2778/1.092, allocations: 1.707 MB / 1.044 GB, free: 276.5 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/1.094, allocations: 1.122 MB / 1.045 GB, free: 276.5 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000451/1.094, allocations: 330 kB / 1.045 GB, free: 276.2 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/1.094, allocations: 55.97 kB / 1.045 GB, free: 276.1 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=186): time 4.037e-06/1.094, allocations: 0 / 1.045 GB, free: 276.1 MB / 0.7481 GB Notification: Performance of matching and sorting (n=186): time 0.005363/1.1, allocations: 2.791 MB / 1.048 GB, free: 275.3 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/1.1, allocations: 70.41 kB / 1.048 GB, free: 275.3 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/1.103, allocations: 1.979 MB / 1.05 GB, free: 274.6 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000214/1.103, allocations: 66.95 kB / 1.05 GB, free: 274.5 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000776/1.104, allocations: 1.411 MB / 1.051 GB, free: 273.6 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004989/1.104, allocations: 0.6519 MB / 1.052 GB, free: 273.1 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/1.104, allocations: 39.88 kB / 1.052 GB, free: 273.1 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.68e-05/1.104, allocations: 399.2 kB / 1.052 GB, free: 272.8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/1.106, allocations: 0.8006 MB / 1.053 GB, free: 272.5 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/1.107, allocations: 1.439 MB / 1.055 GB, free: 271.4 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/1.108, allocations: 1.06 MB / 1.056 GB, free: 271 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/1.108, allocations: 1.938 kB / 1.056 GB, free: 271 MB / 0.7481 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003701/1.112, allocations: 2.506 MB / 1.058 GB, free: 270 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001594/1.112, allocations: 473.6 kB / 1.058 GB, free: 269.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/1.112, allocations: 11.97 kB / 1.059 GB, free: 269.4 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.341e-05/1.112, allocations: 25.44 kB / 1.059 GB, free: 269.4 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002376/1.115, allocations: 0.575 MB / 1.059 GB, free: 269.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/1.116, allocations: 4.159 MB / 1.063 GB, free: 265.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002821/1.119, allocations: 406.6 kB / 1.064 GB, free: 265.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/1.119, allocations: 89.31 kB / 1.064 GB, free: 265.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.914e-06/1.119, allocations: 3.469 kB / 1.064 GB, free: 265.1 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003289/1.122, allocations: 2.235 MB / 1.066 GB, free: 264.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/1.122, allocations: 12.44 kB / 1.066 GB, free: 264.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/1.122, allocations: 24.06 kB / 1.066 GB, free: 264.2 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/1.124, allocations: 481 kB / 1.066 GB, free: 264.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.607e-05/1.124, allocations: 33.77 kB / 1.066 GB, free: 264.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/1.127, allocations: 389.3 kB / 1.067 GB, free: 264 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/1.127, allocations: 86.92 kB / 1.067 GB, free: 264 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001627/1.129, allocations: 0.8605 MB / 1.068 GB, free: 263.5 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006011/1.129, allocations: 272.9 kB / 1.068 GB, free: 263.4 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003573/1.133, allocations: 2.156 MB / 1.07 GB, free: 262.5 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/1.133, allocations: 16.91 kB / 1.07 GB, free: 262.5 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/1.133, allocations: 4.219 kB / 1.07 GB, free: 262.5 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002583/1.136, allocations: 1.918 MB / 1.072 GB, free: 261.6 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008048/1.144, allocations: 5.24 MB / 1.077 GB, free: 259.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/1.144, allocations: 2.75 kB / 1.077 GB, free: 259.4 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/1.146, allocations: 0.4971 MB / 1.077 GB, free: 259.4 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.643e-05/1.146, allocations: 15.36 kB / 1.078 GB, free: 259.4 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001431/1.146, allocations: 55.34 kB / 1.078 GB, free: 259.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/1.147, allocations: 4.126 MB / 1.082 GB, free: 255.2 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/1.147, allocations: 4.281 kB / 1.082 GB, free: 255.2 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/1.151, allocations: 3.287 MB / 1.085 GB, free: 253.8 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/1.153, allocations: 0.5808 MB / 1.085 GB, free: 253.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/1.153, allocations: 39.88 kB / 1.085 GB, free: 253.4 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/1.155, allocations: 246.8 kB / 1.086 GB, free: 253.3 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/1.155, allocations: 123.8 kB / 1.086 GB, free: 253.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.156, allocations: 76.56 kB / 1.086 GB, free: 253.3 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001718/1.157, allocations: 1.315 MB / 1.087 GB, free: 252.7 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/1.157, allocations: 0 / 1.087 GB, free: 252.7 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.00382/1.161, allocations: 1.726 MB / 1.089 GB, free: 252.4 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007042/1.162, allocations: 386.5 kB / 1.089 GB, free: 252.2 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005298/1.167, allocations: 3.354 MB / 1.092 GB, free: 250.7 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.167, allocations: 0 / 1.092 GB, free: 250.7 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/1.169, allocations: 1.042 MB / 1.093 GB, free: 250.3 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006442/1.175, allocations: 1.622 MB / 1.095 GB, free: 249.3 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008711/1.184, allocations: 7.94 MB / 1.103 GB, free: 241.4 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/1.185, allocations: 2.19 MB / 1.105 GB, free: 239.2 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0035/1.189, allocations: 1.119 MB / 1.106 GB, free: 238 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006104/1.19, allocations: 231.4 kB / 1.106 GB, free: 237.8 MB / 0.7481 GB Notification: Performance of SimCode: time 6.71e-07/1.19, allocations: 0 / 1.106 GB, free: 237.8 MB / 0.7481 GB Notification: Performance of Templates: time 0.06691/1.256, allocations: 52.13 MB / 1.157 GB, free: 186.4 MB / 0.7481 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)