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: "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Topology_Tests_TestJunction",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.01275/0.01275, allocations: 170.3 kB / 15.12 MB, free: 6.031 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.69/1.69, allocations: 205.4 MB / 221.3 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.0009126/0.0009125, allocations: 86.81 kB / 269.6 MB, free: 13.37 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.7971/0.7971, allocations: 90.58 MB / 408.4 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003753, allocations: 15.98 kB / 485.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4135, allocations: 66.27 MB / 0.5387 GB, free: 45.68 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.2566/0.6702, allocations: 199.8 MB / 0.7338 GB, free: 3.699 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.4939/1.164, allocations: 30.28 MB / 0.7634 GB, free: 6.484 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00365/1.168, allocations: 43.28 kB / 0.7634 GB, free: 6.484 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.005609/1.173, allocations: 1.65 MB / 0.765 GB, free: 6.477 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.009949/1.183, allocations: 2.741 MB / 0.7677 GB, free: 6.438 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.007617/1.191, allocations: 2.021 MB / 0.7697 GB, free: 6.41 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.00723/1.198, allocations: 2.75 MB / 0.7724 GB, free: 6.41 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/1.201, allocations: 0.8033 MB / 0.7732 GB, free: 22.25 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005204/1.206, allocations: 1.351 MB / 0.7745 GB, free: 22.25 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006495/1.213, allocations: 1.863 MB / 0.7763 GB, free: 22.24 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.001638/1.215, allocations: 122.4 kB / 0.7764 GB, free: 22.24 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01645/1.231, allocations: 4.222 MB / 0.7805 GB, free: 22.23 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001916/1.233, allocations: 479.8 kB / 0.781 GB, free: 22.23 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.003593/1.237, allocations: 0.5073 MB / 0.7815 GB, free: 22.2 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01078/1.247, allocations: 3.437 MB / 0.7848 GB, free: 21.89 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.248, allocations: 0 / 0.7848 GB, free: 21.89 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.748e-06/1.248, allocations: 0.75 kB / 0.7848 GB, free: 21.89 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002363/1.248, allocations: 4.812 kB / 0.7848 GB, free: 21.89 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.01178/1.26, allocations: 2.908 MB / 0.7877 GB, free: 20.55 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.26, allocations: 9.344 kB / 0.7877 GB, free: 20.55 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001296/1.261, allocations: 312.2 kB / 0.788 GB, free: 20.5 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/1.262, allocations: 267.3 kB / 0.7882 GB, free: 20.38 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/1.265, allocations: 1.135 MB / 0.7894 GB, free: 20.01 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/1.266, allocations: 166 kB / 0.7895 GB, free: 20 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005287/1.266, allocations: 239.6 kB / 0.7897 GB, free: 19.99 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004861/1.271, allocations: 2.767 MB / 0.7924 GB, free: 19.82 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/1.271, allocations: 4.969 kB / 0.7925 GB, free: 19.82 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/1.271, allocations: 88.22 kB / 0.7925 GB, free: 19.82 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.441e-05/1.271, allocations: 65.72 kB / 0.7926 GB, free: 19.82 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004058/1.276, allocations: 2.8 MB / 0.7953 GB, free: 19.81 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/1.292, allocations: 12.16 MB / 0.8072 GB, free: 13.23 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004092/1.296, allocations: 2.654 MB / 0.8098 GB, free: 13.08 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/1.308, allocations: 8.247 MB / 0.8179 GB, free: 7.105 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/1.308, allocations: 64.48 kB / 0.8179 GB, free: 7.062 MB / 0.573 GB Notification: Performance of pre-optimization done (n=242): time 4.859e-06/1.308, allocations: 0 / 0.8179 GB, free: 7.062 MB / 0.573 GB Notification: Performance of matching and sorting (n=246): time 0.01986/1.328, allocations: 9.796 MB / 0.8275 GB, free: 2.887 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/1.328, allocations: 157.6 kB / 0.8276 GB, free: 2.73 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/1.329, allocations: 0.9122 MB / 0.8285 GB, free: 2.441 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004176/1.33, allocations: 69.14 kB / 0.8286 GB, free: 2.406 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004832/1.33, allocations: 0.7715 MB / 0.8293 GB, free: 1.973 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001112/1.331, allocations: 0.831 MB / 0.8301 GB, free: 1.359 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/1.332, allocations: 42.72 kB / 0.8302 GB, free: 1.359 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002582/1.332, allocations: 384 kB / 0.8306 GB, free: 1.031 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001998/1.334, allocations: 0.9835 MB / 0.8315 GB, free: 0.8906 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/1.336, allocations: 1.261 MB / 0.8327 GB, free: 500 kB / 0.573 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.05325/1.389, allocations: 11.55 MB / 0.844 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.883e-05/1.389, allocations: 0 / 0.844 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.008997/1.398, allocations: 3.348 MB / 0.8473 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.031e-05/1.398, allocations: 7.953 kB / 0.8473 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/1.398, allocations: 8.938 kB / 0.8473 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002739/1.401, allocations: 0.8111 MB / 0.8481 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001855/1.403, allocations: 368.3 kB / 0.8485 GB, free: 7.152 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01875/1.422, allocations: 11.34 MB / 0.8595 GB, free: 13.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/1.424, allocations: 146 kB / 0.8597 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006897/1.425, allocations: 99.75 kB / 0.8598 GB, free: 13.62 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: 26 * 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.001775/1.427, allocations: 458.6 kB / 0.8602 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008219/1.427, allocations: 173.8 kB / 0.8604 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009501/1.437, allocations: 4.117 MB / 0.8644 GB, free: 10.52 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.176e-05/1.437, allocations: 31.98 kB / 0.8644 GB, free: 10.49 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.453e-05/1.437, allocations: 12 kB / 0.8644 GB, free: 10.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.696e-05/1.437, allocations: 11.95 kB / 0.8644 GB, free: 10.47 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/1.451, allocations: 6.921 MB / 0.8712 GB, free: 5.793 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-05/1.451, allocations: 4 kB / 0.8712 GB, free: 5.789 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/1.453, allocations: 396.8 kB / 0.8716 GB, free: 5.434 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002338/1.455, allocations: 0.6764 MB / 0.8722 GB, free: 4.859 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003825/1.456, allocations: 88.75 kB / 0.8723 GB, free: 4.816 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/1.468, allocations: 9.786 MB / 0.8819 GB, free: 12.66 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.468, allocations: 4 kB / 0.8819 GB, free: 12.66 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/1.479, allocations: 5.444 MB / 0.8872 GB, free: 8.805 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009124/1.48, allocations: 261.6 kB / 0.8874 GB, free: 8.543 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006902/1.481, allocations: 68.7 kB / 0.8875 GB, free: 8.516 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/1.483, allocations: 151.9 kB / 0.8877 GB, free: 8.402 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006813/1.484, allocations: 212.7 kB / 0.8879 GB, free: 8.227 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004249/1.484, allocations: 99.31 kB / 0.888 GB, free: 8.148 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.00115/1.485, allocations: 0.6233 MB / 0.8886 GB, free: 7.676 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.51e-07/1.485, allocations: 4 kB / 0.8886 GB, free: 7.672 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.006925/1.492, allocations: 1.207 MB / 0.8897 GB, free: 6.641 MB / 0.6199 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.01443/1.507, allocations: 8.127 MB / 0.8977 GB, free: 316 kB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.007417/1.514, allocations: 3.556 MB / 0.9012 GB, free: 13.69 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.514, allocations: 0 / 0.9012 GB, free: 13.69 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.519, allocations: 2.396 MB / 0.9035 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/1.523, allocations: 0.551 MB / 0.904 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03217/1.555, allocations: 17.85 MB / 0.9215 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001964/1.557, allocations: 1.628 MB / 0.9231 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.002878/1.56, allocations: 0.5491 MB / 0.9236 GB, free: 9.668 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001751/1.562, allocations: 0.9105 MB / 0.9245 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of SimCode: time 1.363e-06/1.562, allocations: 0 / 0.9245 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1287/1.691, allocations: 72.27 MB / 0.9951 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/1.691, allocations: 229.1 kB / 0.9953 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.68/6.371, allocations: 3.906 kB / 0.9953 GB, free: 1.324 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_Topology_Tests_TestJunction.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat does not exist to compare? outputFormat=mat