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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.004505/0.004505, allocations: 101.2 kB / 15.73 MB, free: 5.988 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.001226/0.001226, allocations: 186.2 kB / 16.67 MB, free: 5.914 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6512/0.6512, allocations: 89.45 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002413/0.002413, allocations: 80.19 kB / 0.5139 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1191, allocations: 67.3 MB / 0.5796 GB, free: 8.367 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9154/1.035, allocations: 361.7 MB / 0.9329 GB, free: 0.8203 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03053/1.065, allocations: 38.51 MB / 0.9705 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/1.067, allocations: 26.62 kB / 0.9705 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.004152/1.071, allocations: 1.958 MB / 0.9724 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01961/1.091, allocations: 8.568 MB / 0.9808 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.009708/1.1, allocations: 4.219 MB / 0.9849 GB, free: 10.02 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005051/1.105, allocations: 3.693 MB / 0.9885 GB, free: 7.293 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/1.107, allocations: 1.171 MB / 0.9897 GB, free: 6.117 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004737/1.112, allocations: 2.416 MB / 0.992 GB, free: 4.051 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002477/1.114, allocations: 1.733 MB / 0.9937 GB, free: 2.496 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.000408/1.115, allocations: 244 kB / 0.994 GB, free: 2.258 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02985/1.144, allocations: 16.52 MB / 1.01 GB, free: 3.738 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001363/1.146, allocations: 0.8408 MB / 1.011 GB, free: 2.922 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.002275/1.148, allocations: 1.361 MB / 1.012 GB, free: 1.582 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.02374/1.172, allocations: 9.776 MB / 1.022 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/1.172, allocations: 0 / 1.022 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/1.172, allocations: 0 / 1.022 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.738e-05/1.172, allocations: 0 / 1.022 GB, free: 8.473 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.009976/1.182, allocations: 4.359 MB / 1.026 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/1.182, allocations: 15.97 kB / 1.026 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003548/1.182, allocations: 288 kB / 1.026 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005656/1.183, allocations: 270.3 kB / 1.027 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/1.185, allocations: 1.215 MB / 1.028 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/1.185, allocations: 143.2 kB / 1.028 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/1.185, allocations: 198.5 kB / 1.028 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004635/1.19, allocations: 3.094 MB / 1.031 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/1.19, allocations: 0 / 1.031 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/1.19, allocations: 73.47 kB / 1.031 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/1.19, allocations: 183.9 kB / 1.031 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004876/1.195, allocations: 3.402 MB / 1.035 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/1.21, allocations: 12.34 MB / 1.047 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/1.213, allocations: 1.649 MB / 1.048 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/1.215, allocations: 1.426 MB / 1.05 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003106/1.218, allocations: 3.846 MB / 1.054 GB, free: 6.086 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/1.218, allocations: 60.5 kB / 1.054 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=196): time 4.659e-06/1.218, allocations: 0 / 1.054 GB, free: 6.02 MB / 0.7481 GB Notification: Performance of matching and sorting (n=200): time 0.01448/1.233, allocations: 8.459 MB / 1.062 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/1.233, allocations: 99.11 kB / 1.062 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/1.234, allocations: 1.167 MB / 1.063 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001304/1.234, allocations: 57.7 kB / 1.063 GB, free: 12 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000609/1.235, allocations: 0.7733 MB / 1.064 GB, free: 11.22 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006042/1.236, allocations: 0.7128 MB / 1.065 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005745/1.236, allocations: 341.7 kB / 1.065 GB, free: 10.19 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001313/1.236, allocations: 301.1 kB / 1.065 GB, free: 9.891 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/1.238, allocations: 1.035 MB / 1.066 GB, free: 8.855 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/1.24, allocations: 1.151 MB / 1.067 GB, free: 7.699 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003655/1.243, allocations: 2.351 MB / 1.07 GB, free: 5.344 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/1.243, allocations: 0 / 1.07 GB, free: 5.344 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005342/1.249, allocations: 3.047 MB / 1.073 GB, free: 2.312 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/1.249, allocations: 4 kB / 1.073 GB, free: 2.309 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/1.249, allocations: 4 kB / 1.073 GB, free: 2.305 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001461/1.25, allocations: 475.2 kB / 1.073 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/1.252, allocations: 335 kB / 1.073 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008151/1.26, allocations: 6.361 MB / 1.08 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/1.261, allocations: 51.8 kB / 1.08 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/1.261, allocations: 119.9 kB / 1.08 GB, free: 10.76 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.001015/1.262, allocations: 0.5002 MB / 1.08 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004636/1.263, allocations: 178.9 kB / 1.08 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007806/1.27, allocations: 4.626 MB / 1.085 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-05/1.271, allocations: 20 kB / 1.085 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.466e-05/1.271, allocations: 8 kB / 1.085 GB, free: 5.418 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.352e-05/1.271, allocations: 15.95 kB / 1.085 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/1.281, allocations: 6.195 MB / 1.091 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/1.281, allocations: 8.031 kB / 1.091 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/1.282, allocations: 298.8 kB / 1.091 GB, free: 14.92 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001427/1.283, allocations: 0.4887 MB / 1.092 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/1.284, allocations: 82.12 kB / 1.092 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007895/1.292, allocations: 6.381 MB / 1.098 GB, free: 7.727 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.292, allocations: 7.938 kB / 1.098 GB, free: 7.719 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00757/1.299, allocations: 4.769 MB / 1.103 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005213/1.3, allocations: 247.9 kB / 1.103 GB, free: 2.672 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/1.3, allocations: 43.98 kB / 1.103 GB, free: 2.629 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008301/1.301, allocations: 43.17 kB / 1.103 GB, free: 2.59 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/1.301, allocations: 168.7 kB / 1.103 GB, free: 2.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000226/1.301, allocations: 116.2 kB / 1.103 GB, free: 2.316 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001321/1.303, allocations: 0.9431 MB / 1.104 GB, free: 1.371 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/1.303, allocations: 0 / 1.104 GB, free: 1.371 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00415/1.307, allocations: 1.67 MB / 1.106 GB, free: 15.7 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.01215/1.319, allocations: 7.306 MB / 1.113 GB, free: 8.523 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005294/1.324, allocations: 3.119 MB / 1.116 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.324, allocations: 3.938 kB / 1.116 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.003208/1.328, allocations: 1.917 MB / 1.118 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/1.331, allocations: 0.7815 MB / 1.119 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03011/1.361, allocations: 18.9 MB / 1.137 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/1.363, allocations: 1.654 MB / 1.139 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002552/1.365, allocations: 1.254 MB / 1.14 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/1.367, allocations: 0.9093 MB / 1.141 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of SimCode: time 9.62e-07/1.367, allocations: 0 / 1.141 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.359/1.726, allocations: 89.07 MB / 1.228 GB, free: 346 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/16.41, allocations: 11.62 kB / 1.228 GB, free: 346 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