Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.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.Topology.Tests.TestSplitter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|splitterN.inlet.m_flow|splitterN.outlets.2..m_flow|splitterN.outlets.3..m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter") translateModel(ThermofluidStream.Topology.Tests.TestSplitter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|splitterN.inlet.m_flow|splitterN.outlets.2..m_flow|splitterN.outlets.3..m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008971/0.0008971, allocations: 168.8 kB / 16.1 MB, free: 5.691 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.171/1.171, allocations: 205 MB / 221.9 MB, free: 9.152 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.0007072/0.0007071, allocations: 86.36 kB / 269.9 MB, free: 8.668 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.5946/0.5946, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002694, allocations: 8 kB / 484.8 MB, free: 7.219 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2328, allocations: 65.82 MB / 0.5377 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestSplitter): time 0.1133/0.3462, allocations: 138 MB / 0.6725 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003594/0.3498, allocations: 4.118 MB / 0.6765 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.35, allocations: 0 / 0.6765 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004327/0.3504, allocations: 135.3 kB / 0.6766 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.3508, allocations: 175 kB / 0.6768 GB, free: 8.078 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.351, allocations: 107.6 kB / 0.6769 GB, free: 7.973 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.3513, allocations: 354.3 kB / 0.6772 GB, free: 7.625 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.3515, allocations: 88.12 kB / 0.6773 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.3517, allocations: 123.5 kB / 0.6774 GB, free: 7.418 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.3519, allocations: 151.4 kB / 0.6776 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.3519, allocations: 8 kB / 0.6776 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004268/0.3524, allocations: 303.3 kB / 0.6779 GB, free: 6.965 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.743e-05/0.3524, allocations: 35.84 kB / 0.6779 GB, free: 6.93 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 8.472e-05/0.3525, allocations: 111.4 kB / 0.678 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.3527, allocations: 231.4 kB / 0.6782 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.3527, allocations: 0 / 0.6782 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3528, allocations: 0 / 0.6782 GB, free: 6.594 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.3528, allocations: 0 / 0.6782 GB, free: 6.594 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0006026/0.3534, allocations: 490.8 kB / 0.6787 GB, free: 6.066 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.652e-05/0.3534, allocations: 8.031 kB / 0.6787 GB, free: 6.059 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.3535, allocations: 24.66 kB / 0.6787 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.3537, allocations: 244.6 kB / 0.679 GB, free: 5.754 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.3537, allocations: 16.38 kB / 0.679 GB, free: 5.738 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.3537, allocations: 20.28 kB / 0.679 GB, free: 5.719 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.354, allocations: 210.5 kB / 0.6792 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3541, allocations: 0 / 0.6792 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.3541, allocations: 8 kB / 0.6792 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.3541, allocations: 4 kB / 0.6792 GB, free: 5.492 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.3543, allocations: 136.3 kB / 0.6793 GB, free: 5.359 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/0.3553, allocations: 1.074 MB / 0.6804 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.3556, allocations: 190.4 kB / 0.6806 GB, free: 3.941 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.3557, allocations: 80.83 kB / 0.6806 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001552/0.3559, allocations: 247.3 kB / 0.6809 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/0.3559, allocations: 34.56 kB / 0.6809 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.3559, allocations: 4 kB / 0.6809 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of matching and sorting (n=18): time 0.001431/0.3574, allocations: 0.963 MB / 0.6819 GB, free: 2.445 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.3574, allocations: 55.41 kB / 0.6819 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.3575, allocations: 171.2 kB / 0.6821 GB, free: 2.203 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.3576, allocations: 29.7 kB / 0.6821 GB, free: 2.168 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/0.3576, allocations: 136.4 kB / 0.6822 GB, free: 2.031 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.3577, allocations: 78.92 kB / 0.6823 GB, free: 1.953 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.3577, allocations: 0 / 0.6823 GB, free: 1.953 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.7e-05/0.3578, allocations: 326.8 kB / 0.6826 GB, free: 1.625 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.3579, allocations: 67.86 kB / 0.6827 GB, free: 1.559 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.358, allocations: 81.67 kB / 0.6828 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.3582, allocations: 152.2 kB / 0.6829 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.3582, allocations: 4 kB / 0.6829 GB, free: 1.316 MB / 0.4948 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004198/0.3586, allocations: 277.9 kB / 0.6832 GB, free: 1.035 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.3587, allocations: 8 kB / 0.6832 GB, free: 1.027 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3587, allocations: 4 kB / 0.6832 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.359, allocations: 96.72 kB / 0.6833 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.669e-05/0.359, allocations: 20 kB / 0.6833 GB, free: 0.9062 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1842/0.5432, allocations: 1.801 MB / 0.6851 GB, free: 143.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.5434, allocations: 18.72 kB / 0.6851 GB, free: 143.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.5435, allocations: 6.562 kB / 0.6851 GB, free: 143.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,6,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.5436, allocations: 135 kB / 0.6852 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.134e-05/0.5437, allocations: 16.94 kB / 0.6852 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005442/0.5442, allocations: 295.9 kB / 0.6855 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.5442, allocations: 2.594 kB / 0.6855 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5442, allocations: 1.562 kB / 0.6855 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5442, allocations: 2.047 kB / 0.6855 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/0.5445, allocations: 294 kB / 0.6858 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5445, allocations: 0 / 0.6858 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-05/0.5446, allocations: 20.84 kB / 0.6858 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002892/0.5449, allocations: 100.1 kB / 0.6859 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.545, allocations: 8.125 kB / 0.6859 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.5464, allocations: 1.813 MB / 0.6877 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5464, allocations: 1.75 kB / 0.6877 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00057/0.547, allocations: 454.7 kB / 0.6881 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.5471, allocations: 89.95 kB / 0.6882 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.5471, allocations: 6.891 kB / 0.6882 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.5472, allocations: 15.77 kB / 0.6882 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.5473, allocations: 13.16 kB / 0.6882 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.5473, allocations: 12.97 kB / 0.6883 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 9.106e-05/0.5474, allocations: 134.3 kB / 0.6884 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5474, allocations: 0 / 0.6884 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003642/0.5478, allocations: 77.84 kB / 0.6885 GB, free: 141.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (sink.inlet.m_flow,sink1.inlet.m_flow,sink2.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,6,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002049/0.548, allocations: 178.7 kB / 0.6886 GB, free: 141 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006012/0.5486, allocations: 374.6 kB / 0.689 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5486, allocations: 0.75 kB / 0.689 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.5491, allocations: 303.1 kB / 0.6893 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.5495, allocations: 33.03 kB / 0.6893 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009775/0.5505, allocations: 0.6917 MB / 0.69 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.5507, allocations: 0.7628 MB / 0.6907 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.333e-05/0.5507, allocations: 15.94 kB / 0.6907 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of SimCode: time 4e-07/0.5507, allocations: 0 / 0.6907 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.006426/0.5571, allocations: 4.334 MB / 0.695 GB, free: 138.4 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestSplitter_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestSplitter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches