Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008116/0.0008117, allocations: 179.8 kB / 15.45 MB, free: 6.227 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.095/1.095, allocations: 205 MB / 221.2 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.0006602/0.0006602, allocations: 86.3 kB / 269.2 MB, free: 13.7 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.5634/0.5634, allocations: 90.51 MB / 407.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002543/0.0002543, allocations: 12 kB / 484.3 MB, free: 2.605 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09051, allocations: 65.81 MB / 0.5372 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.2758/0.3663, allocations: 140.9 MB / 0.6748 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.00391/0.3703, allocations: 4.485 MB / 0.6792 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.3704, allocations: 3.938 kB / 0.6792 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004497/0.3709, allocations: 171.1 kB / 0.6793 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0004147/0.3713, allocations: 266.6 kB / 0.6796 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006686/0.372, allocations: 382.7 kB / 0.68 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006089/0.3726, allocations: 0.8299 MB / 0.6808 GB, free: 9.781 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3727, allocations: 93 kB / 0.6809 GB, free: 9.699 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004202/0.3732, allocations: 286.9 kB / 0.6811 GB, free: 9.418 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.3735, allocations: 319 kB / 0.6814 GB, free: 9.105 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.449e-05/0.3736, allocations: 16 kB / 0.6815 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007472/0.3743, allocations: 0.5573 MB / 0.682 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.3744, allocations: 75.73 kB / 0.6821 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.3746, allocations: 171.1 kB / 0.6822 GB, free: 8.289 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0005855/0.3751, allocations: 0.5842 MB / 0.6828 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3752, allocations: 0 / 0.6828 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3752, allocations: 0 / 0.6828 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.3752, allocations: 1.312 kB / 0.6828 GB, free: 7.703 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001075/0.3763, allocations: 0.6556 MB / 0.6834 GB, free: 7.004 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3763, allocations: 8.031 kB / 0.6835 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.3764, allocations: 62.73 kB / 0.6835 GB, free: 6.926 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.137e-05/0.3764, allocations: 32.56 kB / 0.6835 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.3767, allocations: 304.7 kB / 0.6838 GB, free: 6.559 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.3767, allocations: 20.94 kB / 0.6839 GB, free: 6.539 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.3768, allocations: 16.38 kB / 0.6839 GB, free: 6.523 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3773, allocations: 416.6 kB / 0.6843 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3773, allocations: 0 / 0.6843 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.3774, allocations: 4 kB / 0.6843 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3774, allocations: 24.55 kB / 0.6843 GB, free: 6.078 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006442/0.3781, allocations: 489.8 kB / 0.6848 GB, free: 5.602 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3797, allocations: 1.493 MB / 0.6862 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.3803, allocations: 436.5 kB / 0.6866 GB, free: 3.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3807, allocations: 280.7 kB / 0.6869 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.3808, allocations: 101.1 kB / 0.687 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.3808, allocations: 30.56 kB / 0.687 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=38): time 1.513e-06/0.3808, allocations: 0 / 0.687 GB, free: 3.086 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.002476/0.3833, allocations: 1.799 MB / 0.6888 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/0.3833, allocations: 55.41 kB / 0.6888 GB, free: 1.109 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.3835, allocations: 225 kB / 0.6891 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.3836, allocations: 33.7 kB / 0.6891 GB, free: 0.8438 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.446e-05/0.3836, allocations: 140.9 kB / 0.6892 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.957e-05/0.3837, allocations: 138 kB / 0.6894 GB, free: 0.5664 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.287e-05/0.3838, allocations: 8 kB / 0.6894 GB, free: 0.5586 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.3839, allocations: 346.8 kB / 0.6897 GB, free: 216 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.3841, allocations: 207.8 kB / 0.6899 GB, free: 8 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.3844, allocations: 203.7 kB / 0.6901 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005864/0.385, allocations: 470.6 kB / 0.6905 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.385, allocations: 0 / 0.6905 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008747/0.3859, allocations: 0.6187 MB / 0.6911 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3859, allocations: 5.406 kB / 0.6911 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3859, allocations: 0 / 0.6911 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003114/0.3863, allocations: 118 kB / 0.6913 GB, free: 14.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.3865, allocations: 55.94 kB / 0.6913 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.3885, allocations: 2.114 MB / 0.6934 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.3887, allocations: 24.5 kB / 0.6934 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.3887, allocations: 15.98 kB / 0.6934 GB, free: 12.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.3889, allocations: 157.7 kB / 0.6936 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.3889, allocations: 31.72 kB / 0.6936 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.39, allocations: 0.6784 MB / 0.6943 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.39, allocations: 4 kB / 0.6943 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.39, allocations: 5.188 kB / 0.6943 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.39, allocations: 7.922 kB / 0.6943 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004599/0.3905, allocations: 469.2 kB / 0.6947 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3905, allocations: 4 kB / 0.6947 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.3907, allocations: 51.94 kB / 0.6948 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002901/0.391, allocations: 125.4 kB / 0.6949 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.391, allocations: 17.89 kB / 0.6949 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/0.393, allocations: 2.126 MB / 0.697 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.393, allocations: 0 / 0.697 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.3942, allocations: 1.013 MB / 0.698 GB, free: 7.367 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.3943, allocations: 100.7 kB / 0.6981 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.3943, allocations: 8 kB / 0.6981 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.3945, allocations: 16.03 kB / 0.6981 GB, free: 7.227 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.3946, allocations: 35.89 kB / 0.6981 GB, free: 7.191 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.3947, allocations: 21.34 kB / 0.6981 GB, free: 7.172 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001135/0.3948, allocations: 160.5 kB / 0.6983 GB, free: 7.016 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3948, allocations: 3.938 kB / 0.6983 GB, free: 7.012 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004117/0.3952, allocations: 119.9 kB / 0.6984 GB, free: 6.895 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001557/0.3968, allocations: 1.64 MB / 0.7 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009689/0.3977, allocations: 0.7599 MB / 0.7008 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3977, allocations: 0 / 0.7008 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.3984, allocations: 0.5581 MB / 0.7013 GB, free: 3.859 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.3989, allocations: 78.44 kB / 0.7014 GB, free: 3.785 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/0.4031, allocations: 3.965 MB / 0.7053 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.4034, allocations: 0.8073 MB / 0.706 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002088/0.4036, allocations: 93.53 kB / 0.7061 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.4038, allocations: 111.4 kB / 0.7062 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of SimCode: time 3.31e-07/0.4038, allocations: 0 / 0.7062 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.4231, allocations: 10.23 MB / 0.7162 GB, free: 4.777 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.4233, allocations: 249.5 kB / 0.7165 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.964/2.388, allocations: 0 / 0.7165 GB, free: 4.512 MB / 0.5261 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches