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.001876/0.001876, 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.841/1.841, 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.0007908/0.0007907, 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.7324/0.7324, allocations: 90.59 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003028, allocations: 12 kB / 485.9 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3406, allocations: 66.27 MB / 0.5392 GB, free: 45.54 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestSplitter): time 0.1468/0.4875, allocations: 128.5 MB / 0.6647 GB, free: 11.2 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.00504/0.4926, allocations: 3.862 MB / 0.6684 GB, free: 7.332 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003048/0.4929, allocations: 5.875 kB / 0.6684 GB, free: 7.328 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007043/0.4937, allocations: 127.2 kB / 0.6686 GB, free: 7.203 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Topology/Tests/TestSplitter.mo:14:25-14:32:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/Topology/Tests/TestSplitter.mo:14:39-14:49:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0006939/0.4944, allocations: 210.6 kB / 0.6688 GB, free: 6.996 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003754/0.4948, allocations: 83.69 kB / 0.6688 GB, free: 6.914 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004746/0.4953, allocations: 318.4 kB / 0.6691 GB, free: 6.602 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.4955, allocations: 81.73 kB / 0.6692 GB, free: 6.527 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003892/0.4959, allocations: 123.5 kB / 0.6693 GB, free: 6.406 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002993/0.4962, allocations: 143.5 kB / 0.6695 GB, free: 6.266 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.4962, allocations: 8 kB / 0.6695 GB, free: 6.258 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005681/0.4968, allocations: 267.5 kB / 0.6697 GB, free: 5.996 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.4969, allocations: 27.84 kB / 0.6698 GB, free: 5.969 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 8.23e-05/0.497, allocations: 69.58 kB / 0.6698 GB, free: 5.895 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003695/0.4973, allocations: 211.5 kB / 0.67 GB, free: 5.688 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4973, allocations: 4 kB / 0.67 GB, free: 5.684 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4974, allocations: 0 / 0.67 GB, free: 5.684 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.4974, allocations: 0 / 0.67 GB, free: 5.684 MB / 490.7 MB 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.000897/0.4983, allocations: 0.4912 MB / 0.6705 GB, free: 5.148 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.4983, allocations: 8.031 kB / 0.6705 GB, free: 5.141 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.306e-05/0.4984, allocations: 27.72 kB / 0.6705 GB, free: 5.113 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.4987, allocations: 239.4 kB / 0.6708 GB, free: 4.836 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.4988, allocations: 13.69 kB / 0.6708 GB, free: 4.824 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.4988, allocations: 27.84 kB / 0.6708 GB, free: 4.797 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/0.4992, allocations: 186.7 kB / 0.671 GB, free: 4.605 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.4993, allocations: 0.5 kB / 0.671 GB, free: 4.605 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.4993, allocations: 15.98 kB / 0.671 GB, free: 4.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.4993, allocations: 7.953 kB / 0.671 GB, free: 4.582 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.4996, allocations: 130 kB / 0.6711 GB, free: 4.457 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.5009, allocations: 1.07 MB / 0.6722 GB, free: 3.238 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.5014, allocations: 187 kB / 0.6724 GB, free: 3.047 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.5015, allocations: 84.81 kB / 0.6724 GB, free: 2.961 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002238/0.5018, allocations: 252.7 kB / 0.6727 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.5018, allocations: 34.56 kB / 0.6727 GB, free: 2.617 MB / 490.7 MB Notification: Performance of pre-optimization done (n=17): time 1.904e-06/0.5018, allocations: 3.938 kB / 0.6727 GB, free: 2.613 MB / 490.7 MB Notification: Performance of matching and sorting (n=18): time 0.001797/0.5036, allocations: 0.9471 MB / 0.6736 GB, free: 1.555 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.5037, allocations: 55.41 kB / 0.6737 GB, free: 1.488 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.5039, allocations: 180.9 kB / 0.6739 GB, free: 1.305 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.5039, allocations: 25.7 kB / 0.6739 GB, free: 1.273 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.504, allocations: 132.4 kB / 0.674 GB, free: 1.141 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.875e-05/0.5041, allocations: 70.94 kB / 0.6741 GB, free: 1.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-06/0.5041, allocations: 4 kB / 0.6741 GB, free: 1.066 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.5042, allocations: 326.8 kB / 0.6744 GB, free: 0.7383 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.5043, allocations: 64.16 kB / 0.6745 GB, free: 0.6758 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.5045, allocations: 83.22 kB / 0.6745 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.5046, allocations: 73.39 kB / 0.6746 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5046, allocations: 0 / 0.6746 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004862/0.5051, allocations: 282.8 kB / 0.6749 GB, free: 240 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.5051, allocations: 7.281 kB / 0.6749 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.5052, allocations: 1 kB / 0.6749 GB, free: 236 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003617/0.5055, allocations: 93.86 kB / 0.675 GB, free: 140 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.699e-05/0.5056, allocations: 23.98 kB / 0.675 GB, free: 116 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.5077, allocations: 1.804 MB / 0.6768 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.5078, allocations: 20.03 kB / 0.6768 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.5078, allocations: 4 kB / 0.6768 GB, free: 14.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001417/0.508, allocations: 141.6 kB / 0.6769 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/0.508, allocations: 23.73 kB / 0.6769 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005427/0.5086, allocations: 285.7 kB / 0.6772 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5086, allocations: 0 / 0.6772 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5086, allocations: 0 / 0.6772 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.5086, allocations: 4 kB / 0.6772 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003592/0.509, allocations: 305.5 kB / 0.6775 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.509, allocations: 0 / 0.6775 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.5091, allocations: 16 kB / 0.6775 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002831/0.5093, allocations: 97.36 kB / 0.6776 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.5094, allocations: 19.11 kB / 0.6776 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.5114, allocations: 1.8 MB / 0.6794 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5114, allocations: 0 / 0.6794 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006531/0.512, allocations: 460.1 kB / 0.6798 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.5121, allocations: 92.92 kB / 0.6799 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.5121, allocations: 7.75 kB / 0.6799 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.5123, allocations: 12.03 kB / 0.6799 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.5123, allocations: 20.25 kB / 0.68 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.5123, allocations: 4 kB / 0.68 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000117/0.5125, allocations: 133.2 kB / 0.6801 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5125, allocations: 0 / 0.6801 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003745/0.5129, allocations: 83.98 kB / 0.6802 GB, free: 10.46 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003361/0.5132, allocations: 172.6 kB / 0.6803 GB, free: 10.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007285/0.5139, allocations: 362.2 kB / 0.6807 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.514, allocations: 0 / 0.6807 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004913/0.5145, allocations: 302.1 kB / 0.681 GB, free: 9.598 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.5149, allocations: 40.16 kB / 0.681 GB, free: 9.559 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.5161, allocations: 0.7399 MB / 0.6817 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.5164, allocations: 0.7519 MB / 0.6825 GB, free: 8.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.5165, allocations: 19.44 kB / 0.6825 GB, free: 8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.4e-07/0.5165, allocations: 4 kB / 0.6825 GB, free: 7.996 MB / 0.4948 GB Notification: Performance of Templates: time 0.007107/0.5236, allocations: 4.336 MB / 0.6867 GB, free: 3.711 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