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.01102/0.01102, allocations: 170.7 kB / 15.12 MB, free: 5.555 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.741/1.741, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.0009313/0.0009317, allocations: 90.86 kB / 269.6 MB, free: 13.37 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.9397/0.9397, allocations: 90.6 MB / 408.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003355, allocations: 8 kB / 485.2 MB, free: 2.098 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4385/0.4389, allocations: 66.28 MB / 0.5386 GB, free: 45.74 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.0246/0.4636, allocations: 27.34 MB / 0.5653 GB, free: 30.93 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008203/0.4718, allocations: 5.368 MB / 0.5705 GB, free: 27.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001286/0.4732, allocations: 14 kB / 0.5705 GB, free: 27.12 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.4746, allocations: 445.8 kB / 0.5709 GB, free: 26.88 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003956/0.4785, allocations: 1.179 MB / 0.5721 GB, free: 26.07 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.4809, allocations: 0.6414 MB / 0.5727 GB, free: 25.72 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002766/0.4836, allocations: 1.238 MB / 0.5739 GB, free: 25.05 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004529/0.4841, allocations: 207.3 kB / 0.5741 GB, free: 24.99 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00203/0.4861, allocations: 0.7235 MB / 0.5748 GB, free: 24.67 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.4873, allocations: 0.5317 MB / 0.5753 GB, free: 24.45 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.4874, allocations: 46 kB / 0.5754 GB, free: 24.45 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003057/0.4905, allocations: 0.7123 MB / 0.5761 GB, free: 24.29 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.4907, allocations: 185.3 kB / 0.5763 GB, free: 24.19 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003838/0.4911, allocations: 236.8 kB / 0.5765 GB, free: 24.06 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002267/0.4934, allocations: 1.149 MB / 0.5776 GB, free: 23.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4934, allocations: 0.7812 kB / 0.5776 GB, free: 23.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4934, allocations: 0 / 0.5776 GB, free: 23.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.4934, allocations: 0 / 0.5776 GB, free: 23.75 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.003272/0.4967, allocations: 1.322 MB / 0.5789 GB, free: 22.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.4968, allocations: 12.28 kB / 0.5789 GB, free: 22.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004736/0.4973, allocations: 127.9 kB / 0.579 GB, free: 22.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.4984, allocations: 0.5788 MB / 0.5796 GB, free: 22.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-05/0.4985, allocations: 73.64 kB / 0.5797 GB, free: 22.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.4987, allocations: 98.34 kB / 0.5798 GB, free: 22.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002216/0.5009, allocations: 1.067 MB / 0.5808 GB, free: 21.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.5009, allocations: 4.688 kB / 0.5808 GB, free: 21.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.623e-05/0.501, allocations: 41.56 kB / 0.5809 GB, free: 21.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.5011, allocations: 22.75 kB / 0.5809 GB, free: 21.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002109/0.5032, allocations: 1.032 MB / 0.5819 GB, free: 21.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006676/0.5099, allocations: 4.884 MB / 0.5867 GB, free: 17.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002354/0.5123, allocations: 1.144 MB / 0.5878 GB, free: 17.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005277/0.5176, allocations: 3.257 MB / 0.591 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/0.5177, allocations: 54.25 kB / 0.591 GB, free: 14.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.469e-06/0.5177, allocations: 1.25 kB / 0.591 GB, free: 14.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01178/0.5295, allocations: 5.023 MB / 0.5959 GB, free: 11.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.5296, allocations: 90.73 kB / 0.596 GB, free: 11.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007295/0.5303, allocations: 0.5282 MB / 0.5965 GB, free: 11.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.5305, allocations: 50.95 kB / 0.5966 GB, free: 11.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.5307, allocations: 377.8 kB / 0.5969 GB, free: 10.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003146/0.531, allocations: 447.8 kB / 0.5974 GB, free: 10.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/0.5311, allocations: 25.09 kB / 0.5974 GB, free: 10.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.5312, allocations: 394.3 kB / 0.5978 GB, free: 9.969 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000997/0.5322, allocations: 482.3 kB / 0.5982 GB, free: 9.742 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/0.5333, allocations: 0.6175 MB / 0.5988 GB, free: 9.355 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.5344, allocations: 0.5375 MB / 0.5993 GB, free: 9.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.5344, allocations: 1.281 kB / 0.5993 GB, free: 9.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003502/0.5379, allocations: 1.61 MB / 0.6009 GB, free: 8.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.538, allocations: 6 kB / 0.6009 GB, free: 8.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.538, allocations: 2.969 kB / 0.6009 GB, free: 8.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.5391, allocations: 312.7 kB / 0.6012 GB, free: 8.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009854/0.5401, allocations: 239 kB / 0.6014 GB, free: 7.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007983/0.5481, allocations: 11.32 MB / 0.6125 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.5496, allocations: 94.42 kB / 0.6126 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.5498, allocations: 46.36 kB / 0.6126 GB, free: 12.52 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.0005914/0.5504, allocations: 250.9 kB / 0.6129 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.5506, allocations: 92.33 kB / 0.613 GB, free: 12.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004475/0.5551, allocations: 1.86 MB / 0.6148 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.5551, allocations: 13.72 kB / 0.6148 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5552, allocations: 7.469 kB / 0.6148 GB, free: 11.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/0.5552, allocations: 9.5 kB / 0.6148 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00647/0.5617, allocations: 3.205 MB / 0.6179 GB, free: 8.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.5617, allocations: 5.5 kB / 0.6179 GB, free: 8.156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.5627, allocations: 251.8 kB / 0.6182 GB, free: 7.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.5639, allocations: 325 kB / 0.6185 GB, free: 7.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.564, allocations: 47.97 kB / 0.6185 GB, free: 7.523 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/0.5741, allocations: 11.32 MB / 0.6296 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5742, allocations: 8.047 kB / 0.6296 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005421/0.5796, allocations: 2.571 MB / 0.6321 GB, free: 8.508 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005122/0.5802, allocations: 163.8 kB / 0.6323 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.5803, allocations: 35.95 kB / 0.6323 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.5812, allocations: 99.78 kB / 0.6324 GB, free: 8.195 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003241/0.5815, allocations: 121.2 kB / 0.6325 GB, free: 8.078 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001514/0.5817, allocations: 53.78 kB / 0.6326 GB, free: 8.027 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005915/0.5823, allocations: 367.1 kB / 0.6329 GB, free: 7.672 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5823, allocations: 3.938 kB / 0.6329 GB, free: 7.668 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002431/0.5848, allocations: 459.8 kB / 0.6334 GB, free: 7.219 MB / 458.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.000904/0.5857, allocations: 441.4 kB / 0.6338 GB, free: 6.797 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004759/0.5904, allocations: 2.334 MB / 0.6361 GB, free: 4.352 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/0.5905, allocations: 7.938 kB / 0.6361 GB, free: 4.344 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003788/0.5943, allocations: 1.786 MB / 0.6378 GB, free: 2.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/0.5969, allocations: 262.7 kB / 0.6381 GB, free: 2.195 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.6034, allocations: 3.011 MB / 0.641 GB, free: 15.16 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008806/0.6043, allocations: 1.076 MB / 0.642 GB, free: 14.06 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001095/0.6054, allocations: 213 kB / 0.6423 GB, free: 13.86 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.6057, allocations: 107.4 kB / 0.6424 GB, free: 13.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.183e-06/0.6057, allocations: 0 / 0.6424 GB, free: 13.76 MB / 474.7 MB Notification: Performance of Templates: time 0.04119/0.6469, allocations: 22.22 MB / 0.6641 GB, free: 7.734 MB / 490.7 MB 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)