Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003549/0.003549, allocations: 212.2 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.804/1.804, allocations: 230.6 MB / 256 MB, free: 7.77 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.9808/0.9808, allocations: 94.63 MB / 407.1 MB, free: 9.273 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002783/0.002783, allocations: 90.09 kB / 0.555 GB, free: 38.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2062, allocations: 73.05 MB / 0.6263 GB, free: 172 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.194/1.4, allocations: 319.4 MB / 0.9382 GB, free: 9.25 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0627/1.462, allocations: 34.98 MB / 0.9723 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004285/1.467, allocations: 107 kB / 0.9724 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.007368/1.474, allocations: 1.733 MB / 0.9741 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.03593/1.51, allocations: 8.71 MB / 0.9826 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01731/1.527, allocations: 4.293 MB / 0.9868 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.009562/1.537, allocations: 4.024 MB / 0.9908 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001728/1.539, allocations: 0.6295 MB / 0.9914 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008499/1.547, allocations: 2.717 MB / 0.994 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004709/1.552, allocations: 1.751 MB / 0.9957 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001446/1.553, allocations: 244 kB / 0.996 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03902/1.592, allocations: 13.62 MB / 1.009 GB, free: 180 kB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.002501/1.595, allocations: 0.8683 MB / 1.01 GB, free: 15.3 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003103/1.598, allocations: 1.186 MB / 1.011 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.03878/1.637, allocations: 9.659 MB / 1.021 GB, free: 4.426 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 1.285e-05/1.637, allocations: 3.984 kB / 1.021 GB, free: 4.422 MB / 0.7637 GB Notification: Performance of FrontEnd: time 4.058e-06/1.637, allocations: 4 kB / 1.021 GB, free: 4.418 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001437/1.637, allocations: 0 / 1.021 GB, free: 4.418 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.01689/1.654, allocations: 4.581 MB / 1.025 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.861e-05/1.654, allocations: 8.031 kB / 1.025 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006695/1.654, allocations: 282.8 kB / 1.025 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/1.656, allocations: 373.8 kB / 1.026 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004367/1.661, allocations: 1.574 MB / 1.027 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/1.661, allocations: 139.7 kB / 1.027 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004854/1.661, allocations: 203.9 kB / 1.028 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006551/1.668, allocations: 3.128 MB / 1.031 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/1.668, allocations: 4 kB / 1.031 GB, free: 10 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001957/1.668, allocations: 79.97 kB / 1.031 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003023/1.669, allocations: 187.8 kB / 1.031 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005975/1.675, allocations: 3.432 MB / 1.034 GB, free: 6.309 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/1.692, allocations: 7.024 MB / 1.041 GB, free: 15.2 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003474/1.696, allocations: 1.479 MB / 1.043 GB, free: 13.7 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00231/1.698, allocations: 1.27 MB / 1.044 GB, free: 12.43 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00176/1.7, allocations: 0.4897 MB / 1.044 GB, free: 11.94 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.257e-05/1.7, allocations: 56.5 kB / 1.044 GB, free: 11.88 MB / 0.795 GB Notification: Performance of pre-optimization done (n=196): time 7.423e-06/1.7, allocations: 0 / 1.044 GB, free: 11.88 MB / 0.795 GB Notification: Performance of matching and sorting (n=200): time 0.022/1.722, allocations: 7.808 MB / 1.052 GB, free: 4.012 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/1.722, allocations: 99.11 kB / 1.052 GB, free: 3.895 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003005/1.725, allocations: 1.46 MB / 1.054 GB, free: 2.434 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0005539/1.726, allocations: 61.69 kB / 1.054 GB, free: 2.367 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009552/1.727, allocations: 0.928 MB / 1.055 GB, free: 1.43 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009758/1.727, allocations: 0.7009 MB / 1.055 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007585/1.728, allocations: 339.5 kB / 1.056 GB, free: 396 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002042/1.728, allocations: 305.1 kB / 1.056 GB, free: 88 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4872/2.216, allocations: 1.025 MB / 1.057 GB, free: 332.8 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003277/2.219, allocations: 1.153 MB / 1.058 GB, free: 332.8 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004909/2.224, allocations: 2.345 MB / 1.06 GB, free: 332.3 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/2.224, allocations: 0 / 1.06 GB, free: 332.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.006172/2.23, allocations: 3.063 MB / 1.063 GB, free: 331.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/2.23, allocations: 6.25 kB / 1.063 GB, free: 331.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/2.23, allocations: 1.078 kB / 1.063 GB, free: 331.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001741/2.232, allocations: 472.4 kB / 1.064 GB, free: 331.1 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/2.233, allocations: 328.8 kB / 1.064 GB, free: 331.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009679/2.243, allocations: 6.06 MB / 1.07 GB, free: 326.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/2.245, allocations: 45.75 kB / 1.07 GB, free: 326.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004651/2.245, allocations: 114.9 kB / 1.07 GB, free: 326.7 MB / 0.795 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 (172): * Single equations (assignments): 160 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001446/2.247, allocations: 0.519 MB / 1.071 GB, free: 326.4 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008145/2.248, allocations: 216.6 kB / 1.071 GB, free: 326.4 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009004/2.257, allocations: 4.559 MB / 1.075 GB, free: 324.7 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.83e-05/2.257, allocations: 19.59 kB / 1.075 GB, free: 324.7 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/2.257, allocations: 7.828 kB / 1.075 GB, free: 324.7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/2.257, allocations: 8.625 kB / 1.075 GB, free: 324.7 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/2.267, allocations: 5.732 MB / 1.081 GB, free: 322.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/2.267, allocations: 0 / 1.081 GB, free: 322.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/2.268, allocations: 281.4 kB / 1.081 GB, free: 322.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/2.269, allocations: 499.7 kB / 1.082 GB, free: 322.1 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/2.27, allocations: 80.52 kB / 1.082 GB, free: 322.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007728/2.277, allocations: 6.056 MB / 1.088 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/2.277, allocations: 0 / 1.088 GB, free: 317.7 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/2.286, allocations: 4.739 MB / 1.092 GB, free: 315.1 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/2.287, allocations: 204.5 kB / 1.092 GB, free: 314.9 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008048/2.288, allocations: 45.86 kB / 1.092 GB, free: 314.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/2.29, allocations: 49.22 kB / 1.093 GB, free: 314.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004299/2.29, allocations: 170.5 kB / 1.093 GB, free: 314.6 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003708/2.291, allocations: 103.9 kB / 1.093 GB, free: 314.5 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002321/2.293, allocations: 1.131 MB / 1.094 GB, free: 313.4 MB / 0.795 GB Notification: Performance of sort global known variables: time 6e-08/2.293, allocations: 0 / 1.094 GB, free: 313.4 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.007207/2.3, allocations: 1.605 MB / 1.095 GB, free: 312.1 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (150): * Single equations (assignments): 138 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01538/2.315, allocations: 7.184 MB / 1.102 GB, free: 305.4 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00641/2.322, allocations: 2.955 MB / 1.105 GB, free: 302.4 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/2.322, allocations: 0 / 1.105 GB, free: 302.4 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.003563/2.325, allocations: 1.77 MB / 1.107 GB, free: 300.6 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005191/2.331, allocations: 0.811 MB / 1.108 GB, free: 299.9 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04242/2.373, allocations: 20 MB / 1.127 GB, free: 280.1 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/2.375, allocations: 1.193 MB / 1.129 GB, free: 278.9 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.003813/2.379, allocations: 1.285 MB / 1.13 GB, free: 277.6 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/2.381, allocations: 1.023 MB / 1.131 GB, free: 276.6 MB / 0.795 GB Notification: Performance of SimCode: time 2.986e-06/2.381, allocations: 0 / 1.131 GB, free: 276.6 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.177/2.558, allocations: 96.71 MB / 1.225 GB, free: 180.5 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/19.62, allocations: 11.61 kB / 1.225 GB, free: 180.5 MB / 0.795 GB " [Timeout remaining time 640] (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 24.61087199114263]