Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001664/0.001664, allocations: 177.4 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.4 MB / 221.9 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007835/0.0007832, allocations: 86.25 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7471/0.7471, allocations: 90.59 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005176/0.0005177, allocations: 12 kB / 485.9 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4006, allocations: 66.27 MB / 0.5392 GB, free: 45.56 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02779/0.4285, allocations: 38.22 MB / 0.5765 GB, free: 22.74 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006432/0.4349, allocations: 4.99 MB / 0.5814 GB, free: 19.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.4361, allocations: 14.94 kB / 0.5814 GB, free: 19.12 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.4374, allocations: 433.9 kB / 0.5818 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003413/0.4408, allocations: 1.178 MB / 0.583 GB, free: 18.17 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002132/0.443, allocations: 0.6304 MB / 0.5836 GB, free: 17.84 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003083/0.4461, allocations: 2.231 MB / 0.5858 GB, free: 16.88 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004606/0.4466, allocations: 217 kB / 0.586 GB, free: 16.81 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002181/0.4488, allocations: 0.8433 MB / 0.5868 GB, free: 16.46 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.4501, allocations: 0.6736 MB / 0.5875 GB, free: 16.19 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.4503, allocations: 50.81 kB / 0.5875 GB, free: 16.18 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.4528, allocations: 0.5649 MB / 0.5881 GB, free: 16.05 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.4531, allocations: 191.6 kB / 0.5883 GB, free: 15.94 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004741/0.4536, allocations: 240.5 kB / 0.5885 GB, free: 15.81 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.4556, allocations: 1.162 MB / 0.5896 GB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4556, allocations: 4 kB / 0.5896 GB, free: 15.49 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4556, allocations: 0 / 0.5896 GB, free: 15.49 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.204e-05/0.4556, allocations: 0 / 0.5896 GB, free: 15.49 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003018/0.4586, allocations: 1.32 MB / 0.5909 GB, free: 14.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.4587, allocations: 8.594 kB / 0.5909 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003929/0.4591, allocations: 131.6 kB / 0.5911 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000943/0.46, allocations: 0.579 MB / 0.5916 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.856e-05/0.4601, allocations: 69.69 kB / 0.5917 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001358/0.4602, allocations: 97.73 kB / 0.5918 GB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001967/0.4622, allocations: 1.078 MB / 0.5928 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.4623, allocations: 1.469 kB / 0.5928 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.852e-05/0.4624, allocations: 41.41 kB / 0.5929 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.006e-05/0.4624, allocations: 22.33 kB / 0.5929 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.4642, allocations: 1.036 MB / 0.5939 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.4697, allocations: 4.807 MB / 0.5986 GB, free: 9.137 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.4717, allocations: 1.155 MB / 0.5997 GB, free: 8.512 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008587/0.4725, allocations: 0.5529 MB / 0.6003 GB, free: 8.227 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003864/0.4764, allocations: 3.174 MB / 0.6034 GB, free: 5.242 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.4765, allocations: 49.91 kB / 0.6034 GB, free: 5.191 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 3.126e-06/0.4765, allocations: 7.938 kB / 0.6034 GB, free: 5.184 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01059/0.4871, allocations: 4.787 MB / 0.6081 GB, free: 2.219 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.4872, allocations: 90.92 kB / 0.6082 GB, free: 2.121 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.4878, allocations: 0.5318 MB / 0.6087 GB, free: 1.797 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.4879, allocations: 47.61 kB / 0.6088 GB, free: 1.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.4881, allocations: 377.4 kB / 0.6091 GB, free: 1.418 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.4884, allocations: 456.7 kB / 0.6095 GB, free: 1.016 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.4884, allocations: 20.41 kB / 0.6096 GB, free: 1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.4885, allocations: 398.9 kB / 0.6099 GB, free: 0.6211 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009321/0.4895, allocations: 481.8 kB / 0.6104 GB, free: 404 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009627/0.4905, allocations: 0.6252 MB / 0.611 GB, free: 8 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.4916, allocations: 0.538 MB / 0.6115 GB, free: 15.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.4916, allocations: 1.375 kB / 0.6115 GB, free: 15.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003527/0.4951, allocations: 1.606 MB / 0.6131 GB, free: 14.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4952, allocations: 6.875 kB / 0.6131 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.4952, allocations: 4.281 kB / 0.6131 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.4964, allocations: 304.2 kB / 0.6134 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.4974, allocations: 247.7 kB / 0.6136 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009631/0.507, allocations: 11.24 MB / 0.6246 GB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.5084, allocations: 91.84 kB / 0.6247 GB, free: 1.961 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/0.5085, allocations: 43.98 kB / 0.6248 GB, free: 1.918 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005733/0.5091, allocations: 245.6 kB / 0.625 GB, free: 1.668 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.5093, allocations: 94.91 kB / 0.6251 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004139/0.5134, allocations: 1.858 MB / 0.6269 GB, free: 15.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/0.5135, allocations: 12 kB / 0.6269 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.505e-06/0.5135, allocations: 4 kB / 0.6269 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/0.5135, allocations: 8.859 kB / 0.6269 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005871/0.5194, allocations: 3.182 MB / 0.63 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5194, allocations: 0 / 0.63 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009907/0.5204, allocations: 255.8 kB / 0.6303 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.5215, allocations: 317.1 kB / 0.6306 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/0.5217, allocations: 47.97 kB / 0.6306 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009159/0.5308, allocations: 11.24 MB / 0.6416 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.5309, allocations: 4.031 kB / 0.6416 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005484/0.5364, allocations: 2.512 MB / 0.644 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004143/0.5368, allocations: 167.8 kB / 0.6442 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/0.5371, allocations: 35.98 kB / 0.6442 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.5382, allocations: 100.8 kB / 0.6443 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.5385, allocations: 117.2 kB / 0.6445 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/0.5386, allocations: 59.97 kB / 0.6445 GB, free: 12.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004816/0.5391, allocations: 367.1 kB / 0.6449 GB, free: 12.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5391, allocations: 0 / 0.6449 GB, free: 12.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002117/0.5412, allocations: 455.8 kB / 0.6453 GB, free: 11.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * 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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008087/0.5421, allocations: 440.9 kB / 0.6457 GB, free: 11.22 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004155/0.5462, allocations: 2.336 MB / 0.648 GB, free: 8.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.5463, allocations: 0 / 0.648 GB, free: 8.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002923/0.5492, allocations: 1.798 MB / 0.6497 GB, free: 6.859 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.551, allocations: 280 kB / 0.65 GB, free: 6.594 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005035/0.556, allocations: 3.058 MB / 0.653 GB, free: 3.512 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006844/0.5568, allocations: 1.049 MB / 0.654 GB, free: 2.434 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/0.5572, allocations: 127.3 kB / 0.6541 GB, free: 2.309 MB / 474.7 MB Notification: Performance of SimCode: time 2.245e-06/0.5572, allocations: 0 / 0.6541 GB, free: 2.309 MB / 474.7 MB Notification: Performance of Templates: time 0.04978/0.607, allocations: 49.69 MB / 0.7027 GB, free: 0.8398 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1)