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.00573/0.00573, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001397/0.001397, allocations: 197 kB / 16.67 MB, free: 5.977 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6329/0.6329, allocations: 91.21 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 79.89 kB / 0.5164 GB, free: 9.496 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1293, allocations: 67.69 MB / 0.5825 GB, free: 5.73 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9673/1.097, allocations: 362.1 MB / 0.9361 GB, free: 0.8164 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0359/1.133, allocations: 38.62 MB / 0.9738 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/1.135, allocations: 69.09 kB / 0.9738 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004691/1.14, allocations: 1.977 MB / 0.9758 GB, free: 13.17 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02147/1.161, allocations: 8.654 MB / 0.9842 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01115/1.172, allocations: 4.219 MB / 0.9883 GB, free: 7.707 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005329/1.178, allocations: 3.916 MB / 0.9922 GB, free: 4.762 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001801/1.179, allocations: 1.171 MB / 0.9933 GB, free: 3.574 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005293/1.185, allocations: 2.567 MB / 0.9958 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002958/1.188, allocations: 1.765 MB / 0.9975 GB, free: 15.79 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0008198/1.189, allocations: 244 kB / 0.9978 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02936/1.218, allocations: 16.52 MB / 1.014 GB, free: 1.027 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001491/1.219, allocations: 0.8552 MB / 1.015 GB, free: 204 kB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.003122/1.223, allocations: 1.435 MB / 1.016 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02569/1.248, allocations: 9.99 MB / 1.026 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.248, allocations: 0 / 1.026 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.202e-06/1.248, allocations: 0 / 1.026 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.000137/1.249, allocations: 4 kB / 1.026 GB, free: 5.48 MB / 0.7169 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.01163/1.26, allocations: 4.472 MB / 1.03 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/1.26, allocations: 8.031 kB / 1.03 GB, free: 1 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006428/1.261, allocations: 280.3 kB / 1.031 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008512/1.262, allocations: 292.5 kB / 1.031 GB, free: 444 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003296/1.265, allocations: 1.628 MB / 1.032 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.962e-05/1.265, allocations: 149.8 kB / 1.033 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004157/1.266, allocations: 198.2 kB / 1.033 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004975/1.271, allocations: 3.097 MB / 1.036 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.424e-05/1.271, allocations: 0 / 1.036 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/1.271, allocations: 74.42 kB / 1.036 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/1.271, allocations: 187.8 kB / 1.036 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004672/1.276, allocations: 3.386 MB / 1.039 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01507/1.291, allocations: 12.4 MB / 1.051 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/1.293, allocations: 1.644 MB / 1.053 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/1.295, allocations: 1.429 MB / 1.054 GB, free: 7.211 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002848/1.298, allocations: 3.854 MB / 1.058 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/1.298, allocations: 59.78 kB / 1.058 GB, free: 2.48 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=196): time 5.16e-06/1.298, allocations: 0 / 1.058 GB, free: 2.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=200): time 0.01582/1.314, allocations: 8.522 MB / 1.067 GB, free: 9.746 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/1.314, allocations: 99.11 kB / 1.067 GB, free: 9.633 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00227/1.316, allocations: 1.43 MB / 1.068 GB, free: 8.199 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001621/1.317, allocations: 61.7 kB / 1.068 GB, free: 8.133 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006202/1.317, allocations: 0.8898 MB / 1.069 GB, free: 7.234 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006198/1.318, allocations: 0.6745 MB / 1.07 GB, free: 6.57 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006609/1.319, allocations: 342.2 kB / 1.07 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.913e-05/1.319, allocations: 301.1 kB / 1.07 GB, free: 5.938 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/1.32, allocations: 1.031 MB / 1.071 GB, free: 4.906 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/1.322, allocations: 1.155 MB / 1.072 GB, free: 3.742 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/1.326, allocations: 2.358 MB / 1.075 GB, free: 1.379 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/1.326, allocations: 0 / 1.075 GB, free: 1.379 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005277/1.331, allocations: 3.069 MB / 1.078 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/1.331, allocations: 8 kB / 1.078 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/1.331, allocations: 0 / 1.078 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001461/1.332, allocations: 468.7 kB / 1.078 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/1.334, allocations: 335.6 kB / 1.078 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007923/1.342, allocations: 6.348 MB / 1.085 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/1.343, allocations: 44.05 kB / 1.085 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004692/1.343, allocations: 117.7 kB / 1.085 GB, free: 6.797 MB / 0.7794 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.001241/1.345, allocations: 0.5301 MB / 1.085 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007181/1.345, allocations: 197.6 kB / 1.086 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008203/1.354, allocations: 4.65 MB / 1.09 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.968e-05/1.354, allocations: 20 kB / 1.09 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-05/1.354, allocations: 8 kB / 1.09 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.633e-05/1.354, allocations: 11.95 kB / 1.09 GB, free: 1.371 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/1.365, allocations: 6.283 MB / 1.096 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/1.365, allocations: 0 / 1.096 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/1.367, allocations: 303.6 kB / 1.097 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/1.368, allocations: 496.5 kB / 1.097 GB, free: 10.3 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002089/1.368, allocations: 90.14 kB / 1.097 GB, free: 10.22 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007805/1.376, allocations: 6.348 MB / 1.103 GB, free: 3.605 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.376, allocations: 3.938 kB / 1.103 GB, free: 3.602 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008355/1.384, allocations: 4.796 MB / 1.108 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007132/1.385, allocations: 270.5 kB / 1.108 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005264/1.386, allocations: 48 kB / 1.108 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.387, allocations: 43.98 kB / 1.108 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/1.387, allocations: 161.8 kB / 1.108 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002843/1.388, allocations: 115.9 kB / 1.109 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00176/1.389, allocations: 1.102 MB / 1.11 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/1.389, allocations: 0 / 1.11 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004908/1.394, allocations: 1.657 MB / 1.111 GB, free: 11.38 MB / 0.8106 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.01309/1.407, allocations: 7.33 MB / 1.118 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005423/1.413, allocations: 3.099 MB / 1.121 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/1.413, allocations: 4 kB / 1.121 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.003357/1.416, allocations: 1.915 MB / 1.123 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004361/1.421, allocations: 0.8064 MB / 1.124 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03408/1.455, allocations: 19.88 MB / 1.144 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/1.457, allocations: 1.754 MB / 1.145 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002943/1.46, allocations: 1.285 MB / 1.147 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/1.461, allocations: 1.05 MB / 1.148 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of SimCode: time 6.51e-07/1.461, allocations: 0 / 1.148 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3912/1.852, allocations: 93.55 MB / 1.239 GB, free: 334.8 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/16.3, allocations: 15.31 kB / 1.239 GB, free: 334.8 MB / 0.8419 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