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.001034/0.001035, allocations: 177 kB / 16.11 MB, free: 5.535 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.189/1.189, allocations: 205 MB / 221.9 MB, free: 1.832 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006814/0.0006814, allocations: 94.2 kB / 269.9 MB, free: 1.777 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4937/0.4937, allocations: 90.53 MB / 408.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002646, allocations: 8 kB / 484.9 MB, free: 3.57 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09645, allocations: 65.81 MB / 0.5378 GB, free: 1.688 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.2049/0.3014, allocations: 40.96 MB / 0.5778 GB, free: 4.68 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006055/0.3075, allocations: 5.311 MB / 0.5829 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009575/0.3085, allocations: 15.28 kB / 0.583 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001257/0.3097, allocations: 473.4 kB / 0.5834 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002953/0.3127, allocations: 1.201 MB / 0.5846 GB, free: 15.86 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002001/0.3147, allocations: 0.7762 MB / 0.5853 GB, free: 15.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002638/0.3174, allocations: 2.588 MB / 0.5879 GB, free: 14.42 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004032/0.3178, allocations: 241.1 kB / 0.5881 GB, free: 14.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.3197, allocations: 0.9244 MB / 0.589 GB, free: 13.9 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.3207, allocations: 0.6992 MB / 0.5897 GB, free: 13.61 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.3209, allocations: 46.75 kB / 0.5897 GB, free: 13.61 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.3229, allocations: 0.7815 MB / 0.5905 GB, free: 13.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.3232, allocations: 194.7 kB / 0.5907 GB, free: 13.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006732/0.3238, allocations: 0.5454 MB / 0.5912 GB, free: 12.85 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002438/0.3263, allocations: 1.667 MB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3263, allocations: 1.281 kB / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3263, allocations: 0 / 0.5928 GB, free: 11.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.02e-05/0.3264, allocations: 0 / 0.5928 GB, free: 11.79 MB / 410.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.002913/0.3293, allocations: 1.307 MB / 0.5941 GB, free: 10.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.3293, allocations: 12.92 kB / 0.5941 GB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004447/0.3298, allocations: 130.6 kB / 0.5943 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009057/0.3307, allocations: 0.6084 MB / 0.5948 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.3308, allocations: 66.84 kB / 0.5949 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.3309, allocations: 94.34 kB / 0.595 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.3327, allocations: 1.09 MB / 0.5961 GB, free: 9.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.3327, allocations: 0 / 0.5961 GB, free: 9.477 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.914e-05/0.3328, allocations: 38.34 kB / 0.5961 GB, free: 9.449 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.3328, allocations: 21.06 kB / 0.5961 GB, free: 9.449 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.3345, allocations: 1.038 MB / 0.5971 GB, free: 8.953 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004982/0.3395, allocations: 4.818 MB / 0.6018 GB, free: 4.477 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/0.3414, allocations: 1.146 MB / 0.603 GB, free: 3.855 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007852/0.3422, allocations: 0.5563 MB / 0.6035 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003531/0.3457, allocations: 3.18 MB / 0.6066 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.3457, allocations: 52.98 kB / 0.6067 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 3.707e-06/0.3458, allocations: 0 / 0.6067 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.009533/0.3553, allocations: 4.811 MB / 0.6114 GB, free: 12.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.3553, allocations: 90.2 kB / 0.6114 GB, free: 12.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005053/0.3559, allocations: 0.5275 MB / 0.612 GB, free: 11.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-05/0.3559, allocations: 53.7 kB / 0.612 GB, free: 11.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.3562, allocations: 384.9 kB / 0.6124 GB, free: 11.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.3564, allocations: 445.4 kB / 0.6128 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/0.3565, allocations: 28 kB / 0.6128 GB, free: 10.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3566, allocations: 398.7 kB / 0.6132 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008983/0.3576, allocations: 494.3 kB / 0.6137 GB, free: 9.895 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009933/0.3586, allocations: 0.6184 MB / 0.6143 GB, free: 9.238 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.3606, allocations: 1.167 MB / 0.6154 GB, free: 8.035 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3606, allocations: 0 / 0.6154 GB, free: 8.035 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003209/0.3638, allocations: 1.624 MB / 0.617 GB, free: 6.375 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3638, allocations: 8 kB / 0.617 GB, free: 6.367 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3638, allocations: 4.156 kB / 0.617 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009559/0.3648, allocations: 314.9 kB / 0.6173 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.3656, allocations: 243.7 kB / 0.6176 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00747/0.3731, allocations: 11.23 MB / 0.6285 GB, free: 9.488 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007016/0.3738, allocations: 87.84 kB / 0.6286 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.276e-05/0.3739, allocations: 51.98 kB / 0.6287 GB, free: 9.352 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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003389/0.3743, allocations: 237.7 kB / 0.6289 GB, free: 9.109 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.3745, allocations: 98.81 kB / 0.629 GB, free: 9.012 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003767/0.3783, allocations: 1.868 MB / 0.6308 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.3783, allocations: 3.984 kB / 0.6308 GB, free: 7.117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3783, allocations: 7.938 kB / 0.6308 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.3784, allocations: 163.8 kB / 0.631 GB, free: 6.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001333/0.3786, allocations: 32 kB / 0.631 GB, free: 6.898 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007414/0.3793, allocations: 99.77 kB / 0.6311 GB, free: 6.801 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001923/0.3795, allocations: 117.4 kB / 0.6312 GB, free: 6.688 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004365/0.3839, allocations: 1.977 MB / 0.6331 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003653/0.3876, allocations: 2.334 MB / 0.6354 GB, free: 2.336 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001055/0.3886, allocations: 0.6525 MB / 0.6361 GB, free: 1.68 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003532/0.389, allocations: 375.1 kB / 0.6364 GB, free: 1.312 MB / 442.7 MB Notification: Performance of Backend: time 7.61e-07/0.389, allocations: 3.938 kB / 0.6364 GB, free: 1.309 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003612/0.3926, allocations: 2.321 MB / 0.6387 GB, free: 14.86 MB / 458.7 MB Notification: Performance of SimCode: time 0.003306/0.3959, allocations: 3.216 MB / 0.6418 GB, free: 11.58 MB / 458.7 MB Notification: Performance of Templates: time 0.03059/0.4265, allocations: 22.95 MB / 0.6642 GB, free: 4.746 MB / 474.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)