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.001332/0.001332, 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.00136/0.00136, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.44/1.44, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7323/0.7323, allocations: 93.72 MB / 384.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002358/0.002358, allocations: 82.98 kB / 463.5 MB, free: 21.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1316, allocations: 68.27 MB / 0.5193 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9793/1.111, allocations: 362.1 MB / 0.8729 GB, free: 0.5703 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03317/1.144, allocations: 38.68 MB / 0.9107 GB, free: 20 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002128/1.146, allocations: 74.31 kB / 0.9108 GB, free: 20 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004321/1.151, allocations: 1.979 MB / 0.9127 GB, free: 8 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02235/1.173, allocations: 8.698 MB / 0.9212 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01054/1.184, allocations: 4.219 MB / 0.9253 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005434/1.189, allocations: 3.996 MB / 0.9292 GB, free: 14.62 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/1.191, allocations: 1.197 MB / 0.9304 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007244/1.198, allocations: 2.57 MB / 0.9329 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003685/1.202, allocations: 1.777 MB / 0.9346 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001121/1.203, allocations: 241.9 kB / 0.9348 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03261/1.236, allocations: 16.47 MB / 0.9509 GB, free: 4.098 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001758/1.238, allocations: 0.8624 MB / 0.9518 GB, free: 3.473 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003391/1.241, allocations: 1.444 MB / 0.9532 GB, free: 2.051 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02742/1.269, allocations: 9.91 MB / 0.9629 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/1.269, allocations: 0 / 0.9629 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.914e-06/1.269, allocations: 0 / 0.9629 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001096/1.269, allocations: 4 kB / 0.9629 GB, free: 8.805 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.01102/1.28, allocations: 4.521 MB / 0.9673 GB, free: 4.293 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/1.28, allocations: 12.03 kB / 0.9673 GB, free: 4.281 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004012/1.28, allocations: 280.1 kB / 0.9676 GB, free: 4.004 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006418/1.281, allocations: 288.5 kB / 0.9678 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/1.284, allocations: 1.556 MB / 0.9694 GB, free: 2.203 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/1.284, allocations: 141.1 kB / 0.9695 GB, free: 2.07 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003013/1.284, allocations: 197.8 kB / 0.9697 GB, free: 1.883 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004893/1.289, allocations: 3.1 MB / 0.9727 GB, free: 14.78 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.576e-05/1.289, allocations: 0 / 0.9727 GB, free: 14.78 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/1.289, allocations: 77.31 kB / 0.9728 GB, free: 14.71 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002498/1.289, allocations: 179.9 kB / 0.9729 GB, free: 14.53 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005055/1.294, allocations: 3.386 MB / 0.9763 GB, free: 11.15 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/1.311, allocations: 12.51 MB / 0.9885 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003072/1.314, allocations: 1.65 MB / 0.9901 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/1.317, allocations: 1.428 MB / 0.9915 GB, free: 10.48 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003533/1.32, allocations: 3.848 MB / 0.9952 GB, free: 5.824 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.959e-05/1.32, allocations: 55.31 kB / 0.9953 GB, free: 5.762 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 5.3e-06/1.32, allocations: 4 kB / 0.9953 GB, free: 5.758 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01755/1.338, allocations: 8.548 MB / 1.004 GB, free: 13 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/1.338, allocations: 98.02 kB / 1.004 GB, free: 12.89 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002189/1.34, allocations: 1.468 MB / 1.005 GB, free: 11.42 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002299/1.34, allocations: 53.7 kB / 1.005 GB, free: 11.36 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007898/1.341, allocations: 0.9169 MB / 1.006 GB, free: 10.44 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008911/1.342, allocations: 0.6661 MB / 1.007 GB, free: 9.777 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006079/1.343, allocations: 348.3 kB / 1.007 GB, free: 9.438 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.343, allocations: 301.1 kB / 1.007 GB, free: 9.141 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/1.345, allocations: 1.038 MB / 1.008 GB, free: 8.102 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001985/1.347, allocations: 1.151 MB / 1.01 GB, free: 6.941 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003977/1.351, allocations: 2.347 MB / 1.012 GB, free: 4.594 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/1.351, allocations: 0 / 1.012 GB, free: 4.594 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.00598/1.357, allocations: 3.076 MB / 1.015 GB, free: 1.527 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/1.357, allocations: 4 kB / 1.015 GB, free: 1.523 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/1.357, allocations: 3.984 kB / 1.015 GB, free: 1.52 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/1.358, allocations: 479.9 kB / 1.015 GB, free: 1.047 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/1.36, allocations: 339.3 kB / 1.016 GB, free: 0.7305 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00876/1.368, allocations: 6.348 MB / 1.022 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/1.37, allocations: 47.98 kB / 1.022 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004425/1.37, allocations: 123.3 kB / 1.022 GB, free: 9.98 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.001271/1.371, allocations: 0.5155 MB / 1.022 GB, free: 9.473 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006669/1.372, allocations: 209.4 kB / 1.023 GB, free: 9.266 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008455/1.381, allocations: 4.661 MB / 1.027 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-05/1.381, allocations: 20 kB / 1.027 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/1.381, allocations: 11.94 kB / 1.027 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-05/1.381, allocations: 7.969 kB / 1.027 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01146/1.392, allocations: 6.31 MB / 1.033 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/1.392, allocations: 0 / 1.033 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/1.393, allocations: 302.5 kB / 1.034 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001461/1.395, allocations: 0.5001 MB / 1.034 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002007/1.395, allocations: 82.12 kB / 1.034 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008777/1.404, allocations: 6.359 MB / 1.04 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.404, allocations: 0 / 1.04 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008599/1.412, allocations: 4.795 MB / 1.045 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/1.413, allocations: 278.4 kB / 1.045 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004447/1.413, allocations: 45.81 kB / 1.045 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/1.415, allocations: 39.98 kB / 1.046 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003629/1.415, allocations: 171.2 kB / 1.046 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002725/1.415, allocations: 111.9 kB / 1.046 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001875/1.417, allocations: 1.127 MB / 1.047 GB, free: 204 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.41e-07/1.417, allocations: 0 / 1.047 GB, free: 204 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004652/1.422, allocations: 1.646 MB / 1.048 GB, free: 14.55 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.01322/1.435, allocations: 7.322 MB / 1.056 GB, free: 7.375 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0071/1.442, allocations: 3.559 MB / 1.059 GB, free: 3.824 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.442, allocations: 4 kB / 1.059 GB, free: 3.82 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003562/1.446, allocations: 1.917 MB / 1.061 GB, free: 1.914 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004094/1.45, allocations: 0.8067 MB / 1.062 GB, free: 1.133 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03883/1.489, allocations: 22.26 MB / 1.084 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/1.491, allocations: 1.766 MB / 1.085 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002986/1.494, allocations: 1.289 MB / 1.087 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/1.495, allocations: 1.058 MB / 1.088 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of SimCode: time 1.472e-06/1.495, allocations: 3.938 kB / 1.088 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3781/1.874, allocations: 92.07 MB / 1.177 GB, free: 390.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/16.14, allocations: 22.97 kB / 1.177 GB, free: 390.1 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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv","/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