Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_dev_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.001712/0.001713, allocations: 108 kB / 15.6 MB, free: 132 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.001625/0.001625, allocations: 193 kB / 16.53 MB, free: 6.391 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.54/1.54, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8056/0.8056, allocations: 93.72 MB / 384.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 79.31 kB / 463.5 MB, free: 21.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1593, allocations: 68.25 MB / 0.5193 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.333/1.492, allocations: 362.1 MB / 0.8729 GB, free: 0.5898 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.04796/1.54, allocations: 38.69 MB / 0.9107 GB, free: 40 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003571/1.544, allocations: 80.47 kB / 0.9108 GB, free: 36 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.006301/1.55, allocations: 1.982 MB / 0.9127 GB, free: 24 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02919/1.579, allocations: 8.694 MB / 0.9212 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01753/1.597, allocations: 4.21 MB / 0.9253 GB, free: 15.11 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.009684/1.606, allocations: 4.005 MB / 0.9292 GB, free: 14.65 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002528/1.609, allocations: 1.194 MB / 0.9304 GB, free: 14.28 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008878/1.618, allocations: 2.576 MB / 0.9329 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004897/1.623, allocations: 1.773 MB / 0.9346 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0009701/1.624, allocations: 243.7 kB / 0.9349 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03966/1.664, allocations: 16.47 MB / 0.9509 GB, free: 4.156 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.002036/1.666, allocations: 0.8529 MB / 0.9518 GB, free: 3.543 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003637/1.669, allocations: 1.44 MB / 0.9532 GB, free: 2.121 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.03796/1.707, allocations: 9.917 MB / 0.9629 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.707, allocations: 0 / 0.9629 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.943e-06/1.707, allocations: 0 / 0.9629 GB, free: 8.875 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.352e-05/1.707, allocations: 0 / 0.9629 GB, free: 8.875 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.01355/1.721, allocations: 4.51 MB / 0.9673 GB, free: 4.371 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/1.721, allocations: 8.031 kB / 0.9673 GB, free: 4.363 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004415/1.722, allocations: 290.2 kB / 0.9676 GB, free: 4.078 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007717/1.722, allocations: 288.5 kB / 0.9678 GB, free: 3.793 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003048/1.725, allocations: 1.562 MB / 0.9694 GB, free: 2.273 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/1.726, allocations: 140.8 kB / 0.9695 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003306/1.726, allocations: 206.6 kB / 0.9697 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005296/1.731, allocations: 3.084 MB / 0.9727 GB, free: 14.85 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.989e-05/1.731, allocations: 0 / 0.9727 GB, free: 14.85 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00019/1.731, allocations: 73.86 kB / 0.9728 GB, free: 14.79 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002703/1.732, allocations: 190.4 kB / 0.9729 GB, free: 14.6 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005572/1.737, allocations: 3.392 MB / 0.9763 GB, free: 11.22 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01896/1.756, allocations: 12.5 MB / 0.9885 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/1.759, allocations: 1.649 MB / 0.9901 GB, free: 11.99 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002253/1.762, allocations: 1.424 MB / 0.9915 GB, free: 10.56 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003819/1.765, allocations: 3.847 MB / 0.9952 GB, free: 5.906 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.589e-05/1.765, allocations: 56.56 kB / 0.9953 GB, free: 5.84 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 5.751e-06/1.766, allocations: 0 / 0.9953 GB, free: 5.84 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01731/1.783, allocations: 8.552 MB / 1.004 GB, free: 13.08 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.224e-05/1.783, allocations: 99.11 kB / 1.004 GB, free: 12.96 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002157/1.785, allocations: 1.464 MB / 1.005 GB, free: 11.5 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001821/1.785, allocations: 61.22 kB / 1.005 GB, free: 11.44 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009074/1.786, allocations: 0.911 MB / 1.006 GB, free: 10.52 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008329/1.787, allocations: 0.6793 MB / 1.007 GB, free: 9.844 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000655/1.788, allocations: 338.4 kB / 1.007 GB, free: 9.512 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001561/1.788, allocations: 301.1 kB / 1.007 GB, free: 9.215 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/1.79, allocations: 1.038 MB / 1.008 GB, free: 8.176 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/1.792, allocations: 1.151 MB / 1.01 GB, free: 7.016 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00398/1.796, allocations: 2.348 MB / 1.012 GB, free: 4.668 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.796, allocations: 0 / 1.012 GB, free: 4.668 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.00604/1.802, allocations: 3.081 MB / 1.015 GB, free: 1.598 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 3.27e-05/1.802, allocations: 4 kB / 1.015 GB, free: 1.594 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/1.802, allocations: 4 kB / 1.015 GB, free: 1.59 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.803, allocations: 476.1 kB / 1.015 GB, free: 1.121 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/1.805, allocations: 336 kB / 1.016 GB, free: 0.8086 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009032/1.814, allocations: 6.356 MB / 1.022 GB, free: 10.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/1.816, allocations: 44.05 kB / 1.022 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003647/1.816, allocations: 122 kB / 1.022 GB, free: 10.05 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.001266/1.817, allocations: 0.5228 MB / 1.022 GB, free: 9.539 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/1.818, allocations: 205.4 kB / 1.023 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008809/1.827, allocations: 4.661 MB / 1.027 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.955e-05/1.827, allocations: 20 kB / 1.027 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/1.827, allocations: 15.94 kB / 1.027 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.483e-05/1.827, allocations: 11.95 kB / 1.027 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/1.839, allocations: 6.307 MB / 1.033 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/1.839, allocations: 0 / 1.033 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.84, allocations: 306.9 kB / 1.034 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001683/1.842, allocations: 496.4 kB / 1.034 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/1.842, allocations: 83.94 kB / 1.034 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008888/1.851, allocations: 6.364 MB / 1.04 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/1.851, allocations: 0 / 1.04 GB, free: 6.848 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008547/1.859, allocations: 4.793 MB / 1.045 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007486/1.86, allocations: 278.4 kB / 1.045 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003559/1.861, allocations: 47.14 kB / 1.045 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009372/1.862, allocations: 43.97 kB / 1.046 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/1.862, allocations: 165.8 kB / 1.046 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002905/1.862, allocations: 110.8 kB / 1.046 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001791/1.864, allocations: 1.123 MB / 1.047 GB, free: 284 kB / 0.7325 GB Notification: Performance of sort global known variables: time 6.12e-07/1.864, allocations: 0 / 1.047 GB, free: 284 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00512/1.869, allocations: 1.65 MB / 1.048 GB, free: 14.63 MB / 0.7481 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.01406/1.883, allocations: 7.333 MB / 1.056 GB, free: 7.445 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.007804/1.891, allocations: 3.558 MB / 1.059 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.891, allocations: 0 / 1.059 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003593/1.895, allocations: 1.915 MB / 1.061 GB, free: 1.992 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004412/1.899, allocations: 0.8123 MB / 1.062 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04092/1.94, allocations: 22.25 MB / 1.084 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/1.942, allocations: 1.77 MB / 1.085 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003574/1.946, allocations: 1.292 MB / 1.087 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/1.947, allocations: 1.054 MB / 1.088 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of SimCode: time 1.543e-06/1.947, allocations: 0 / 1.088 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4603/2.408, allocations: 92.08 MB / 1.177 GB, free: 390.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/16.85, allocations: 15.78 kB / 1.177 GB, free: 390 MB / 0.8106 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches