Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.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.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology") translateModel(ThermofluidStream.Topology.Tests.TestDynamicTopology,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|dynamicJunctionNM.dynamicJunctionN.junction.outlet.m_flow|dynamicJunctionNM1.dynamicJunctionN.junction.outlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 106.9 kB / 16.37 MB, free: 6.48 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.001607/0.001607, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6509/0.6509, allocations: 89.49 MB / 380.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 83.86 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.129, allocations: 67.3 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.437/1.566, allocations: 0.556 GB / 1.071 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.05441/1.62, allocations: 47.78 MB / 1.117 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004196/1.625, allocations: 57.09 kB / 1.117 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.009055/1.634, allocations: 3.861 MB / 1.121 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.04433/1.678, allocations: 18.48 MB / 1.139 GB, free: 8.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01506/1.693, allocations: 6.402 MB / 1.145 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01052/1.704, allocations: 7.969 MB / 1.153 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003129/1.707, allocations: 2.596 MB / 1.156 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007401/1.714, allocations: 4.064 MB / 1.16 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005359/1.72, allocations: 3.646 MB / 1.163 GB, free: 8.91 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001591/1.721, allocations: 0.5938 MB / 1.164 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06958/1.791, allocations: 36.03 MB / 1.199 GB, free: 6.91 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003629/1.795, allocations: 1.857 MB / 1.201 GB, free: 5.074 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.005297/1.8, allocations: 3.013 MB / 1.204 GB, free: 2.074 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.05228/1.852, allocations: 21.84 MB / 1.225 GB, free: 13.43 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.984e-06/1.852, allocations: 3.984 kB / 1.225 GB, free: 13.42 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.743e-06/1.852, allocations: 0 / 1.225 GB, free: 13.42 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001383/1.852, allocations: 0 / 1.225 GB, free: 13.42 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1130 * Number of variables: 1130 Notification: Performance of Generate backend data structure: time 0.02353/1.876, allocations: 8.981 MB / 1.234 GB, free: 4.426 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/1.876, allocations: 8.031 kB / 1.234 GB, free: 4.418 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001888/1.878, allocations: 0.5366 MB / 1.234 GB, free: 3.875 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006022/1.884, allocations: 2.508 MB / 1.237 GB, free: 1.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/1.884, allocations: 311.7 kB / 1.237 GB, free: 1.043 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008911/1.885, allocations: 438 kB / 1.238 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01267/1.898, allocations: 7.228 MB / 1.245 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-05/1.898, allocations: 6 kB / 1.245 GB, free: 9.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003604/1.898, allocations: 175.6 kB / 1.245 GB, free: 9.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004679/1.899, allocations: 408.6 kB / 1.245 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/1.911, allocations: 8.218 MB / 1.253 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03518/1.946, allocations: 27.24 MB / 1.28 GB, free: 2.891 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007348/1.953, allocations: 4.27 MB / 1.284 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005649/1.959, allocations: 3.528 MB / 1.287 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006503/1.965, allocations: 8.106 MB / 1.295 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.656e-05/1.965, allocations: 82.56 kB / 1.295 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=475): time 1.109e-05/1.965, allocations: 0 / 1.295 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=479): time 0.03651/2.002, allocations: 19.73 MB / 1.315 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/2.002, allocations: 137 kB / 1.315 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002856/2.005, allocations: 2.109 MB / 1.317 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0007602/2.006, allocations: 111.1 kB / 1.317 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009814/2.007, allocations: 1.525 MB / 1.318 GB, free: 9.199 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001558/2.008, allocations: 1.597 MB / 1.32 GB, free: 7.621 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/2.01, allocations: 0.7431 MB / 1.321 GB, free: 6.887 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.688e-05/2.01, allocations: 309.1 kB / 1.321 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003895/2.014, allocations: 2.552 MB / 1.324 GB, free: 4.031 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00475/2.018, allocations: 2.807 MB / 1.326 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009872/2.028, allocations: 5.789 MB / 1.332 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/2.028, allocations: 3.938 kB / 1.332 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of matching and sorting (n=491) (initialization): time 0.01441/2.043, allocations: 7.401 MB / 1.339 GB, free: 3.996 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/2.043, allocations: 11.94 kB / 1.339 GB, free: 3.984 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/2.043, allocations: 0 / 1.339 GB, free: 3.984 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006699/2.049, allocations: 1.742 MB / 1.341 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003403/2.053, allocations: 0.71 MB / 1.342 GB, free: 1.508 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.253/2.306, allocations: 12.22 MB / 1.353 GB, free: 471.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002801/2.309, allocations: 106.9 kB / 1.354 GB, free: 471.9 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007392/2.31, allocations: 262.9 kB / 1.354 GB, free: 471.9 MB / 0.9044 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 (404): * Single equations (assignments): 367 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,26,68.0%), (5,26,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,4), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002123/2.312, allocations: 1.127 MB / 1.355 GB, free: 471.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/2.313, allocations: 348.2 kB / 1.355 GB, free: 471.8 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01769/2.33, allocations: 10.95 MB / 1.366 GB, free: 470.6 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001715/2.331, allocations: 50 kB / 1.366 GB, free: 470.6 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.905e-05/2.331, allocations: 10.31 kB / 1.366 GB, free: 470.6 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.543e-05/2.331, allocations: 23.84 kB / 1.366 GB, free: 470.6 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03082/2.362, allocations: 14.84 MB / 1.381 GB, free: 464.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.158e-05/2.362, allocations: 3.062 kB / 1.381 GB, free: 464.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/2.365, allocations: 0.689 MB / 1.381 GB, free: 464.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007038/2.372, allocations: 1.776 MB / 1.383 GB, free: 463.9 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001048/2.373, allocations: 181.8 kB / 1.383 GB, free: 463.9 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/2.386, allocations: 12.21 MB / 1.395 GB, free: 455.1 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/2.387, allocations: 3.188 kB / 1.395 GB, free: 455.1 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01967/2.406, allocations: 11.61 MB / 1.406 GB, free: 450.1 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/2.408, allocations: 405.5 kB / 1.407 GB, free: 449.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001366/2.409, allocations: 94.58 kB / 1.407 GB, free: 449.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002287/2.411, allocations: 107.1 kB / 1.407 GB, free: 449.7 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007871/2.412, allocations: 368.2 kB / 1.407 GB, free: 449.7 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005348/2.413, allocations: 269.5 kB / 1.408 GB, free: 449.6 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001893/2.414, allocations: 1.551 MB / 1.409 GB, free: 449 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.032e-06/2.414, allocations: 0 / 1.409 GB, free: 449 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.009868/2.424, allocations: 3.461 MB / 1.412 GB, free: 448.5 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (dynamicJunctionNM1.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow3.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow5.inlet.m_flow,dynamicJunctionNM.dynamicSplitterN.nozzle_in.inlet.m_flow,dynamicPressureInflow1.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow,dynamicPressureOutflow2.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 (400): * Single equations (assignments): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * 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,26,68.0%), (5,26,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,5), (2,4), (2,4), (1,5), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/2.434, allocations: 4.035 MB / 1.416 GB, free: 448.1 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01194/2.446, allocations: 7.131 MB / 1.423 GB, free: 445.3 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/2.446, allocations: 3.906 kB / 1.423 GB, free: 445.3 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.007418/2.454, allocations: 4.174 MB / 1.427 GB, free: 443.6 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007136/2.461, allocations: 1.531 MB / 1.429 GB, free: 443.2 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/2.477, allocations: 9.987 MB / 1.439 GB, free: 439 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/2.48, allocations: 2.928 MB / 1.442 GB, free: 437.9 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.005601/2.485, allocations: 2.769 MB / 1.444 GB, free: 435.4 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/2.487, allocations: 443.2 kB / 1.445 GB, free: 435 MB / 0.9044 GB Notification: Performance of SimCode: time 1.162e-06/2.487, allocations: 0 / 1.445 GB, free: 435 MB / 0.9044 GB Notification: Performance of Templates: time 0.1573/2.644, allocations: 144.6 MB / 1.586 GB, free: 291.5 MB / 0.9044 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestDynamicTopology_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches