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.001489/0.001489, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6383/0.6383, allocations: 91.2 MB / 381.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002615/0.002615, allocations: 84.91 kB / 460.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1501, allocations: 67.69 MB / 0.5157 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9642/1.114, allocations: 362.1 MB / 0.8693 GB, free: 0.5352 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03309/1.147, allocations: 38.62 MB / 0.907 GB, free: 84 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/1.149, allocations: 70.41 kB / 0.9071 GB, free: 84 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003922/1.153, allocations: 1.98 MB / 0.909 GB, free: 72 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01846/1.172, allocations: 8.653 MB / 0.9175 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.009594/1.181, allocations: 4.219 MB / 0.9216 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004521/1.186, allocations: 3.902 MB / 0.9254 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001373/1.187, allocations: 1.182 MB / 0.9265 GB, free: 14.9 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004469/1.192, allocations: 2.525 MB / 0.929 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002464/1.194, allocations: 1.764 MB / 0.9307 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004316/1.195, allocations: 248.2 kB / 0.931 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0274/1.222, allocations: 16.47 MB / 0.947 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001285/1.223, allocations: 0.8511 MB / 0.9479 GB, free: 5.492 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002219/1.226, allocations: 1.431 MB / 0.9493 GB, free: 4.5 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02344/1.249, allocations: 9.889 MB / 0.9589 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.249, allocations: 0 / 0.9589 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.643e-06/1.249, allocations: 0 / 0.9589 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 3.852e-05/1.249, allocations: 0 / 0.9589 GB, free: 11.7 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.009658/1.259, allocations: 4.48 MB / 0.9633 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/1.259, allocations: 8.031 kB / 0.9633 GB, free: 7.211 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003304/1.259, allocations: 289.1 kB / 0.9636 GB, free: 6.926 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000582/1.26, allocations: 288.5 kB / 0.9639 GB, free: 6.641 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/1.262, allocations: 1.53 MB / 0.9654 GB, free: 5.152 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-05/1.262, allocations: 140.7 kB / 0.9655 GB, free: 5.02 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002842/1.263, allocations: 197.8 kB / 0.9657 GB, free: 4.832 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004628/1.267, allocations: 3.095 MB / 0.9687 GB, free: 1.73 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/1.267, allocations: 0 / 0.9687 GB, free: 1.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001723/1.268, allocations: 81.23 kB / 0.9688 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002246/1.268, allocations: 183.9 kB / 0.969 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004798/1.273, allocations: 3.385 MB / 0.9723 GB, free: 14.1 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/1.287, allocations: 12.48 MB / 0.9845 GB, free: 0.5391 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/1.289, allocations: 1.662 MB / 0.9861 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/1.291, allocations: 1.418 MB / 0.9875 GB, free: 13.46 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002563/1.294, allocations: 3.85 MB / 0.9912 GB, free: 8.793 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.294, allocations: 51.38 kB / 0.9913 GB, free: 8.738 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 4.599e-06/1.294, allocations: 0 / 0.9913 GB, free: 8.738 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01465/1.308, allocations: 8.532 MB / 0.9996 GB, free: 16 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/1.309, allocations: 99.11 kB / 0.9997 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/1.31, allocations: 1.426 MB / 1.001 GB, free: 14.45 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002242/1.311, allocations: 67.06 kB / 1.001 GB, free: 14.39 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006253/1.311, allocations: 0.8912 MB / 1.002 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005775/1.312, allocations: 0.6675 MB / 1.003 GB, free: 12.82 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005488/1.312, allocations: 343.4 kB / 1.003 GB, free: 12.49 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001085/1.313, allocations: 310.2 kB / 1.003 GB, free: 12.18 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/1.314, allocations: 1.027 MB / 1.004 GB, free: 11.16 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/1.316, allocations: 1.155 MB / 1.005 GB, free: 9.992 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003565/1.319, allocations: 2.355 MB / 1.008 GB, free: 7.633 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.319, allocations: 0 / 1.008 GB, free: 7.633 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.00565/1.325, allocations: 3.074 MB / 1.011 GB, free: 4.574 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/1.325, allocations: 4 kB / 1.011 GB, free: 4.57 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.325, allocations: 0 / 1.011 GB, free: 4.57 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/1.327, allocations: 484.6 kB / 1.011 GB, free: 4.094 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/1.328, allocations: 337.5 kB / 1.012 GB, free: 3.781 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007655/1.336, allocations: 6.341 MB / 1.018 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/1.337, allocations: 52.03 kB / 1.018 GB, free: 13.14 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/1.337, allocations: 122 kB / 1.018 GB, free: 13.03 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.001027/1.338, allocations: 0.5148 MB / 1.018 GB, free: 12.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005923/1.339, allocations: 209.7 kB / 1.019 GB, free: 12.31 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00786/1.347, allocations: 4.649 MB / 1.023 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.636e-05/1.347, allocations: 23.28 kB / 1.023 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/1.347, allocations: 11.94 kB / 1.023 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/1.347, allocations: 7.969 kB / 1.023 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/1.357, allocations: 6.29 MB / 1.029 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.357, allocations: 11.98 kB / 1.029 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/1.358, allocations: 302.1 kB / 1.03 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/1.36, allocations: 0.4931 MB / 1.03 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/1.36, allocations: 79.95 kB / 1.03 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007748/1.368, allocations: 6.354 MB / 1.036 GB, free: 9.859 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.368, allocations: 11.19 kB / 1.036 GB, free: 9.852 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007861/1.376, allocations: 4.779 MB / 1.041 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007765/1.376, allocations: 282.4 kB / 1.041 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/1.377, allocations: 46.59 kB / 1.041 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009397/1.378, allocations: 55.61 kB / 1.041 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003468/1.378, allocations: 161.8 kB / 1.042 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/1.378, allocations: 107.9 kB / 1.042 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001578/1.38, allocations: 1.099 MB / 1.043 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.31e-07/1.38, allocations: 0 / 1.043 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005427/1.385, allocations: 1.649 MB / 1.044 GB, free: 1.664 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.01242/1.398, allocations: 7.341 MB / 1.052 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006515/1.404, allocations: 3.557 MB / 1.055 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/1.404, allocations: 0 / 1.055 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003116/1.408, allocations: 1.909 MB / 1.057 GB, free: 5.012 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003624/1.411, allocations: 0.8147 MB / 1.058 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03436/1.446, allocations: 22.01 MB / 1.079 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/1.447, allocations: 1.758 MB / 1.081 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002672/1.45, allocations: 1.28 MB / 1.082 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.451, allocations: 1.038 MB / 1.083 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of SimCode: time 6.62e-07/1.451, allocations: 0 / 1.083 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8739/2.325, allocations: 91.64 MB / 1.173 GB, free: 398 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/18.77, allocations: 14.19 kB / 1.173 GB, free: 398 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