Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.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.TestJunctionNM,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM",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.005682/0.005682, allocations: 167.1 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.289/1.289, allocations: 205.4 MB / 221.3 MB, free: 13.72 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.000784/0.0007841, allocations: 86.31 kB / 269.6 MB, free: 13.26 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.648/0.648, allocations: 90.61 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 8 kB / 485.3 MB, free: 1.945 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.307, allocations: 66.27 MB / 0.5387 GB, free: 45.37 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.5938/0.9008, allocations: 357 MB / 0.8874 GB, free: 15.49 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.04427/0.9451, allocations: 41.16 MB / 0.9275 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.9474, allocations: 26 kB / 0.9276 GB, free: 2.531 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.004093/0.9515, allocations: 1.245 MB / 0.9288 GB, free: 1.371 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.01858/0.9701, allocations: 6.464 MB / 0.9351 GB, free: 10.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.01533/0.9854, allocations: 5.214 MB / 0.9402 GB, free: 5.711 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.005801/0.9912, allocations: 4.516 MB / 0.9446 GB, free: 1.18 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.9924, allocations: 0.8693 MB / 0.9455 GB, free: 312 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003963/0.9964, allocations: 1.958 MB / 0.9474 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001836/0.9982, allocations: 1.436 MB / 0.9488 GB, free: 12.9 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.9984, allocations: 84 kB / 0.9488 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03314/1.032, allocations: 18.75 MB / 0.9672 GB, free: 10.04 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001005/1.033, allocations: 0.6307 MB / 0.9678 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0007141/1.033, allocations: 460.6 kB / 0.9682 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.01726/1.051, allocations: 8.206 MB / 0.9762 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/1.051, allocations: 4 kB / 0.9762 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.773e-06/1.051, allocations: 4 kB / 0.9762 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.218e-05/1.051, allocations: 0 / 0.9762 GB, free: 0.7188 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.009909/1.061, allocations: 4.417 MB / 0.9805 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/1.061, allocations: 8.031 kB / 0.9806 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003989/1.061, allocations: 282.8 kB / 0.9808 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/1.061, allocations: 229.3 kB / 0.981 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/1.063, allocations: 1.021 MB / 0.982 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.052e-05/1.063, allocations: 139.6 kB / 0.9822 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/1.063, allocations: 191.9 kB / 0.9824 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004411/1.068, allocations: 3.163 MB / 0.9854 GB, free: 7.152 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/1.068, allocations: 0 / 0.9854 GB, free: 7.152 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/1.068, allocations: 79.92 kB / 0.9855 GB, free: 7.074 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002296/1.068, allocations: 171.9 kB / 0.9857 GB, free: 6.906 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004512/1.073, allocations: 3.451 MB / 0.9891 GB, free: 3.453 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01282/1.086, allocations: 12.67 MB / 1.001 GB, free: 5.41 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/1.088, allocations: 1.814 MB / 1.003 GB, free: 3.578 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001897/1.09, allocations: 1.602 MB / 1.005 GB, free: 1.977 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2072/1.297, allocations: 7.444 MB / 1.012 GB, free: 272.3 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.851e-05/1.297, allocations: 65.97 kB / 1.012 GB, free: 272.3 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=212): time 5.931e-06/1.297, allocations: 0 / 1.012 GB, free: 272.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=216): time 0.01308/1.31, allocations: 9.15 MB / 1.021 GB, free: 270.3 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/1.311, allocations: 107.1 kB / 1.021 GB, free: 270.2 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/1.311, allocations: 0.7057 MB / 1.022 GB, free: 269.9 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.000131/1.311, allocations: 56.14 kB / 1.022 GB, free: 269.9 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/1.312, allocations: 0.6429 MB / 1.022 GB, free: 269.4 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/1.312, allocations: 0.7252 MB / 1.023 GB, free: 268.8 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/1.312, allocations: 33.62 kB / 1.023 GB, free: 268.8 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 7.612e-05/1.312, allocations: 373.9 kB / 1.024 GB, free: 268.4 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/1.314, allocations: 1.176 MB / 1.025 GB, free: 268 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/1.315, allocations: 1.309 MB / 1.026 GB, free: 267.5 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/1.317, allocations: 1.321 MB / 1.027 GB, free: 266.9 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/1.317, allocations: 0 / 1.027 GB, free: 266.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004837/1.322, allocations: 3.339 MB / 1.031 GB, free: 265.5 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/1.322, allocations: 8.922 kB / 1.031 GB, free: 265.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/1.322, allocations: 1.375 kB / 1.031 GB, free: 265.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/1.323, allocations: 455.2 kB / 1.031 GB, free: 265.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.324, allocations: 346.3 kB / 1.031 GB, free: 265.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/1.33, allocations: 5.805 MB / 1.037 GB, free: 261.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/1.331, allocations: 142.2 kB / 1.037 GB, free: 261.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/1.332, allocations: 177 kB / 1.037 GB, free: 261.1 MB / 0.6667 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 (172): * Single equations (assignments): 156 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00081/1.332, allocations: 0.5047 MB / 1.038 GB, free: 260.8 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/1.333, allocations: 136.7 kB / 1.038 GB, free: 260.7 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007167/1.34, allocations: 4.273 MB / 1.042 GB, free: 259.1 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.572e-05/1.34, allocations: 31.19 kB / 1.042 GB, free: 259.1 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/1.34, allocations: 6.969 kB / 1.042 GB, free: 259.1 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-05/1.34, allocations: 15.3 kB / 1.042 GB, free: 259.1 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/1.35, allocations: 6.947 MB / 1.049 GB, free: 256.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/1.35, allocations: 2.812 kB / 1.049 GB, free: 256.2 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/1.351, allocations: 364.1 kB / 1.049 GB, free: 256.2 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/1.353, allocations: 471.6 kB / 1.05 GB, free: 256.1 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002096/1.353, allocations: 116.4 kB / 1.05 GB, free: 256 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0063/1.359, allocations: 5.819 MB / 1.056 GB, free: 251.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.359, allocations: 1.25 kB / 1.056 GB, free: 251.8 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007952/1.367, allocations: 5.65 MB / 1.061 GB, free: 249.4 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004085/1.368, allocations: 200.7 kB / 1.061 GB, free: 249.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/1.368, allocations: 52.42 kB / 1.061 GB, free: 249.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009657/1.369, allocations: 151.2 kB / 1.061 GB, free: 249.1 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/1.369, allocations: 206.2 kB / 1.062 GB, free: 249.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002687/1.369, allocations: 186.2 kB / 1.062 GB, free: 249.1 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0005026/1.37, allocations: 499.5 kB / 1.062 GB, free: 248.8 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/1.37, allocations: 0 / 1.062 GB, free: 248.8 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00504/1.375, allocations: 2.33 MB / 1.065 GB, free: 248.5 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (184): * Single equations (assignments): 168 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01266/1.388, allocations: 9.418 MB / 1.074 GB, free: 245.2 MB / 0.6667 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance6.inlet.state.X[1], flowResistance6.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source3_outlet_Medium_ThermodynamicState1.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance1.inlet.state.X[1], flowResistance1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source1_outlet_Medium_ThermodynamicState137.X Notification: Performance of simCode: created initialization part: time 0.004956/1.393, allocations: 3.724 MB / 1.077 GB, free: 243.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.393, allocations: 0 / 1.077 GB, free: 243.2 MB / 0.6667 GB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance1.inlet.state.X[1], flowResistance1.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source1_outlet_Medium_ThermodynamicState279.X Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {flowResistance6.inlet.state.X[1], flowResistance6.inlet.state.X[2]} = $TMP_ThermofluidStream_Topology_Tests_TestJunctionNM_source3_outlet_Medium_ThermodynamicState418.X Notification: Performance of simCode: created simulation system equations: time 0.003019/1.396, allocations: 2.378 MB / 1.08 GB, free: 241.1 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002706/1.398, allocations: 0.6019 MB / 1.08 GB, free: 240.7 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/1.415, allocations: 14.23 MB / 1.094 GB, free: 227.1 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008585/1.416, allocations: 1.611 MB / 1.096 GB, free: 225.5 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.002249/1.418, allocations: 0.7301 MB / 1.097 GB, free: 224.8 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.419, allocations: 0.8734 MB / 1.097 GB, free: 223.9 MB / 0.6667 GB Notification: Performance of SimCode: time 6.41e-07/1.419, allocations: 0 / 1.097 GB, free: 223.9 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1116/1.531, allocations: 98.36 MB / 1.193 GB, free: 125.8 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/1.531, allocations: 278 kB / 1.194 GB, free: 125.4 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.351/6.882, allocations: 0 / 1.194 GB, free: 125.4 MB / 0.6667 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat does not exist to compare? outputFormat=mat