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.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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007451/0.007451, allocations: 102 kB / 15.73 MB, free: 6.039 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.001667/0.001667, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7575/0.7575, allocations: 91.2 MB / 381.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001828, allocations: 75.89 kB / 0.5164 GB, free: 4.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3757, allocations: 67.68 MB / 0.5825 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.724/1.1, allocations: 362.1 MB / 0.9361 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04783/1.148, allocations: 38.63 MB / 0.9738 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/1.151, allocations: 67.56 kB / 0.9738 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005078/1.156, allocations: 1.966 MB / 0.9758 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02178/1.178, allocations: 8.646 MB / 0.9842 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01139/1.189, allocations: 4.232 MB / 0.9883 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005447/1.194, allocations: 3.903 MB / 0.9922 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/1.196, allocations: 1.178 MB / 0.9933 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005605/1.202, allocations: 2.562 MB / 0.9958 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003147/1.205, allocations: 1.767 MB / 0.9975 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0009056/1.206, allocations: 247.9 kB / 0.9978 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03019/1.236, allocations: 16.52 MB / 1.014 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00141/1.238, allocations: 0.8606 MB / 1.015 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002869/1.241, allocations: 1.427 MB / 1.016 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.02558/1.266, allocations: 9.992 MB / 1.026 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/1.266, allocations: 0 / 1.026 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.443e-06/1.266, allocations: 0 / 1.026 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001291/1.267, allocations: 4 kB / 1.026 GB, free: 2.086 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.2815/1.548, allocations: 4.47 MB / 1.03 GB, free: 329.2 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/1.548, allocations: 7.844 kB / 1.03 GB, free: 329.2 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005024/1.549, allocations: 287.8 kB / 1.031 GB, free: 329 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007937/1.549, allocations: 291 kB / 1.031 GB, free: 328.9 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003092/1.552, allocations: 1.622 MB / 1.032 GB, free: 328.1 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/1.553, allocations: 138.7 kB / 1.033 GB, free: 328 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/1.553, allocations: 202 kB / 1.033 GB, free: 327.9 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005298/1.558, allocations: 3.095 MB / 1.036 GB, free: 326.8 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.913e-05/1.558, allocations: 4.5 kB / 1.036 GB, free: 326.8 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001778/1.558, allocations: 78.28 kB / 1.036 GB, free: 326.7 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002439/1.559, allocations: 181.4 kB / 1.036 GB, free: 326.7 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004002/1.563, allocations: 3.394 MB / 1.039 GB, free: 325.6 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01165/1.574, allocations: 12.4 MB / 1.051 GB, free: 315.2 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/1.577, allocations: 1.648 MB / 1.053 GB, free: 314.3 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/1.578, allocations: 1.424 MB / 1.054 GB, free: 313.5 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001792/1.58, allocations: 3.854 MB / 1.058 GB, free: 309.1 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/1.58, allocations: 56.45 kB / 1.058 GB, free: 309.1 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 5.27e-06/1.58, allocations: 3.219 kB / 1.058 GB, free: 309.1 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01273/1.593, allocations: 8.526 MB / 1.067 GB, free: 302.7 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/1.593, allocations: 95.11 kB / 1.067 GB, free: 302.6 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/1.594, allocations: 1.43 MB / 1.068 GB, free: 301.2 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0002565/1.595, allocations: 53.7 kB / 1.068 GB, free: 301.1 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00043/1.595, allocations: 0.8951 MB / 1.069 GB, free: 300.2 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/1.595, allocations: 0.6727 MB / 1.07 GB, free: 299.5 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004614/1.596, allocations: 346.4 kB / 1.07 GB, free: 299.2 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 4.63e-05/1.596, allocations: 301.1 kB / 1.07 GB, free: 298.9 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/1.597, allocations: 1.038 MB / 1.071 GB, free: 297.9 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001382/1.599, allocations: 1.151 MB / 1.072 GB, free: 296.7 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002814/1.601, allocations: 2.345 MB / 1.075 GB, free: 294.3 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.601, allocations: 3.844 kB / 1.075 GB, free: 294.3 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004683/1.606, allocations: 3.072 MB / 1.078 GB, free: 291.3 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/1.606, allocations: 4 kB / 1.078 GB, free: 291.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.606, allocations: 7.984 kB / 1.078 GB, free: 291.3 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/1.608, allocations: 472.2 kB / 1.078 GB, free: 290.8 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/1.609, allocations: 335.5 kB / 1.078 GB, free: 290.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/1.615, allocations: 6.327 MB / 1.085 GB, free: 283.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/1.617, allocations: 43.88 kB / 1.085 GB, free: 283.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004487/1.617, allocations: 127.8 kB / 1.085 GB, free: 283.7 MB / 0.7637 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.001006/1.618, allocations: 0.5245 MB / 1.085 GB, free: 283.2 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006121/1.619, allocations: 201.5 kB / 1.086 GB, free: 283 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006183/1.625, allocations: 4.657 MB / 1.09 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-05/1.625, allocations: 20 kB / 1.09 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.625, allocations: 15.92 kB / 1.09 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/1.625, allocations: 7.969 kB / 1.09 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008487/1.634, allocations: 6.279 MB / 1.096 GB, free: 272 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.467e-06/1.634, allocations: 4 kB / 1.096 GB, free: 272 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009602/1.635, allocations: 303.6 kB / 1.097 GB, free: 271.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/1.636, allocations: 0.4888 MB / 1.097 GB, free: 271.2 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/1.636, allocations: 87.77 kB / 1.097 GB, free: 271.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005724/1.642, allocations: 6.346 MB / 1.103 GB, free: 264.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.642, allocations: 4 kB / 1.103 GB, free: 264.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006144/1.648, allocations: 4.794 MB / 1.108 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/1.649, allocations: 274.5 kB / 1.108 GB, free: 259.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/1.649, allocations: 47.84 kB / 1.108 GB, free: 259.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009287/1.65, allocations: 39.98 kB / 1.108 GB, free: 259.3 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/1.65, allocations: 172.9 kB / 1.108 GB, free: 259.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.651, allocations: 111.9 kB / 1.109 GB, free: 259.1 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001328/1.652, allocations: 1.095 MB / 1.11 GB, free: 258 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/1.652, allocations: 0 / 1.11 GB, free: 258 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005647/1.658, allocations: 1.654 MB / 1.111 GB, free: 256.5 MB / 0.7637 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 (160): * Single equations (assignments): 148 * 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.01043/1.668, allocations: 7.326 MB / 1.118 GB, free: 249.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004362/1.672, allocations: 3.102 MB / 1.121 GB, free: 246.5 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/1.673, allocations: 0 / 1.121 GB, free: 246.5 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002521/1.675, allocations: 1.915 MB / 1.123 GB, free: 244.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003487/1.679, allocations: 0.8097 MB / 1.124 GB, free: 243.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02601/1.705, allocations: 19.87 MB / 1.144 GB, free: 224.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009693/1.706, allocations: 1.754 MB / 1.145 GB, free: 222.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002223/1.708, allocations: 1.291 MB / 1.147 GB, free: 221 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/1.709, allocations: 1.05 MB / 1.148 GB, free: 220 MB / 0.7637 GB Notification: Performance of SimCode: time 7.51e-07/1.709, allocations: 0 / 1.148 GB, free: 220 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1452/1.854, allocations: 93.55 MB / 1.239 GB, free: 126.8 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/17.41, allocations: 19.48 kB / 1.239 GB, free: 126.8 MB / 0.7637 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) 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) Reference file matches