Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005635/0.005635, allocations: 167.7 kB / 15.13 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.4 MB / 221.3 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000673/0.000673, allocations: 94.28 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6217/0.6217, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 12 kB / 485.2 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2742, allocations: 66.28 MB / 0.5386 GB, free: 45.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.075/1.349, allocations: 0.5595 GB / 1.098 GB, free: 4.023 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.04501/1.394, allocations: 49.99 MB / 1.147 GB, free: 356 kB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/1.398, allocations: 50.66 kB / 1.147 GB, free: 356 kB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.00663/1.404, allocations: 2.484 MB / 1.149 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.03421/1.439, allocations: 13.88 MB / 1.163 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.02479/1.464, allocations: 8.938 MB / 1.172 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01072/1.474, allocations: 9.915 MB / 1.181 GB, free: 14.97 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003075/1.477, allocations: 1.951 MB / 1.183 GB, free: 13.36 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005905/1.483, allocations: 3.155 MB / 1.186 GB, free: 10.69 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004665/1.488, allocations: 3.094 MB / 1.189 GB, free: 8.195 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0009539/1.489, allocations: 192 kB / 1.19 GB, free: 8.008 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06294/1.552, allocations: 36.95 MB / 1.226 GB, free: 8.891 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.00212/1.554, allocations: 1.362 MB / 1.227 GB, free: 7.551 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.001618/1.556, allocations: 1.015 MB / 1.228 GB, free: 6.527 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0307/1.586, allocations: 17.15 MB / 1.245 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/1.586, allocations: 4 kB / 1.245 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.794e-06/1.586, allocations: 0 / 1.245 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0001095/1.587, allocations: 0 / 1.245 GB, free: 6.516 MB / 0.7448 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.02206/1.609, allocations: 9.155 MB / 1.254 GB, free: 13.32 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/1.609, allocations: 12.03 kB / 1.254 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/1.61, allocations: 0.5019 MB / 1.254 GB, free: 12.8 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00402/1.614, allocations: 2.301 MB / 1.256 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/1.614, allocations: 322.8 kB / 1.257 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007182/1.615, allocations: 427.4 kB / 1.257 GB, free: 9.781 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01082/1.626, allocations: 7.339 MB / 1.264 GB, free: 2.398 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/1.626, allocations: 0 / 1.264 GB, free: 2.398 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004069/1.626, allocations: 174.5 kB / 1.264 GB, free: 2.238 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004578/1.627, allocations: 400.6 kB / 1.265 GB, free: 1.84 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/1.638, allocations: 8.318 MB / 1.273 GB, free: 9.496 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03259/1.671, allocations: 27.77 MB / 1.3 GB, free: 11.2 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006833/1.678, allocations: 4.422 MB / 1.304 GB, free: 6.762 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005309/1.683, allocations: 3.699 MB / 1.308 GB, free: 3.066 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2131/1.896, allocations: 17.24 MB / 1.325 GB, free: 381.6 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.91e-05/1.896, allocations: 83.58 kB / 1.325 GB, free: 381.5 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=491): time 1.099e-05/1.896, allocations: 0 / 1.325 GB, free: 381.5 MB / 0.8073 GB Notification: Performance of matching and sorting (n=495): time 0.03489/1.931, allocations: 20.59 MB / 1.345 GB, free: 374.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/1.931, allocations: 127.9 kB / 1.345 GB, free: 374.7 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/1.933, allocations: 1.646 MB / 1.347 GB, free: 374 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0006007/1.934, allocations: 100.5 kB / 1.347 GB, free: 374 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008719/1.935, allocations: 1.405 MB / 1.348 GB, free: 372.9 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.001362/1.936, allocations: 1.647 MB / 1.35 GB, free: 371.6 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/1.936, allocations: 76.34 kB / 1.35 GB, free: 371.5 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001831/1.937, allocations: 460.3 kB / 1.35 GB, free: 371.2 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003949/1.941, allocations: 2.689 MB / 1.353 GB, free: 370.1 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004233/1.945, allocations: 2.958 MB / 1.356 GB, free: 368.9 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/1.95, allocations: 3.041 MB / 1.359 GB, free: 367.4 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/1.95, allocations: 0 / 1.359 GB, free: 367.4 MB / 0.8073 GB Notification: Performance of matching and sorting (n=503) (initialization): time 0.01415/1.964, allocations: 7.696 MB / 1.366 GB, free: 364.3 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/1.964, allocations: 5.844 kB / 1.366 GB, free: 364.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.955e-05/1.964, allocations: 0 / 1.366 GB, free: 364.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006896/1.971, allocations: 1.843 MB / 1.368 GB, free: 363.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003268/1.974, allocations: 0.7586 MB / 1.369 GB, free: 363.8 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/1.985, allocations: 11.53 MB / 1.38 GB, free: 355.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003522/1.989, allocations: 336.7 kB / 1.38 GB, free: 355.4 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007649/1.99, allocations: 379.1 kB / 1.381 GB, free: 355.3 MB / 0.8073 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): 363 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {2 4,2 4,2 4,1 5,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002175/1.992, allocations: 1.121 MB / 1.382 GB, free: 354.7 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006969/1.993, allocations: 317 kB / 1.382 GB, free: 354.6 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/2.009, allocations: 9.653 MB / 1.392 GB, free: 350.9 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001192/2.009, allocations: 59.59 kB / 1.392 GB, free: 350.9 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/2.009, allocations: 11.55 kB / 1.392 GB, free: 350.9 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.872e-05/2.009, allocations: 22.55 kB / 1.392 GB, free: 350.9 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02308/2.033, allocations: 15.7 MB / 1.407 GB, free: 344.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/2.033, allocations: 0 / 1.407 GB, free: 344.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002681/2.035, allocations: 0.7578 MB / 1.408 GB, free: 344.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006423/2.042, allocations: 1.877 MB / 1.41 GB, free: 343.3 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006488/2.042, allocations: 221.1 kB / 1.41 GB, free: 343.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/2.053, allocations: 11.55 MB / 1.421 GB, free: 332 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/2.053, allocations: 0 / 1.421 GB, free: 332 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/2.07, allocations: 12.37 MB / 1.433 GB, free: 319.5 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/2.071, allocations: 373 kB / 1.434 GB, free: 319.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000679/2.072, allocations: 95.27 kB / 1.434 GB, free: 319.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002325/2.074, allocations: 326.4 kB / 1.434 GB, free: 318.8 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005791/2.075, allocations: 419 kB / 1.434 GB, free: 318.4 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006015/2.075, allocations: 390.6 kB / 1.435 GB, free: 318 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.001252/2.077, allocations: 1.128 MB / 1.436 GB, free: 316.8 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.4e-07/2.077, allocations: 0 / 1.436 GB, free: 316.8 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.01027/2.087, allocations: 4.668 MB / 1.44 GB, free: 312.7 MB / 0.8073 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 (416): * Single equations (assignments): 375 * Array equations: 30 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 26,(5,68.0%) 26} * Non-linear torn systems: 5 {1 5,2 4,2 4,2 4,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01243/2.099, allocations: 6.258 MB / 1.447 GB, free: 307.9 MB / 0.8073 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState294.X Notification: Performance of simCode: created initialization part: time 0.01225/2.112, allocations: 7.744 MB / 1.454 GB, free: 300.1 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/2.112, allocations: 0 / 1.454 GB, free: 300.1 MB / 0.8073 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow1.inlet.state.X[1], dynamicPressureInflow1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source1_outlet_Medium_ThermodynamicState601.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {dynamicPressureInflow3.inlet.state.X[1], dynamicPressureInflow3.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestDynamicTopology_source3_outlet_Medium_ThermodynamicState908.X Notification: Performance of simCode: created simulation system equations: time 0.006915/2.119, allocations: 4.632 MB / 1.459 GB, free: 295.5 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006441/2.125, allocations: 1.302 MB / 1.46 GB, free: 294.3 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/2.14, allocations: 11.54 MB / 1.471 GB, free: 282.8 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/2.142, allocations: 2.89 MB / 1.474 GB, free: 279.8 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.006068/2.148, allocations: 1.622 MB / 1.476 GB, free: 278.2 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/2.15, allocations: 0.5577 MB / 1.476 GB, free: 277.7 MB / 0.8073 GB Notification: Performance of SimCode: time 6.92e-07/2.15, allocations: 0 / 1.476 GB, free: 277.7 MB / 0.8073 GB Notification: Performance of Templates: time 0.1791/2.329, allocations: 166.3 MB / 1.638 GB, free: 111.3 MB / 0.8073 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestDynamicTopology_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches