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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestDynamicTopology,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00818/0.00818, allocations: 167.1 kB / 15.13 MB, free: 6.027 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.347/1.347, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0008794/0.0008796, allocations: 86.27 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.6288/0.6288, allocations: 90.59 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003224, allocations: 8 kB / 485.3 MB, free: 1.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.314, allocations: 66.27 MB / 0.5387 GB, free: 45.11 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestDynamicTopology): time 1.141/1.455, allocations: 0.5595 GB / 1.098 GB, free: 4.031 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.04949/1.505, allocations: 49.98 MB / 1.147 GB, free: 328 kB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003985/1.509, allocations: 53.75 kB / 1.147 GB, free: 328 kB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.007326/1.516, allocations: 2.464 MB / 1.149 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.03931/1.555, allocations: 13.89 MB / 1.163 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.02516/1.581, allocations: 8.943 MB / 1.172 GB, free: 6.625 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0114/1.592, allocations: 9.911 MB / 1.181 GB, free: 14.82 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/1.595, allocations: 1.958 MB / 1.183 GB, free: 13.19 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006258/1.601, allocations: 3.14 MB / 1.186 GB, free: 10.54 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004873/1.606, allocations: 3.098 MB / 1.189 GB, free: 8.039 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0009921/1.607, allocations: 192 kB / 1.19 GB, free: 7.852 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06786/1.675, allocations: 36.95 MB / 1.226 GB, free: 8.742 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.002365/1.677, allocations: 1.361 MB / 1.227 GB, free: 7.402 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.001972/1.679, allocations: 1.015 MB / 1.228 GB, free: 6.379 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.03265/1.712, allocations: 17.15 MB / 1.245 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/1.712, allocations: 0 / 1.245 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.813e-06/1.712, allocations: 0 / 1.245 GB, free: 6.375 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0001757/1.712, allocations: 0 / 1.245 GB, free: 6.375 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.02239/1.735, allocations: 9.159 MB / 1.254 GB, free: 13.18 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/1.735, allocations: 8.031 kB / 1.254 GB, free: 13.17 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00154/1.736, allocations: 0.5853 MB / 1.254 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/1.737, allocations: 0.5019 MB / 1.255 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003853/1.741, allocations: 2.308 MB / 1.257 GB, free: 9.758 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/1.742, allocations: 309.1 kB / 1.257 GB, free: 9.461 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007678/1.742, allocations: 445.1 kB / 1.258 GB, free: 9.043 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/1.754, allocations: 7.334 MB / 1.265 GB, free: 1.664 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.637e-05/1.754, allocations: 4 kB / 1.265 GB, free: 1.66 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003923/1.754, allocations: 170.5 kB / 1.265 GB, free: 1.504 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004501/1.755, allocations: 404.5 kB / 1.265 GB, free: 1.102 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/1.767, allocations: 8.315 MB / 1.274 GB, free: 8.762 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03472/1.802, allocations: 27.76 MB / 1.301 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0064/1.808, allocations: 4.435 MB / 1.305 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005089/1.813, allocations: 3.688 MB / 1.309 GB, free: 2.348 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2289/2.042, allocations: 17.24 MB / 1.325 GB, free: 380.8 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.876e-05/2.042, allocations: 91.23 kB / 1.326 GB, free: 380.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=491): time 1.574e-05/2.042, allocations: 0 / 1.326 GB, free: 380.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=495): time 0.03483/2.077, allocations: 20.59 MB / 1.346 GB, free: 374.2 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/2.077, allocations: 129 kB / 1.346 GB, free: 374.1 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/2.08, allocations: 1.641 MB / 1.347 GB, free: 373.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 0.0007723/2.08, allocations: 107.1 kB / 1.348 GB, free: 373.4 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008315/2.081, allocations: 1.395 MB / 1.349 GB, free: 372.4 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.001913/2.083, allocations: 1.652 MB / 1.35 GB, free: 371.1 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004117/2.084, allocations: 77.53 kB / 1.351 GB, free: 371 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.000269/2.084, allocations: 459.4 kB / 1.351 GB, free: 370.6 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004032/2.088, allocations: 2.689 MB / 1.354 GB, free: 369.5 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004661/2.093, allocations: 2.951 MB / 1.357 GB, free: 368.3 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005012/2.098, allocations: 3.051 MB / 1.359 GB, free: 366.9 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/2.098, allocations: 0 / 1.359 GB, free: 366.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=503) (initialization): time 0.01379/2.111, allocations: 7.697 MB / 1.367 GB, free: 363.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/2.112, allocations: 11.25 kB / 1.367 GB, free: 363.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/2.112, allocations: 1.781 kB / 1.367 GB, free: 363.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00656/2.118, allocations: 1.835 MB / 1.369 GB, free: 363.4 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/2.121, allocations: 0.7587 MB / 1.37 GB, free: 363.3 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/2.132, allocations: 11.53 MB / 1.381 GB, free: 355 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/2.136, allocations: 333.3 kB / 1.381 GB, free: 354.9 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008567/2.137, allocations: 382.7 kB / 1.381 GB, free: 354.8 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.002146/2.139, allocations: 1.119 MB / 1.383 GB, free: 354.2 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007291/2.139, allocations: 324.3 kB / 1.383 GB, free: 354 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01653/2.156, allocations: 9.644 MB / 1.392 GB, free: 350.4 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001341/2.156, allocations: 60.94 kB / 1.392 GB, free: 350.4 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.637e-05/2.156, allocations: 15.98 kB / 1.392 GB, free: 350.4 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.779e-05/2.156, allocations: 25.97 kB / 1.392 GB, free: 350.4 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02556/2.182, allocations: 15.68 MB / 1.408 GB, free: 343.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.353e-05/2.182, allocations: 11.34 kB / 1.408 GB, free: 343.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002695/2.185, allocations: 0.753 MB / 1.408 GB, free: 343.6 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006454/2.191, allocations: 1.883 MB / 1.41 GB, free: 342.7 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001173/2.192, allocations: 218.5 kB / 1.411 GB, free: 342.6 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/2.203, allocations: 11.54 MB / 1.422 GB, free: 331.3 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/2.203, allocations: 7.922 kB / 1.422 GB, free: 331.3 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01947/2.223, allocations: 12.37 MB / 1.434 GB, free: 318.8 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/2.224, allocations: 372.9 kB / 1.434 GB, free: 318.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008215/2.225, allocations: 94.16 kB / 1.434 GB, free: 318.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002381/2.227, allocations: 325 kB / 1.435 GB, free: 318.1 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005626/2.228, allocations: 417.9 kB / 1.435 GB, free: 317.6 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005995/2.228, allocations: 390.6 kB / 1.435 GB, free: 317.3 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.001217/2.23, allocations: 1.127 MB / 1.437 GB, free: 316.1 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.5e-07/2.23, allocations: 3.156 kB / 1.437 GB, free: 316.1 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.01058/2.24, allocations: 4.665 MB / 1.441 GB, free: 312 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.02973/2.27, allocations: 19.33 MB / 1.46 GB, free: 294 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.01188/2.282, allocations: 7.746 MB / 1.468 GB, free: 286.2 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/2.282, allocations: 0 / 1.468 GB, free: 286.2 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.007041/2.289, allocations: 4.64 MB / 1.472 GB, free: 281.6 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006654/2.296, allocations: 1.29 MB / 1.473 GB, free: 280.4 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04801/2.344, allocations: 33.76 MB / 1.506 GB, free: 246 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002037/2.346, allocations: 2.89 MB / 1.509 GB, free: 243.1 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.00582/2.352, allocations: 1.624 MB / 1.511 GB, free: 241.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003792/2.356, allocations: 2.065 MB / 1.513 GB, free: 239.4 MB / 0.8073 GB Notification: Performance of SimCode: time 1.022e-06/2.356, allocations: 0 / 1.513 GB, free: 239.4 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2348/2.59, allocations: 207.2 MB / 1.715 GB, free: 31.89 MB / 0.8073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/2.591, allocations: 279.7 kB / 1.715 GB, free: 31.53 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.357/11.95, allocations: 0 / 1.715 GB, free: 31.53 MB / 0.8073 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestDynamicTopology.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestDynamicTopology_res.mat does not exist to compare? outputFormat=mat