Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ThermofluidStream.Topology.Tests.TestSplitter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001433, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 197.8 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6835/0.6835, allocations: 91.19 MB / 381.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 79.59 kB / 459.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1224, allocations: 67.71 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestSplitter): time 0.3857/0.5081, allocations: 139.7 MB / 0.6514 GB, free: 10.37 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.5126, allocations: 4.193 MB / 0.6555 GB, free: 6.992 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003421/0.5129, allocations: 18.41 kB / 0.6555 GB, free: 6.984 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005483/0.5135, allocations: 137.7 kB / 0.6557 GB, free: 6.879 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004231/0.514, allocations: 183 kB / 0.6558 GB, free: 6.73 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.5143, allocations: 117.5 kB / 0.656 GB, free: 6.641 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004003/0.5147, allocations: 391.8 kB / 0.6563 GB, free: 6.414 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.5149, allocations: 97.53 kB / 0.6564 GB, free: 6.363 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.5152, allocations: 171.4 kB / 0.6566 GB, free: 6.266 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.5154, allocations: 170.5 kB / 0.6567 GB, free: 6.168 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.5155, allocations: 13.31 kB / 0.6568 GB, free: 6.168 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004651/0.516, allocations: 262.2 kB / 0.657 GB, free: 6.059 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.413e-05/0.516, allocations: 52.86 kB / 0.6571 GB, free: 6.016 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.5162, allocations: 143 kB / 0.6572 GB, free: 5.922 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.5166, allocations: 338.4 kB / 0.6575 GB, free: 5.703 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.5166, allocations: 1.781 kB / 0.6575 GB, free: 5.703 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.5166, allocations: 4 kB / 0.6575 GB, free: 5.699 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.5166, allocations: 0 / 0.6575 GB, free: 5.699 MB / 478.1 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.0008544/0.5175, allocations: 0.5866 MB / 0.6581 GB, free: 5.16 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.5175, allocations: 9.469 kB / 0.6581 GB, free: 5.16 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.5176, allocations: 32.81 kB / 0.6581 GB, free: 5.145 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.518, allocations: 339.8 kB / 0.6585 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.5181, allocations: 13.06 kB / 0.6585 GB, free: 4.828 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/0.5181, allocations: 24.34 kB / 0.6585 GB, free: 4.816 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003991/0.5185, allocations: 228.1 kB / 0.6587 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5185, allocations: 1.281 kB / 0.6587 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.5186, allocations: 8.969 kB / 0.6587 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.5186, allocations: 5.188 kB / 0.6587 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.5188, allocations: 124.7 kB / 0.6589 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.5199, allocations: 0.7706 MB / 0.6596 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.5202, allocations: 139 kB / 0.6597 GB, free: 3.852 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.5204, allocations: 70.3 kB / 0.6598 GB, free: 3.812 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002006/0.5206, allocations: 246.7 kB / 0.66 GB, free: 3.523 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.5206, allocations: 36.84 kB / 0.6601 GB, free: 3.48 MB / 478.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.5206, allocations: 0 / 0.6601 GB, free: 3.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=16): time 0.001608/0.5222, allocations: 0.9172 MB / 0.661 GB, free: 2.68 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.5223, allocations: 53.75 kB / 0.661 GB, free: 2.617 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.5226, allocations: 326.1 kB / 0.6613 GB, free: 2.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.5226, allocations: 29.7 kB / 0.6614 GB, free: 2.375 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.5227, allocations: 175.1 kB / 0.6615 GB, free: 2.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.5228, allocations: 56.89 kB / 0.6616 GB, free: 2.164 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.5228, allocations: 34.23 kB / 0.6616 GB, free: 2.137 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.523, allocations: 354.1 kB / 0.662 GB, free: 1.789 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.047e-05/0.523, allocations: 45.14 kB / 0.662 GB, free: 1.77 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-05/0.5231, allocations: 66.97 kB / 0.6621 GB, free: 1.727 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.5233, allocations: 126.5 kB / 0.6622 GB, free: 1.652 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.5233, allocations: 0 / 0.6622 GB, free: 1.652 MB / 478.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004369/0.5238, allocations: 279.1 kB / 0.6624 GB, free: 1.488 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.5238, allocations: 8.781 kB / 0.6625 GB, free: 1.484 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5238, allocations: 0 / 0.6625 GB, free: 1.484 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/0.5241, allocations: 90.89 kB / 0.6625 GB, free: 1.441 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.086e-05/0.5242, allocations: 19.45 kB / 0.6626 GB, free: 1.438 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/0.5262, allocations: 1.797 MB / 0.6643 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.462e-05/0.5263, allocations: 6.25 kB / 0.6643 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.5264, allocations: 4.594 kB / 0.6643 GB, free: 15.79 MB / 494.1 MB 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001342/0.5265, allocations: 153.5 kB / 0.6645 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.5266, allocations: 36.45 kB / 0.6645 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004811/0.527, allocations: 287.4 kB / 0.6648 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.5271, allocations: 2.469 kB / 0.6648 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.5271, allocations: 1.844 kB / 0.6648 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.5271, allocations: 0 / 0.6648 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000724/0.5278, allocations: 0.6094 MB / 0.6654 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5278, allocations: 2.375 kB / 0.6654 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.034e-05/0.5279, allocations: 15.58 kB / 0.6654 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002763/0.5281, allocations: 106.2 kB / 0.6655 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.5282, allocations: 2.781 kB / 0.6655 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.5299, allocations: 1.802 MB / 0.6673 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.53, allocations: 6.406 kB / 0.6673 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000533/0.5305, allocations: 414.9 kB / 0.6677 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.5306, allocations: 99.42 kB / 0.6678 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.5306, allocations: 6.719 kB / 0.6678 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.5307, allocations: 6.797 kB / 0.6678 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.5308, allocations: 19.78 kB / 0.6678 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.759e-06/0.5308, allocations: 5.375 kB / 0.6678 GB, free: 12.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.531, allocations: 254.3 kB / 0.668 GB, free: 12.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5311, allocations: 0 / 0.668 GB, free: 12.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003676/0.5314, allocations: 78.48 kB / 0.6681 GB, free: 12.54 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002266/0.5317, allocations: 172.9 kB / 0.6683 GB, free: 12.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000547/0.5322, allocations: 297.7 kB / 0.6686 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5322, allocations: 2.625 kB / 0.6686 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.5326, allocations: 241.2 kB / 0.6688 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/0.5333, allocations: 103.1 kB / 0.6689 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.5344, allocations: 0.7814 MB / 0.6697 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.5348, allocations: 0.7747 MB / 0.6704 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.55e-05/0.5349, allocations: 35.45 kB / 0.6704 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.5349, allocations: 23.64 kB / 0.6705 GB, free: 10.59 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5349, allocations: 192 / 0.6705 GB, free: 10.59 MB / 494.1 MB Notification: Performance of Templates: time 0.008689/0.5436, allocations: 5.022 MB / 0.6754 GB, free: 8.098 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestSplitter_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestSplitter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches