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.001133/0.001133, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001119/0.001119, allocations: 193 kB / 16.25 MB, free: 6.629 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.346/1.346, allocations: 222.9 MB / 239.9 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6569/0.6569, allocations: 91.19 MB / 381.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 82.58 kB / 459.9 MB, free: 23.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1144, allocations: 67.7 MB / 0.5152 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.005/1.12, allocations: 360.6 MB / 0.8674 GB, free: 472 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03705/1.157, allocations: 38.72 MB / 0.9052 GB, free: 0 / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002727/1.16, allocations: 85.66 kB / 0.9053 GB, free: 0 / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00456/1.164, allocations: 1.83 MB / 0.9071 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.02139/1.186, allocations: 7.954 MB / 0.9148 GB, free: 15.63 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01071/1.197, allocations: 3.91 MB / 0.9187 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005326/1.202, allocations: 3.907 MB / 0.9225 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001956/1.204, allocations: 1.191 MB / 0.9236 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005159/1.209, allocations: 2.562 MB / 0.9261 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/1.212, allocations: 1.869 MB / 0.928 GB, free: 14.53 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003583/1.212, allocations: 245.4 kB / 0.9282 GB, free: 14.53 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03266/1.245, allocations: 17.23 MB / 0.945 GB, free: 6.832 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001753/1.246, allocations: 0.8516 MB / 0.9458 GB, free: 6.289 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003475/1.25, allocations: 1.432 MB / 0.9472 GB, free: 5.297 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02933/1.279, allocations: 10.68 MB / 0.9577 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/1.279, allocations: 0 / 0.9577 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.475e-06/1.279, allocations: 0 / 0.9577 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001456/1.28, allocations: 0 / 0.9577 GB, free: 12.93 MB / 0.6544 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.01194/1.291, allocations: 4.47 MB / 0.962 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/1.292, allocations: 16.02 kB / 0.9621 GB, free: 8.441 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003677/1.292, allocations: 283.3 kB / 0.9623 GB, free: 8.164 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006185/1.293, allocations: 292.5 kB / 0.9626 GB, free: 7.875 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/1.295, allocations: 1.519 MB / 0.9641 GB, free: 6.395 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/1.295, allocations: 145.2 kB / 0.9642 GB, free: 6.258 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003014/1.295, allocations: 201.7 kB / 0.9644 GB, free: 6.066 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00467/1.3, allocations: 3.093 MB / 0.9674 GB, free: 2.965 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/1.3, allocations: 3.938 kB / 0.9674 GB, free: 2.961 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/1.3, allocations: 78.56 kB / 0.9675 GB, free: 2.891 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002412/1.301, allocations: 183.9 kB / 0.9677 GB, free: 2.711 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004681/1.305, allocations: 3.383 MB / 0.971 GB, free: 15.34 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/1.321, allocations: 12.41 MB / 0.9831 GB, free: 1.848 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/1.323, allocations: 1.644 MB / 0.9847 GB, free: 200 kB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001862/1.325, allocations: 1.428 MB / 0.9861 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002817/1.328, allocations: 3.849 MB / 0.9899 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.328, allocations: 48.56 kB / 0.9899 GB, free: 10.05 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 4.528e-06/1.328, allocations: 0 / 0.9899 GB, free: 10.05 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01473/1.343, allocations: 8.538 MB / 0.9983 GB, free: 1.312 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/1.343, allocations: 103.1 kB / 0.9984 GB, free: 1.195 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/1.345, allocations: 1.422 MB / 0.9998 GB, free: 15.77 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001454/1.345, allocations: 57.7 kB / 0.9998 GB, free: 15.71 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000578/1.345, allocations: 0.8912 MB / 1.001 GB, free: 14.8 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005023/1.346, allocations: 0.6672 MB / 1.001 GB, free: 14.14 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005413/1.347, allocations: 348.6 kB / 1.002 GB, free: 13.8 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.873e-05/1.347, allocations: 305.1 kB / 1.002 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/1.348, allocations: 1.031 MB / 1.003 GB, free: 12.47 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/1.35, allocations: 1.151 MB / 1.004 GB, free: 11.31 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003305/1.353, allocations: 2.359 MB / 1.006 GB, free: 8.949 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/1.353, allocations: 0 / 1.006 GB, free: 8.949 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005085/1.358, allocations: 3.072 MB / 1.009 GB, free: 5.887 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/1.358, allocations: 4 kB / 1.009 GB, free: 5.883 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.358, allocations: 0 / 1.009 GB, free: 5.883 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/1.36, allocations: 484.3 kB / 1.01 GB, free: 5.406 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/1.361, allocations: 331.2 kB / 1.01 GB, free: 5.098 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007404/1.368, allocations: 6.355 MB / 1.016 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/1.37, allocations: 147.6 kB / 1.017 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003003/1.37, allocations: 118.8 kB / 1.017 GB, free: 14.24 MB / 0.7169 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.001055/1.371, allocations: 0.5177 MB / 1.017 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005073/1.372, allocations: 205.4 kB / 1.017 GB, free: 13.53 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007359/1.379, allocations: 4.648 MB / 1.022 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.582e-05/1.379, allocations: 20 kB / 1.022 GB, free: 8.844 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/1.379, allocations: 11.94 kB / 1.022 GB, free: 8.832 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/1.379, allocations: 7.969 kB / 1.022 GB, free: 8.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/1.39, allocations: 6.3 MB / 1.028 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/1.39, allocations: 4 kB / 1.028 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/1.391, allocations: 302.2 kB / 1.028 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001539/1.393, allocations: 0.4993 MB / 1.029 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/1.393, allocations: 79.94 kB / 1.029 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007792/1.401, allocations: 6.364 MB / 1.035 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.401, allocations: 4 kB / 1.035 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007899/1.409, allocations: 4.791 MB / 1.04 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006517/1.409, allocations: 266.6 kB / 1.04 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/1.41, allocations: 47.84 kB / 1.04 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/1.411, allocations: 134.9 kB / 1.04 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003566/1.412, allocations: 165.8 kB / 1.04 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/1.412, allocations: 107.9 kB / 1.041 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001752/1.414, allocations: 1.102 MB / 1.042 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/1.414, allocations: 0 / 1.042 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004745/1.418, allocations: 1.65 MB / 1.043 GB, free: 2.785 MB / 0.7325 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.01323/1.432, allocations: 7.338 MB / 1.05 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.007515/1.439, allocations: 3.559 MB / 1.054 GB, free: 8.043 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.439, allocations: 0 / 1.054 GB, free: 8.043 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003659/1.443, allocations: 1.908 MB / 1.056 GB, free: 6.137 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004396/1.447, allocations: 0.8105 MB / 1.056 GB, free: 5.352 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03936/1.487, allocations: 22.87 MB / 1.079 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/1.488, allocations: 1.762 MB / 1.081 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002586/1.491, allocations: 1.286 MB / 1.082 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/1.492, allocations: 1.041 MB / 1.083 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of SimCode: time 8.21e-07/1.492, allocations: 0 / 1.083 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.303/2.796, allocations: 91.65 MB / 1.172 GB, free: 396.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/2.796, allocations: 279.2 kB / 1.173 GB, free: 396.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.549/7.344, allocations: 0 / 1.173 GB, free: 396.2 MB / 0.8106 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