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: translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.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.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.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.TestJunctionNM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004068/0.004068, allocations: 169.5 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.256/1.256, 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.0008745/0.0008745, allocations: 102.2 kB / 269.6 MB, free: 13.33 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.6544/0.6544, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8 kB / 485.2 MB, free: 2.051 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3091, allocations: 66.28 MB / 0.5386 GB, free: 45.51 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.6024/0.9116, allocations: 357 MB / 0.8872 GB, free: 15.32 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.04129/0.9529, allocations: 41.16 MB / 0.9274 GB, free: 2.57 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001913/0.9549, allocations: 28.81 kB / 0.9275 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.003348/0.9582, allocations: 1.249 MB / 0.9287 GB, free: 1.395 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.01756/0.9758, allocations: 6.463 MB / 0.935 GB, free: 10.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.9914, allocations: 5.209 MB / 0.9401 GB, free: 5.742 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.004792/0.9962, allocations: 4.52 MB / 0.9445 GB, free: 1.207 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0013/0.9975, allocations: 0.8711 MB / 0.9454 GB, free: 336 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0041/1.002, allocations: 1.939 MB / 0.9472 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002372/1.004, allocations: 1.444 MB / 0.9487 GB, free: 12.94 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0003729/1.004, allocations: 87.94 kB / 0.9487 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03624/1.041, allocations: 18.75 MB / 0.967 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.001106/1.042, allocations: 0.6308 MB / 0.9677 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0009682/1.043, allocations: 460.6 kB / 0.9681 GB, free: 8.98 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.01984/1.063, allocations: 8.206 MB / 0.9761 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.063, allocations: 0 / 0.9761 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.355e-06/1.063, allocations: 4 kB / 0.9761 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001152/1.063, allocations: 0 / 0.9761 GB, free: 0.7539 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.01151/1.074, allocations: 4.421 MB / 0.9804 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.074, allocations: 8.031 kB / 0.9804 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005243/1.075, allocations: 229.3 kB / 0.9807 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/1.077, allocations: 1.017 MB / 0.9817 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/1.077, allocations: 146.8 kB / 0.9818 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003339/1.077, allocations: 195.9 kB / 0.982 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004945/1.082, allocations: 3.151 MB / 0.9851 GB, free: 7.477 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.564e-05/1.082, allocations: 0 / 0.9851 GB, free: 7.477 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/1.082, allocations: 79.97 kB / 0.9851 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002285/1.083, allocations: 183.8 kB / 0.9853 GB, free: 7.219 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004847/1.087, allocations: 3.443 MB / 0.9887 GB, free: 3.773 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01458/1.102, allocations: 12.67 MB / 1.001 GB, free: 5.727 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/1.105, allocations: 1.814 MB / 1.003 GB, free: 3.895 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/1.107, allocations: 1.598 MB / 1.004 GB, free: 2.293 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2207/1.328, allocations: 7.453 MB / 1.012 GB, free: 272.5 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/1.328, allocations: 57.34 kB / 1.012 GB, free: 272.4 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=212): time 6.231e-06/1.328, allocations: 0 / 1.012 GB, free: 272.4 MB / 0.6667 GB Notification: Performance of matching and sorting (n=216): time 0.01406/1.342, allocations: 9.146 MB / 1.021 GB, free: 270.5 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/1.342, allocations: 97.95 kB / 1.021 GB, free: 270.4 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008135/1.343, allocations: 0.7064 MB / 1.021 GB, free: 270.1 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001472/1.343, allocations: 68.31 kB / 1.021 GB, free: 270 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003586/1.343, allocations: 0.644 MB / 1.022 GB, free: 269.5 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005308/1.344, allocations: 0.7253 MB / 1.023 GB, free: 269 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/1.344, allocations: 29.84 kB / 1.023 GB, free: 268.9 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.344, allocations: 379 kB / 1.023 GB, free: 268.6 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.345, allocations: 1.177 MB / 1.024 GB, free: 268.2 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/1.347, allocations: 1.303 MB / 1.026 GB, free: 267.6 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/1.349, allocations: 1.325 MB / 1.027 GB, free: 267.1 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/1.349, allocations: 0 / 1.027 GB, free: 267.1 MB / 0.6667 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004952/1.354, allocations: 3.342 MB / 1.03 GB, free: 265.7 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.354, allocations: 5.969 kB / 1.03 GB, free: 265.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.354, allocations: 3.953 kB / 1.03 GB, free: 265.7 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/1.355, allocations: 457.7 kB / 1.031 GB, free: 265.6 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/1.356, allocations: 346.5 kB / 1.031 GB, free: 265.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006569/1.363, allocations: 5.8 MB / 1.037 GB, free: 261.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/1.364, allocations: 151.7 kB / 1.037 GB, free: 261.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003577/1.364, allocations: 177 kB / 1.037 GB, free: 261.3 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.001029/1.365, allocations: 0.4937 MB / 1.037 GB, free: 261 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002924/1.366, allocations: 137.5 kB / 1.038 GB, free: 260.9 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008213/1.374, allocations: 4.268 MB / 1.042 GB, free: 259.3 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/1.374, allocations: 32.06 kB / 1.042 GB, free: 259.3 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/1.374, allocations: 16.19 kB / 1.042 GB, free: 259.3 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.157e-05/1.374, allocations: 13.66 kB / 1.042 GB, free: 259.3 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0116/1.386, allocations: 6.94 MB / 1.049 GB, free: 256.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.386, allocations: 1.25 kB / 1.049 GB, free: 256.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/1.387, allocations: 368.8 kB / 1.049 GB, free: 256.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/1.388, allocations: 482.1 kB / 1.049 GB, free: 256.3 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/1.389, allocations: 105.4 kB / 1.049 GB, free: 256.2 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007443/1.396, allocations: 5.826 MB / 1.055 GB, free: 252 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.396, allocations: 6.719 kB / 1.055 GB, free: 252 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009695/1.406, allocations: 5.641 MB / 1.061 GB, free: 249.5 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005512/1.406, allocations: 207.1 kB / 1.061 GB, free: 249.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/1.407, allocations: 45.59 kB / 1.061 GB, free: 249.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/1.408, allocations: 152.8 kB / 1.061 GB, free: 249.3 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003545/1.408, allocations: 208.3 kB / 1.061 GB, free: 249.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003317/1.409, allocations: 186.8 kB / 1.061 GB, free: 249.2 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0005936/1.409, allocations: 498.4 kB / 1.062 GB, free: 249 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/1.409, allocations: 0 / 1.062 GB, free: 249 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.005233/1.414, allocations: 2.328 MB / 1.064 GB, free: 248.7 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.006973/1.421, allocations: 3.186 MB / 1.067 GB, free: 248.3 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.005254/1.427, allocations: 3.717 MB / 1.071 GB, free: 246.8 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/1.427, allocations: 1.781 kB / 1.071 GB, free: 246.8 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.003346/1.43, allocations: 2.39 MB / 1.073 GB, free: 245.7 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/1.433, allocations: 0.5971 MB / 1.074 GB, free: 245.6 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/1.44, allocations: 5.414 MB / 1.079 GB, free: 241.8 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/1.441, allocations: 1.616 MB / 1.081 GB, free: 240.4 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.002392/1.443, allocations: 0.7264 MB / 1.081 GB, free: 239.8 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008202/1.444, allocations: 266 kB / 1.082 GB, free: 239.6 MB / 0.6667 GB Notification: Performance of SimCode: time 8.22e-07/1.444, allocations: 0 / 1.082 GB, free: 239.6 MB / 0.6667 GB Notification: Performance of Templates: time 0.08791/1.532, allocations: 79.66 MB / 1.159 GB, free: 160.5 MB / 0.6667 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (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 & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches