Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001366/0.001366, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001325/0.001325, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7612/0.7612, allocations: 97.64 MB / 388.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 83.16 kB / 0.5268 GB, free: 38.37 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09955, allocations: 69.25 MB / 0.5944 GB, free: 476 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.248/1.347, allocations: 0.5585 GB / 1.153 GB, free: 15.28 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0453/1.392, allocations: 48.4 MB / 1.2 GB, free: 12.39 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004197/1.397, allocations: 225.5 kB / 1.2 GB, free: 12.39 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.008826/1.405, allocations: 4.125 MB / 1.204 GB, free: 11.34 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.04399/1.449, allocations: 19.12 MB / 1.223 GB, free: 5.73 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.01612/1.466, allocations: 6.467 MB / 1.229 GB, free: 1.172 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01309/1.479, allocations: 9.241 MB / 1.238 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002981/1.482, allocations: 1.797 MB / 1.24 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008509/1.49, allocations: 4.685 MB / 1.245 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005992/1.496, allocations: 3.839 MB / 1.248 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0016/1.498, allocations: 0.6015 MB / 1.249 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06435/1.562, allocations: 36.1 MB / 1.284 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003028/1.565, allocations: 1.949 MB / 1.286 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.005278/1.57, allocations: 3.343 MB / 1.289 GB, free: 7.039 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0541/1.624, allocations: 23 MB / 1.312 GB, free: 1.27 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/1.624, allocations: 3.984 kB / 1.312 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.563e-06/1.624, allocations: 0 / 1.312 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002472/1.625, allocations: 0 / 1.312 GB, free: 1.266 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1158 * Number of variables: 1158 Notification: Performance of Generate backend data structure: time 0.02704/1.652, allocations: 10.36 MB / 1.322 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/1.652, allocations: 16.02 kB / 1.322 GB, free: 6.938 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/1.654, allocations: 0.6917 MB / 1.323 GB, free: 6.242 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009445/1.663, allocations: 4.46 MB / 1.327 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002803/1.663, allocations: 325 kB / 1.327 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001121/1.664, allocations: 450.2 kB / 1.328 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/1.679, allocations: 7.328 MB / 1.335 GB, free: 9.727 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-05/1.679, allocations: 3.938 kB / 1.335 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004873/1.679, allocations: 179.9 kB / 1.335 GB, free: 9.559 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005691/1.68, allocations: 416.8 kB / 1.336 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/1.694, allocations: 8.301 MB / 1.344 GB, free: 0.8203 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04713/1.741, allocations: 30.96 MB / 1.374 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007916/1.749, allocations: 3.983 MB / 1.378 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005569/1.754, allocations: 3.16 MB / 1.381 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00767/1.762, allocations: 8.112 MB / 1.389 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.839e-05/1.762, allocations: 82.56 kB / 1.389 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=476): time 1.025e-05/1.762, allocations: 0 / 1.389 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=480): time 0.04578/1.808, allocations: 20.53 MB / 1.409 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.752e-05/1.808, allocations: 125.1 kB / 1.409 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/1.813, allocations: 3.248 MB / 1.412 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0006786/1.814, allocations: 106.8 kB / 1.412 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001963/1.816, allocations: 2.095 MB / 1.414 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.818, allocations: 1.674 MB / 1.416 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001999/1.82, allocations: 0.7572 MB / 1.417 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001254/1.82, allocations: 301.1 kB / 1.417 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2651/2.085, allocations: 2.551 MB / 1.42 GB, free: 0.4912 GB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004712/2.09, allocations: 2.813 MB / 1.422 GB, free: 0.4912 GB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009906/2.1, allocations: 5.792 MB / 1.428 GB, free: 0.4905 GB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/2.1, allocations: 1.125 kB / 1.428 GB, free: 0.4905 GB / 0.9825 GB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01262/2.112, allocations: 7.369 MB / 1.435 GB, free: 499.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/2.112, allocations: 4.469 kB / 1.435 GB, free: 499.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/2.112, allocations: 1.203 kB / 1.435 GB, free: 499.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0065/2.119, allocations: 1.748 MB / 1.437 GB, free: 499.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00288/2.122, allocations: 0.7069 MB / 1.438 GB, free: 499.1 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/2.133, allocations: 12.21 MB / 1.449 GB, free: 490.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/2.136, allocations: 109.9 kB / 1.45 GB, free: 490.3 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006888/2.137, allocations: 265.3 kB / 1.45 GB, free: 490.2 MB / 0.9825 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 {(1,5), (2,4), (1,5), (1,5), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.002233/2.139, allocations: 1.283 MB / 1.451 GB, free: 489.5 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/2.14, allocations: 496.6 kB / 1.452 GB, free: 489.5 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/2.156, allocations: 11.01 MB / 1.462 GB, free: 485.7 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001119/2.156, allocations: 47.5 kB / 1.462 GB, free: 485.7 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/2.156, allocations: 7.938 kB / 1.462 GB, free: 485.7 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-05/2.156, allocations: 31.12 kB / 1.462 GB, free: 485.7 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02248/2.179, allocations: 15.23 MB / 1.477 GB, free: 477.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-05/2.179, allocations: 0 / 1.477 GB, free: 477.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002574/2.181, allocations: 0.6855 MB / 1.478 GB, free: 477.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006523/2.188, allocations: 1.777 MB / 1.48 GB, free: 476.6 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005413/2.188, allocations: 174.7 kB / 1.48 GB, free: 476.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/2.2, allocations: 12.24 MB / 1.492 GB, free: 466.8 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/2.2, allocations: 7.375 kB / 1.492 GB, free: 466.8 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01618/2.216, allocations: 11.78 MB / 1.503 GB, free: 455.6 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/2.217, allocations: 0.5154 MB / 1.504 GB, free: 455.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007225/2.218, allocations: 92.58 kB / 1.504 GB, free: 455 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001949/2.22, allocations: 111.7 kB / 1.504 GB, free: 454.9 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006144/2.22, allocations: 367.3 kB / 1.504 GB, free: 454.6 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004699/2.221, allocations: 251.9 kB / 1.505 GB, free: 454.3 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002557/2.223, allocations: 2.314 MB / 1.507 GB, free: 452 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/2.223, allocations: 4 kB / 1.507 GB, free: 452 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.008001/2.231, allocations: 3.563 MB / 1.51 GB, free: 449 MB / 0.9825 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 {(2,4), (2,4), (1,5), (2,4), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007729/2.239, allocations: 4.069 MB / 1.514 GB, free: 446.1 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.009817/2.249, allocations: 6.774 MB / 1.521 GB, free: 439.3 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/2.249, allocations: 0 / 1.521 GB, free: 439.3 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.005749/2.255, allocations: 3.901 MB / 1.525 GB, free: 435.4 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006593/2.261, allocations: 1.635 MB / 1.526 GB, free: 433.9 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/2.276, allocations: 11.53 MB / 1.538 GB, free: 422.6 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/2.279, allocations: 3.323 MB / 1.541 GB, free: 419.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.005143/2.284, allocations: 2.899 MB / 1.544 GB, free: 416.6 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/2.285, allocations: 0.5031 MB / 1.544 GB, free: 416.1 MB / 0.9825 GB Notification: Performance of SimCode: time 1.142e-06/2.285, allocations: 0 / 1.544 GB, free: 416.1 MB / 0.9825 GB Notification: Performance of Templates: time 0.1731/2.458, allocations: 149.7 MB / 1.69 GB, free: 267.1 MB / 0.9825 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches