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.001294/0.001294, allocations: 174.6 kB / 15.77 MB, free: 6.324 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.556/1.556, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0008558/0.0008557, allocations: 86.27 kB / 270.3 MB, free: 13.36 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.7242/0.7242, allocations: 90.61 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003289, allocations: 8 kB / 485.9 MB, free: 2.07 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3587, allocations: 66.27 MB / 0.5392 GB, free: 45.62 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.2413/0.6, allocations: 216.9 MB / 0.751 GB, free: 2.609 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.4419/1.042, allocations: 33.7 MB / 0.7839 GB, free: 5.742 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00414/1.046, allocations: 43.06 kB / 0.784 GB, free: 5.742 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.006407/1.052, allocations: 1.54 MB / 0.7855 GB, free: 5.68 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.01184/1.064, allocations: 2.663 MB / 0.7881 GB, free: 5.566 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.009331/1.074, allocations: 1.949 MB / 0.79 GB, free: 5.5 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.01023/1.084, allocations: 4.726 MB / 0.7946 GB, free: 5.5 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002552/1.087, allocations: 0.8089 MB / 0.7954 GB, free: 21.34 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005011/1.092, allocations: 1.468 MB / 0.7968 GB, free: 21.33 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006669/1.098, allocations: 2.234 MB / 0.799 GB, free: 21.32 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0009923/1.099, allocations: 123.1 kB / 0.7991 GB, free: 21.32 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01631/1.116, allocations: 3.956 MB / 0.803 GB, free: 21.23 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001592/1.117, allocations: 484.7 kB / 0.8034 GB, free: 21.23 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002197/1.12, allocations: 0.5054 MB / 0.8039 GB, free: 21.2 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.008526/1.128, allocations: 3.477 MB / 0.8073 GB, free: 20.9 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.128, allocations: 4.844 kB / 0.8073 GB, free: 20.9 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.874e-06/1.128, allocations: 0 / 0.8073 GB, free: 20.9 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.752e-05/1.128, allocations: 0 / 0.8073 GB, free: 20.9 MB / 0.573 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.008047/1.136, allocations: 2.912 MB / 0.8102 GB, free: 19.56 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/1.136, allocations: 11.55 kB / 0.8102 GB, free: 19.56 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009082/1.137, allocations: 268.1 kB / 0.8104 GB, free: 19.43 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002597/1.14, allocations: 1.132 MB / 0.8116 GB, free: 19.07 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/1.14, allocations: 163.1 kB / 0.8117 GB, free: 19.06 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004176/1.141, allocations: 245.1 kB / 0.8119 GB, free: 19.05 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005373/1.146, allocations: 2.782 MB / 0.8147 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/1.146, allocations: 0 / 0.8147 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002156/1.146, allocations: 89.06 kB / 0.8147 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.394e-05/1.146, allocations: 72.73 kB / 0.8148 GB, free: 18.88 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00467/1.151, allocations: 2.803 MB / 0.8175 GB, free: 18.87 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/1.167, allocations: 11.93 MB / 0.8292 GB, free: 10.75 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004161/1.171, allocations: 2.665 MB / 0.8318 GB, free: 10.33 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/1.173, allocations: 1.416 MB / 0.8332 GB, free: 10.14 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/1.184, allocations: 8.342 MB / 0.8413 GB, free: 3.809 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/1.184, allocations: 63.19 kB / 0.8414 GB, free: 3.766 MB / 0.573 GB Notification: Performance of pre-optimization done (n=239): time 4.969e-06/1.184, allocations: 0 / 0.8414 GB, free: 3.766 MB / 0.573 GB Notification: Performance of matching and sorting (n=243): time 0.01667/1.201, allocations: 9.209 MB / 0.8504 GB, free: 216 kB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.793e-05/1.201, allocations: 156.4 kB / 0.8505 GB, free: 52 kB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/1.202, allocations: 0.9235 MB / 0.8514 GB, free: 15.78 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001584/1.202, allocations: 69.53 kB / 0.8515 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/1.203, allocations: 0.7869 MB / 0.8523 GB, free: 15.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006397/1.204, allocations: 0.8128 MB / 0.8531 GB, free: 14.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/1.204, allocations: 41.5 kB / 0.8531 GB, free: 14.59 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001773/1.204, allocations: 388.2 kB / 0.8535 GB, free: 14.24 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/1.205, allocations: 0.9624 MB / 0.8544 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/1.207, allocations: 1.266 MB / 0.8556 GB, free: 12.69 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: flowResistance5.m_flow = flowResistance5.m_flow_0 (flowResistance7.m_flow_0 - flowResistance4.m_flow_0 = flowResistance5.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: flowResistance11.m_flow = flowResistance11.m_flow_0 (flowResistance6.m_flow_0 - flowResistance10.m_flow_0 = flowResistance11.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: flowResistance9.m_flow = flowResistance9.m_flow_0 (flowResistance3.m_flow_0 - flowResistance8.m_flow_0 = flowResistance9.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: flowResistance1.m_flow = flowResistance1.m_flow_0 (flowResistance2.m_flow_0 - flowResistance.m_flow_0 = flowResistance1.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.05012/1.257, allocations: 10.82 MB / 0.8662 GB, free: 2.941 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/1.257, allocations: 0 / 0.8662 GB, free: 2.941 MB / 0.5886 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.007499/1.265, allocations: 3.312 MB / 0.8694 GB, free: 0.7344 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/1.265, allocations: 11.95 kB / 0.8695 GB, free: 0.7227 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/1.265, allocations: 8 kB / 0.8695 GB, free: 0.7148 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002542/1.267, allocations: 0.8204 MB / 0.8703 GB, free: 60 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/1.269, allocations: 372.6 kB / 0.8706 GB, free: 15.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01784/1.287, allocations: 11.12 MB / 0.8815 GB, free: 6.527 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002711/1.289, allocations: 143.6 kB / 0.8816 GB, free: 6.418 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007979/1.29, allocations: 96.34 kB / 0.8817 GB, free: 6.348 MB / 0.6042 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: flowResistance5.m_flow = flowResistance5.m_flow_0 flowResistance11.m_flow = flowResistance11.m_flow_0 flowResistance9.m_flow = flowResistance9.m_flow_0 flowResistance1.m_flow = flowResistance1.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 9,(3,77.8%) 22,(3,77.8%) 19,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002189/1.293, allocations: 462.5 kB / 0.8821 GB, free: 6.074 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007266/1.293, allocations: 168.1 kB / 0.8823 GB, free: 5.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008288/1.302, allocations: 3.956 MB / 0.8862 GB, free: 3.383 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.9e-05/1.302, allocations: 31.94 kB / 0.8862 GB, free: 3.352 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.597e-05/1.302, allocations: 14.53 kB / 0.8862 GB, free: 3.34 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.24e-05/1.302, allocations: 15.94 kB / 0.8862 GB, free: 3.324 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/1.315, allocations: 6.741 MB / 0.8928 GB, free: 14.75 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/1.315, allocations: 2.438 kB / 0.8928 GB, free: 14.75 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/1.317, allocations: 394.2 kB / 0.8932 GB, free: 14.4 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/1.319, allocations: 0.7021 MB / 0.8939 GB, free: 13.8 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002487/1.319, allocations: 93.02 kB / 0.894 GB, free: 13.76 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/1.331, allocations: 9.553 MB / 0.9033 GB, free: 5.746 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.331, allocations: 4.375 kB / 0.9033 GB, free: 5.742 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009959/1.341, allocations: 5.259 MB / 0.9084 GB, free: 2.113 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009136/1.342, allocations: 253.2 kB / 0.9087 GB, free: 1.859 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005679/1.343, allocations: 61.75 kB / 0.9087 GB, free: 1.84 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/1.345, allocations: 148.3 kB / 0.9089 GB, free: 1.73 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004995/1.345, allocations: 222.3 kB / 0.9091 GB, free: 1.543 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003009/1.345, allocations: 101 kB / 0.9092 GB, free: 1.465 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.0009679/1.346, allocations: 0.6231 MB / 0.9098 GB, free: 0.9922 MB / 0.6199 GB Notification: Performance of sort global known variables: time 4.6e-07/1.346, allocations: 0 / 0.9098 GB, free: 0.9922 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.004574/1.351, allocations: 1.207 MB / 0.911 GB, free: 15.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(3,77.8%) 19,(3,77.8%) 22,(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003325/1.354, allocations: 1.482 MB / 0.9124 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.006382/1.361, allocations: 3.503 MB / 0.9158 GB, free: 12.11 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.361, allocations: 4 kB / 0.9158 GB, free: 12.1 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004106/1.365, allocations: 2.391 MB / 0.9182 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/1.369, allocations: 0.6033 MB / 0.9188 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.379, allocations: 5.691 MB / 0.9243 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.381, allocations: 1.577 MB / 0.9259 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009337/1.382, allocations: 217.7 kB / 0.9261 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of SimCode: time 1.633e-06/1.382, allocations: 0 / 0.9261 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of Templates: time 0.1098/1.492, allocations: 79.19 MB / 1.003 GB, free: 4.371 MB / 0.7136 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