Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.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: translateModel(ThermofluidStream.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 101.5 kB / 15.99 MB, free: 6.355 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.00197/0.00197, allocations: 196.8 kB / 16.91 MB, free: 6.188 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.431/1.431, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8256/0.8256, allocations: 93.68 MB / 384.4 MB, free: 5.441 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 76.16 kB / 463.6 MB, free: 6.461 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1319, allocations: 68.27 MB / 0.5194 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.718/0.85, allocations: 236.2 MB / 0.7501 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03608/0.8861, allocations: 36.9 MB / 0.7861 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003961/0.8901, allocations: 141.3 kB / 0.7862 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005295/0.8955, allocations: 1.664 MB / 0.7878 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.009041/0.9045, allocations: 2.81 MB / 0.7906 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.008191/0.9128, allocations: 2.521 MB / 0.7931 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007643/0.9204, allocations: 5.07 MB / 0.798 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.923, allocations: 1.091 MB / 0.7991 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005275/0.9283, allocations: 2.177 MB / 0.8012 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004669/0.933, allocations: 2.715 MB / 0.8038 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001409/0.9344, allocations: 308.8 kB / 0.8041 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.011/0.9454, allocations: 4.526 MB / 0.8086 GB, free: 16.11 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.9469, allocations: 0.7677 MB / 0.8093 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.004423/0.9514, allocations: 1.723 MB / 0.811 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008526/0.9599, allocations: 4.17 MB / 0.8151 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.96, allocations: 0 / 0.8151 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.303e-06/0.96, allocations: 0 / 0.8151 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001614/0.9601, allocations: 0 / 0.8151 GB, free: 15.12 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.0114/0.9715, allocations: 4.056 MB / 0.819 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.9716, allocations: 9.938 kB / 0.819 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.9728, allocations: 348.4 kB / 0.8194 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003847/0.9766, allocations: 1.901 MB / 0.8212 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.9768, allocations: 168 kB / 0.8214 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003836/0.9772, allocations: 241 kB / 0.8216 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004772/0.9819, allocations: 2.82 MB / 0.8244 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.746e-05/0.982, allocations: 0 / 0.8244 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002028/0.9822, allocations: 91.95 kB / 0.8245 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.244e-05/0.9823, allocations: 69.84 kB / 0.8245 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004076/0.9864, allocations: 2.798 MB / 0.8273 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01701/1.003, allocations: 12.05 MB / 0.839 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004315/1.008, allocations: 2.295 MB / 0.8413 GB, free: 14.55 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/1.01, allocations: 1.335 MB / 0.8426 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/1.023, allocations: 8.725 MB / 0.8511 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/1.023, allocations: 55.31 kB / 0.8511 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=225): time 5.761e-06/1.023, allocations: 0 / 0.8511 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of matching and sorting (n=229): time 0.02112/1.044, allocations: 9.377 MB / 0.8603 GB, free: 9.809 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.044, allocations: 158.1 kB / 0.8604 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00318/1.047, allocations: 1.85 MB / 0.8623 GB, free: 7.75 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004301/1.048, allocations: 65.7 kB / 0.8623 GB, free: 7.68 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001035/1.049, allocations: 1.139 MB / 0.8634 GB, free: 6.527 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.05, allocations: 0.7737 MB / 0.8642 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/1.051, allocations: 371.7 kB / 0.8645 GB, free: 5.391 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001338/1.051, allocations: 305.1 kB / 0.8648 GB, free: 5.09 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00174/1.053, allocations: 0.8943 MB / 0.8657 GB, free: 4.191 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/1.055, allocations: 1.195 MB / 0.8669 GB, free: 2.891 MB / 0.6231 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance4.m_flow = flowResistance4.m_flow_0 (flowResistance7.m_flow_0 - flowResistance5.m_flow_0 = flowResistance4.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance10.m_flow = flowResistance10.m_flow_0 (flowResistance6.m_flow_0 - flowResistance11.m_flow_0 = flowResistance10.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance8.m_flow = flowResistance8.m_flow_0 (flowResistance3.m_flow_0 - flowResistance9.m_flow_0 = flowResistance8.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance.m_flow = flowResistance.m_flow_0 (flowResistance2.m_flow_0 - flowResistance1.m_flow_0 = flowResistance.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.05455/1.11, allocations: 11.48 MB / 0.8781 GB, free: 7.285 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/1.11, allocations: 4 kB / 0.8781 GB, free: 7.281 MB / 0.6387 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00774/1.117, allocations: 3.268 MB / 0.8813 GB, free: 4.066 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/1.117, allocations: 4 kB / 0.8813 GB, free: 4.062 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/1.117, allocations: 12.09 kB / 0.8813 GB, free: 4.051 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002873/1.12, allocations: 0.8475 MB / 0.8821 GB, free: 3.195 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001658/1.122, allocations: 378.8 kB / 0.8825 GB, free: 2.848 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01951/1.142, allocations: 11.9 MB / 0.8941 GB, free: 6.473 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002446/1.144, allocations: 139.9 kB / 0.8942 GB, free: 6.336 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/1.145, allocations: 91.97 kB / 0.8943 GB, free: 6.246 MB / 0.6544 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: flowResistance4.m_flow = flowResistance4.m_flow_0 flowResistance10.m_flow = flowResistance10.m_flow_0 flowResistance8.m_flow = flowResistance8.m_flow_0 flowResistance.m_flow = flowResistance.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (199): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,9,77.8%), (3,22,77.8%), (3,19,77.8%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00173/1.146, allocations: 498 kB / 0.8948 GB, free: 5.77 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.147, allocations: 256.8 kB / 0.895 GB, free: 5.516 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009072/1.157, allocations: 4.129 MB / 0.8991 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.352e-05/1.157, allocations: 27.94 kB / 0.8991 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.199e-05/1.157, allocations: 12 kB / 0.8991 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.184e-05/1.157, allocations: 11.95 kB / 0.8991 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/1.171, allocations: 6.612 MB / 0.9056 GB, free: 10.82 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.171, allocations: 4 kB / 0.9056 GB, free: 10.81 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/1.173, allocations: 350 kB / 0.9059 GB, free: 10.49 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/1.175, allocations: 0.7123 MB / 0.9066 GB, free: 9.773 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/1.176, allocations: 83.95 kB / 0.9067 GB, free: 9.691 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01415/1.19, allocations: 10.46 MB / 0.9169 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/1.19, allocations: 11.94 kB / 0.9169 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/1.201, allocations: 4.911 MB / 0.9217 GB, free: 9.781 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/1.202, allocations: 329.6 kB / 0.922 GB, free: 9.438 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008516/1.203, allocations: 59.94 kB / 0.9221 GB, free: 9.379 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/1.205, allocations: 139.6 kB / 0.9222 GB, free: 9.242 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005611/1.205, allocations: 206.1 kB / 0.9224 GB, free: 9.047 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002804/1.206, allocations: 87.95 kB / 0.9225 GB, free: 8.961 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002578/1.208, allocations: 1.337 MB / 0.9238 GB, free: 7.613 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.8e-07/1.208, allocations: 0 / 0.9238 GB, free: 7.613 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004938/1.213, allocations: 1.222 MB / 0.925 GB, free: 6.391 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 8 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance9.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance11.inlet.m_flow,flowResistance6.inlet.m_flow,flowResistance5.inlet.m_flow,flowResistance7.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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,8,100.0%), (3,19,77.8%), (3,22,77.8%), (3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003041/1.216, allocations: 1.375 MB / 0.9263 GB, free: 5.129 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.008265/1.225, allocations: 3.473 MB / 0.9297 GB, free: 1.656 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.225, allocations: 4 kB / 0.9297 GB, free: 1.652 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.004605/1.229, allocations: 2.151 MB / 0.9318 GB, free: 15.5 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00542/1.235, allocations: 0.8739 MB / 0.9327 GB, free: 14.71 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/1.249, allocations: 6.764 MB / 0.9393 GB, free: 7.918 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/1.251, allocations: 1.796 MB / 0.941 GB, free: 6.09 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/1.252, allocations: 251.3 kB / 0.9413 GB, free: 5.844 MB / 0.7012 GB Notification: Performance of SimCode: time 1.333e-06/1.252, allocations: 0 / 0.9413 GB, free: 5.844 MB / 0.7012 GB Notification: Performance of Templates: time 0.3278/1.58, allocations: 96.73 MB / 1.036 GB, free: 347 MB / 0.7637 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches