Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.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.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008456/0.0008456, allocations: 168.6 kB / 16.1 MB, free: 5.688 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.148/1.148, allocations: 205 MB / 221.9 MB, free: 9.148 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.00067/0.00067, allocations: 86.36 kB / 269.9 MB, free: 8.68 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.6051/0.6051, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002795, allocations: 12.22 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2323, allocations: 65.8 MB / 0.5378 GB, free: 34.94 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.4036/0.6359, allocations: 232.1 MB / 0.7644 GB, free: 15.84 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.03171/0.6677, allocations: 36.19 MB / 0.7997 GB, free: 5.051 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002685/0.6704, allocations: 42.22 kB / 0.7998 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.003805/0.6742, allocations: 1.599 MB / 0.8013 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.006283/0.6805, allocations: 2.569 MB / 0.8039 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.005958/0.6865, allocations: 2.331 MB / 0.8061 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.004986/0.6915, allocations: 5.401 MB / 0.8114 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001026/0.6925, allocations: 0.8891 MB / 0.8123 GB, free: 9.875 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002303/0.6948, allocations: 1.549 MB / 0.8138 GB, free: 8.32 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002468/0.6973, allocations: 2.285 MB / 0.816 GB, free: 6.027 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.6976, allocations: 124 kB / 0.8161 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008492/0.7061, allocations: 4.558 MB / 0.8206 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0004363/0.7065, allocations: 0.5018 MB / 0.8211 GB, free: 0.8359 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.7078, allocations: 1.259 MB / 0.8223 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.004372/0.7122, allocations: 3.671 MB / 0.8259 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.7122, allocations: 0 / 0.8259 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7122, allocations: 0 / 0.8259 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.333e-05/0.7123, allocations: 0 / 0.8259 GB, free: 11.89 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.005301/0.7176, allocations: 2.889 MB / 0.8287 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.7176, allocations: 15.97 kB / 0.8287 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004619/0.7181, allocations: 265.8 kB / 0.829 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.7195, allocations: 1.173 MB / 0.8301 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.7196, allocations: 168.8 kB / 0.8303 GB, free: 7.262 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/0.7199, allocations: 236.2 kB / 0.8305 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003765/0.7237, allocations: 2.808 MB / 0.8333 GB, free: 4.156 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.1e-05/0.7238, allocations: 7.922 kB / 0.8333 GB, free: 4.148 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.7239, allocations: 88 kB / 0.8333 GB, free: 4.062 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.999e-05/0.724, allocations: 72.98 kB / 0.8334 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00378/0.7278, allocations: 2.812 MB / 0.8362 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/0.7393, allocations: 11.92 MB / 0.8478 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/0.743, allocations: 2.686 MB / 0.8504 GB, free: 1.352 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.7447, allocations: 1.425 MB / 0.8518 GB, free: 15.92 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008452/0.7532, allocations: 8.333 MB / 0.8599 GB, free: 6.656 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.7533, allocations: 60.48 kB / 0.86 GB, free: 6.59 MB / 0.573 GB Notification: Performance of pre-optimization done (n=239): time 3.606e-06/0.7533, allocations: 0 / 0.86 GB, free: 6.59 MB / 0.573 GB Notification: Performance of matching and sorting (n=243): time 0.01433/0.7676, allocations: 9.238 MB / 0.869 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.7677, allocations: 154.3 kB / 0.8692 GB, free: 12.81 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009626/0.7687, allocations: 0.9408 MB / 0.8701 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.7688, allocations: 65.7 kB / 0.8702 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004272/0.7692, allocations: 0.7899 MB / 0.8709 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005119/0.7697, allocations: 0.8123 MB / 0.8717 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.7699, allocations: 52 kB / 0.8718 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.77, allocations: 386.2 kB / 0.8721 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.7714, allocations: 0.9686 MB / 0.8731 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.773, allocations: 1.265 MB / 0.8743 GB, free: 7.387 MB / 0.5886 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance4.m_flow = flowResistance4.m_flow_0 (flowResistance7.m_flow_0 - flowResistance5.m_flow_0 = flowResistance4.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance10.m_flow = flowResistance10.m_flow_0 (flowResistance6.m_flow_0 - flowResistance11.m_flow_0 = flowResistance10.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance8.m_flow = flowResistance8.m_flow_0 (flowResistance3.m_flow_0 - flowResistance9.m_flow_0 = flowResistance8.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance.m_flow = flowResistance.m_flow_0 (flowResistance2.m_flow_0 - flowResistance1.m_flow_0 = flowResistance.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0497/0.8227, allocations: 13.16 MB / 0.8872 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.8227, allocations: 4 kB / 0.8872 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005804/0.8286, allocations: 3.34 MB / 0.8904 GB, free: 6.68 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.8286, allocations: 8 kB / 0.8905 GB, free: 6.672 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.8286, allocations: 8.062 kB / 0.8905 GB, free: 6.664 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002133/0.8308, allocations: 0.8189 MB / 0.8913 GB, free: 5.832 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.832, allocations: 367.5 kB / 0.8916 GB, free: 5.473 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01483/0.8468, allocations: 11.14 MB / 0.9025 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.8485, allocations: 143.6 kB / 0.9026 GB, free: 9.668 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.8487, allocations: 100.1 kB / 0.9027 GB, free: 9.57 MB / 0.6198 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: flowResistance4.m_flow = flowResistance4.m_flow_0 flowResistance10.m_flow = flowResistance10.m_flow_0 flowResistance8.m_flow = flowResistance8.m_flow_0 flowResistance.m_flow = flowResistance.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (205): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,9,77.8%), (3,22,77.8%), (3,19,77.8%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008002/0.8495, allocations: 457.6 kB / 0.9032 GB, free: 9.113 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003987/0.8499, allocations: 169.9 kB / 0.9033 GB, free: 8.945 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006835/0.8568, allocations: 3.949 MB / 0.9072 GB, free: 5.039 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/0.8568, allocations: 32 kB / 0.9072 GB, free: 5.008 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.8568, allocations: 12 kB / 0.9072 GB, free: 4.996 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.509e-05/0.8569, allocations: 15.95 kB / 0.9072 GB, free: 4.98 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.867, allocations: 6.763 MB / 0.9138 GB, free: 14.12 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.867, allocations: 7.984 kB / 0.9138 GB, free: 14.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/0.8684, allocations: 395.4 kB / 0.9142 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.8703, allocations: 0.6984 MB / 0.9149 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001715/0.8705, allocations: 83.95 kB / 0.915 GB, free: 12.94 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009989/0.8805, allocations: 9.606 MB / 0.9244 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.778e-06/0.8805, allocations: 7.984 kB / 0.9244 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2025/1.083, allocations: 5.272 MB / 0.9295 GB, free: 265.8 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005082/1.084, allocations: 250.2 kB / 0.9298 GB, free: 265.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005186/1.084, allocations: 63.28 kB / 0.9298 GB, free: 265.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/1.086, allocations: 143.9 kB / 0.93 GB, free: 265.7 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005674/1.086, allocations: 217.5 kB / 0.9302 GB, free: 265.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/1.087, allocations: 98.94 kB / 0.9303 GB, free: 265.7 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0009613/1.088, allocations: 0.6337 MB / 0.9309 GB, free: 265.6 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.21e-07/1.088, allocations: 2.625 kB / 0.9309 GB, free: 265.6 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.003563/1.091, allocations: 1.207 MB / 0.9321 GB, free: 265.6 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance9.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance11.inlet.m_flow,flowResistance6.inlet.m_flow,flowResistance5.inlet.m_flow,flowResistance7.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 (220): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,8,100.0%), (3,19,77.8%), (3,22,77.8%), (3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002641/1.094, allocations: 1.477 MB / 0.9335 GB, free: 265.3 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.005803/1.1, allocations: 3.512 MB / 0.9369 GB, free: 264 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.1, allocations: 0 / 0.9369 GB, free: 264 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0041/1.104, allocations: 2.408 MB / 0.9393 GB, free: 262.8 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/1.108, allocations: 0.5973 MB / 0.9399 GB, free: 262.6 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006548/1.115, allocations: 5.775 MB / 0.9455 GB, free: 259.5 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007982/1.115, allocations: 1.568 MB / 0.947 GB, free: 258.7 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005979/1.116, allocations: 223.7 kB / 0.9472 GB, free: 258.7 MB / 0.6355 GB Notification: Performance of SimCode: time 6.41e-07/1.116, allocations: 0 / 0.9472 GB, free: 258.7 MB / 0.6355 GB Notification: Performance of Templates: time 0.05528/1.171, allocations: 79.16 MB / 1.025 GB, free: 188.7 MB / 0.6355 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches