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.0008004/0.0008004, allocations: 179.6 kB / 15.45 MB, free: 6.227 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.111/1.111, allocations: 205 MB / 221.2 MB, free: 1.852 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006362/0.0006362, allocations: 90.3 kB / 269.2 MB, free: 1.809 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4751/0.4751, allocations: 90.52 MB / 407.7 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002688, allocations: 8 kB / 484.3 MB, free: 3.516 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09044, allocations: 65.81 MB / 0.5372 GB, free: 1.625 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7207/0.8112, allocations: 389.7 MB / 0.9178 GB, free: 15.22 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.04213/0.8533, allocations: 45.18 MB / 0.9619 GB, free: 8.465 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.8552, allocations: 23.88 kB / 0.962 GB, free: 8.441 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.004357/0.8595, allocations: 1.809 MB / 0.9637 GB, free: 6.625 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.01982/0.8794, allocations: 7.465 MB / 0.971 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01559/0.895, allocations: 5.989 MB / 0.9769 GB, free: 9.152 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.005188/0.9002, allocations: 5.472 MB / 0.9822 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001314/0.9015, allocations: 0.9907 MB / 0.9832 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003773/0.9053, allocations: 2.04 MB / 0.9852 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001993/0.9073, allocations: 1.483 MB / 0.9866 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.000377/0.9077, allocations: 80 kB / 0.9867 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03606/0.9438, allocations: 24.77 MB / 1.011 GB, free: 6.211 MB / 0.6667 GB Notification: Performance of NFScalarize.scalarize: time 0.0009886/0.9448, allocations: 0.6228 MB / 1.011 GB, free: 5.586 MB / 0.6667 GB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.9466, allocations: 1.057 MB / 1.013 GB, free: 4.523 MB / 0.6667 GB Notification: Performance of NFConvertDAE.convert: time 0.324/1.271, allocations: 13.37 MB / 1.026 GB, free: 23.71 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/1.271, allocations: 0 / 1.026 GB, free: 23.71 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.663e-06/1.271, allocations: 2.562 kB / 1.026 GB, free: 23.71 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.789e-05/1.271, allocations: 0 / 1.026 GB, free: 23.71 MB / 0.6667 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.01277/1.283, allocations: 4.395 MB / 1.03 GB, free: 22.37 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/1.283, allocations: 8.062 kB / 1.03 GB, free: 22.37 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000513/1.284, allocations: 285.2 kB / 1.03 GB, free: 22.32 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005629/1.285, allocations: 231.6 kB / 1.03 GB, free: 22.21 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/1.286, allocations: 1.049 MB / 1.031 GB, free: 21.85 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/1.286, allocations: 141.7 kB / 1.032 GB, free: 21.85 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002756/1.286, allocations: 201.2 kB / 1.032 GB, free: 21.84 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003952/1.29, allocations: 3.168 MB / 1.035 GB, free: 21.73 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/1.29, allocations: 0 / 1.035 GB, free: 21.73 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/1.291, allocations: 79.31 kB / 1.035 GB, free: 21.73 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/1.291, allocations: 177.1 kB / 1.035 GB, free: 21.73 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004053/1.295, allocations: 3.456 MB / 1.038 GB, free: 21.71 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/1.306, allocations: 12.67 MB / 1.051 GB, free: 14.25 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/1.308, allocations: 1.826 MB / 1.053 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/1.31, allocations: 1.609 MB / 1.054 GB, free: 14.17 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004661/1.314, allocations: 7.446 MB / 1.061 GB, free: 23.22 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/1.314, allocations: 58.12 kB / 1.061 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=212): time 5.199e-06/1.315, allocations: 0.5469 kB / 1.061 GB, free: 23.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=216): time 0.01434/1.329, allocations: 9.177 MB / 1.07 GB, free: 21.37 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/1.329, allocations: 105.7 kB / 1.071 GB, free: 21.27 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008481/1.33, allocations: 0.7108 MB / 1.071 GB, free: 21.14 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001396/1.33, allocations: 59.45 kB / 1.071 GB, free: 21.11 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/1.33, allocations: 0.6464 MB / 1.072 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004243/1.331, allocations: 0.7228 MB / 1.073 GB, free: 20.34 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/1.331, allocations: 31.59 kB / 1.073 GB, free: 20.34 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001462/1.331, allocations: 379.8 kB / 1.073 GB, free: 20.04 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/1.332, allocations: 1.183 MB / 1.074 GB, free: 20.03 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/1.334, allocations: 1.315 MB / 1.075 GB, free: 19.99 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/1.337, allocations: 2.676 MB / 1.078 GB, free: 19.94 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.337, allocations: 0 / 1.078 GB, free: 19.94 MB / 0.6823 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004645/1.342, allocations: 3.351 MB / 1.081 GB, free: 19.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/1.342, allocations: 5.406 kB / 1.081 GB, free: 19.75 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/1.342, allocations: 4.656 kB / 1.081 GB, free: 19.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/1.343, allocations: 454.5 kB / 1.082 GB, free: 19.71 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009566/1.344, allocations: 345.7 kB / 1.082 GB, free: 19.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006026/1.35, allocations: 5.833 MB / 1.088 GB, free: 16.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/1.351, allocations: 147.5 kB / 1.088 GB, free: 16.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/1.351, allocations: 179.8 kB / 1.088 GB, free: 16.9 MB / 0.6823 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 (not torn): 0 * Torn equation systems: 2 * 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,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009026/1.352, allocations: 0.4901 MB / 1.089 GB, free: 16.78 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003483/1.353, allocations: 142.6 kB / 1.089 GB, free: 16.71 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006388/1.359, allocations: 4.278 MB / 1.093 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.283e-05/1.359, allocations: 25.91 kB / 1.093 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.026e-05/1.359, allocations: 7.031 kB / 1.093 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/1.359, allocations: 12.11 kB / 1.093 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009238/1.368, allocations: 6.955 MB / 1.1 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.617e-06/1.368, allocations: 2.875 kB / 1.1 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/1.369, allocations: 364.3 kB / 1.1 GB, free: 15.87 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/1.37, allocations: 483.8 kB / 1.101 GB, free: 15.83 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/1.371, allocations: 110.2 kB / 1.101 GB, free: 15.82 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005682/1.376, allocations: 5.832 MB / 1.106 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.376, allocations: 3.562 kB / 1.106 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006542/1.383, allocations: 5.672 MB / 1.112 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003819/1.383, allocations: 201.1 kB / 1.112 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/1.384, allocations: 51.97 kB / 1.112 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/1.385, allocations: 145.4 kB / 1.112 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003157/1.385, allocations: 205.8 kB / 1.112 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/1.385, allocations: 187.4 kB / 1.113 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000467/1.386, allocations: 0.4993 MB / 1.113 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.1e-07/1.386, allocations: 4 kB / 1.113 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.006078/1.392, allocations: 2.333 MB / 1.115 GB, free: 11.92 MB / 0.6823 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 (not torn): 0 * Torn equation systems: 2 * 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,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01555/1.407, allocations: 9.479 MB / 1.125 GB, free: 7.363 MB / 0.6823 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.004984/1.412, allocations: 3.746 MB / 1.128 GB, free: 5.145 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/1.412, allocations: 0 / 1.128 GB, free: 5.145 MB / 0.6823 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.003241/1.416, allocations: 2.385 MB / 1.131 GB, free: 3.715 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/1.418, allocations: 0.6104 MB / 1.131 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02865/1.447, allocations: 19.87 MB / 1.151 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001445/1.448, allocations: 1.615 MB / 1.152 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002399/1.451, allocations: 0.7314 MB / 1.153 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/1.452, allocations: 0.8715 MB / 1.154 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of SimCode: time 5.61e-07/1.452, allocations: 1.969 kB / 1.154 GB, free: 12.67 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1299/1.582, allocations: 98.9 MB / 1.25 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/1.582, allocations: 297.7 kB / 1.251 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.842/6.425, allocations: 0 / 1.251 GB, free: 10.05 MB / 0.8073 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) 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