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.007396/0.007396, allocations: 169.5 kB / 15.13 MB, free: 6.027 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.388/1.388, allocations: 205.4 MB / 221.3 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.0007572/0.0007579, allocations: 94.28 kB / 269.6 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.7766/0.7766, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004322/0.0004322, allocations: 12 kB / 485.2 MB, free: 2.043 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3552, allocations: 66.27 MB / 0.5386 GB, free: 45.38 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02768/0.383, allocations: 38.21 MB / 0.5759 GB, free: 22.51 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006703/0.3897, allocations: 4.988 MB / 0.5808 GB, free: 18.9 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007546/0.3905, allocations: 18.22 kB / 0.5808 GB, free: 18.89 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.3917, allocations: 438 kB / 0.5812 GB, free: 18.66 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003212/0.3949, allocations: 1.178 MB / 0.5824 GB, free: 17.94 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.3969, allocations: 0.6256 MB / 0.583 GB, free: 17.61 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002394/0.3993, allocations: 2.237 MB / 0.5852 GB, free: 16.65 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.3996, allocations: 211 kB / 0.5854 GB, free: 16.58 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.4012, allocations: 0.8521 MB / 0.5862 GB, free: 16.23 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007354/0.4019, allocations: 0.6657 MB / 0.5868 GB, free: 15.96 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.4021, allocations: 46.28 kB / 0.5869 GB, free: 15.96 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.4039, allocations: 0.5808 MB / 0.5875 GB, free: 15.8 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.4041, allocations: 187.6 kB / 0.5876 GB, free: 15.7 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.4043, allocations: 240.6 kB / 0.5879 GB, free: 15.57 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.4058, allocations: 1.165 MB / 0.589 GB, free: 15.25 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4058, allocations: 1.25 kB / 0.589 GB, free: 15.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.4059, allocations: 8.5 kB / 0.589 GB, free: 15.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.4059, allocations: 0 / 0.589 GB, free: 15.24 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.002612/0.4085, allocations: 1.32 MB / 0.5903 GB, free: 14.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.4085, allocations: 9.375 kB / 0.5903 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.4089, allocations: 127.3 kB / 0.5904 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.4097, allocations: 0.5752 MB / 0.591 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.801e-05/0.4098, allocations: 75.84 kB / 0.5911 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/0.41, allocations: 94.92 kB / 0.5912 GB, free: 13.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.412, allocations: 1.074 MB / 0.5922 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.4121, allocations: 3.938 kB / 0.5922 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.961e-05/0.4122, allocations: 42.05 kB / 0.5922 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.4122, allocations: 23.91 kB / 0.5923 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4141, allocations: 1.036 MB / 0.5933 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004885/0.419, allocations: 4.802 MB / 0.598 GB, free: 8.969 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001884/0.4209, allocations: 1.153 MB / 0.5991 GB, free: 8.344 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009157/0.4218, allocations: 0.5534 MB / 0.5996 GB, free: 8.059 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00375/0.4256, allocations: 3.179 MB / 0.6027 GB, free: 5.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.4256, allocations: 49.59 kB / 0.6028 GB, free: 5.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 3.577e-06/0.4256, allocations: 7.938 kB / 0.6028 GB, free: 5.012 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01007/0.4357, allocations: 4.786 MB / 0.6075 GB, free: 2.051 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.4358, allocations: 90.98 kB / 0.6076 GB, free: 1.953 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006204/0.4364, allocations: 0.5323 MB / 0.6081 GB, free: 1.629 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.363e-05/0.4365, allocations: 47.2 kB / 0.6081 GB, free: 1.582 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.4367, allocations: 380.3 kB / 0.6085 GB, free: 1.246 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002711/0.437, allocations: 456.3 kB / 0.6089 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.4371, allocations: 25.62 kB / 0.6089 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.4372, allocations: 393.8 kB / 0.6093 GB, free: 460 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009494/0.4382, allocations: 478.6 kB / 0.6098 GB, free: 232 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.4392, allocations: 0.6254 MB / 0.6104 GB, free: 15.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.4403, allocations: 0.5341 MB / 0.6109 GB, free: 15.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4403, allocations: 1.375 kB / 0.6109 GB, free: 15.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003439/0.4438, allocations: 1.615 MB / 0.6125 GB, free: 14.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.4438, allocations: 5.406 kB / 0.6125 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.4438, allocations: 2.938 kB / 0.6125 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.4449, allocations: 302.9 kB / 0.6128 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009117/0.4458, allocations: 250.1 kB / 0.613 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008228/0.4541, allocations: 11.23 MB / 0.624 GB, free: 2.047 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009948/0.4551, allocations: 91.88 kB / 0.6241 GB, free: 1.957 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4552, allocations: 47.98 kB / 0.6241 GB, free: 1.91 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.0005382/0.4557, allocations: 251 kB / 0.6244 GB, free: 1.656 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.4559, allocations: 86.97 kB / 0.6244 GB, free: 1.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003901/0.4598, allocations: 1.86 MB / 0.6263 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.4599, allocations: 16 kB / 0.6263 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4599, allocations: 4 kB / 0.6263 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.4599, allocations: 3.984 kB / 0.6263 GB, free: 15.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.4653, allocations: 3.182 MB / 0.6294 GB, free: 12.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4653, allocations: 0 / 0.6294 GB, free: 12.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009696/0.4663, allocations: 255.8 kB / 0.6296 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/0.4673, allocations: 314.7 kB / 0.6299 GB, free: 11.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/0.4674, allocations: 43.98 kB / 0.63 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008236/0.4757, allocations: 11.24 MB / 0.641 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.4757, allocations: 3.984 kB / 0.641 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00506/0.4807, allocations: 2.508 MB / 0.6434 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004147/0.4812, allocations: 171.8 kB / 0.6436 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.4813, allocations: 32 kB / 0.6436 GB, free: 12.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008563/0.4822, allocations: 103.8 kB / 0.6437 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.4824, allocations: 117.2 kB / 0.6438 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.4826, allocations: 55.97 kB / 0.6439 GB, free: 12.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004489/0.483, allocations: 367.1 kB / 0.6442 GB, free: 12.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.483, allocations: 0 / 0.6442 GB, free: 12.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001682/0.4847, allocations: 455.8 kB / 0.6447 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.0007072/0.4854, allocations: 436.6 kB / 0.6451 GB, free: 11.22 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.4891, allocations: 2.339 MB / 0.6474 GB, free: 8.766 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4891, allocations: 0 / 0.6474 GB, free: 8.766 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.4915, allocations: 1.793 MB / 0.6491 GB, free: 6.863 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.493, allocations: 296.7 kB / 0.6494 GB, free: 6.586 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.4972, allocations: 3.009 MB / 0.6523 GB, free: 3.555 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005851/0.4978, allocations: 1.049 MB / 0.6534 GB, free: 2.477 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008281/0.4987, allocations: 221.4 kB / 0.6536 GB, free: 2.281 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.499, allocations: 115.4 kB / 0.6537 GB, free: 2.168 MB / 474.7 MB Notification: Performance of SimCode: time 4.11e-07/0.499, allocations: 7.938 kB / 0.6537 GB, free: 2.16 MB / 474.7 MB Notification: Performance of Templates: time 0.03493/0.5339, allocations: 22.35 MB / 0.6755 GB, free: 12.02 MB / 0.4948 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)