Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.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) 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(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",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.002364/0.002364, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001116/0.001115, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.033e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09316, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.85/10.95, allocations: 3.617 GB / 3.977 GB, free: 115.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/10.95, allocations: 74.16 kB / 3.977 GB, free: 115.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.647/16.59, allocations: 0.9784 GB / 4.956 GB, free: 5.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.903e-06/16.59, allocations: 0 / 4.956 GB, free: 5.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005395/16.59, allocations: 160 kB / 4.956 GB, free: 5.113 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.06154/16.65, allocations: 9.84 MB / 4.965 GB, free: 11.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.973e-05/16.65, allocations: 8.031 kB / 4.965 GB, free: 11.2 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007125/16.66, allocations: 1.014 MB / 4.966 GB, free: 10.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/16.67, allocations: 0.8734 MB / 4.967 GB, free: 9.293 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04098/16.71, allocations: 5.696 MB / 4.973 GB, free: 3.555 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001207/16.71, allocations: 0.5283 MB / 4.973 GB, free: 3.023 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006255/16.72, allocations: 0.7336 MB / 4.974 GB, free: 2.289 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8773/17.6, allocations: 14.08 MB / 4.988 GB, free: 25.43 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007025/17.6, allocations: 19.81 kB / 4.988 GB, free: 25.43 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005447/17.6, allocations: 286.6 kB / 4.988 GB, free: 25.43 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001467/17.61, allocations: 0.7104 MB / 4.989 GB, free: 25.41 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05333/17.66, allocations: 16.66 MB / 5.005 GB, free: 25.35 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1527/17.81, allocations: 48.75 MB / 5.053 GB, free: 26.99 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03308/17.85, allocations: 11.02 MB / 5.063 GB, free: 26.89 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02147/17.87, allocations: 7.66 MB / 5.071 GB, free: 25.14 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006984/17.87, allocations: 4.141 MB / 5.075 GB, free: 20.8 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/17.87, allocations: 156 kB / 5.075 GB, free: 20.69 MB / 0.4949 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009675/17.88, allocations: 0.9006 MB / 5.076 GB, free: 20.33 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=926): time 4.004e-05/17.88, allocations: 0.5625 kB / 5.076 GB, free: 20.33 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1188): time 0.5059/18.39, allocations: 86.15 MB / 5.16 GB, free: 14.36 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002092/18.39, allocations: 172.7 kB / 5.16 GB, free: 14.18 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0107/18.4, allocations: 3.384 MB / 5.164 GB, free: 11.19 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.004775/18.41, allocations: 241.7 kB / 5.164 GB, free: 10.95 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002834/18.41, allocations: 2.116 MB / 5.166 GB, free: 9.129 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.009519/18.42, allocations: 4.14 MB / 5.17 GB, free: 5.414 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004537/18.42, allocations: 224 kB / 5.17 GB, free: 5.195 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.002712/18.43, allocations: 0.7684 MB / 5.171 GB, free: 4.551 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07058/18.5, allocations: 10.6 MB / 5.181 GB, free: 0 / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4561/18.95, allocations: 10.52 MB / 5.192 GB, free: 70.61 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03148/18.98, allocations: 10.32 MB / 5.202 GB, free: 70.46 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.105e-05/18.98, allocations: 7.781 kB / 5.202 GB, free: 70.46 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.1023/19.09, allocations: 29.78 MB / 5.231 GB, free: 70.12 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.002003/19.09, allocations: 8.853 MB / 5.239 GB, free: 60.91 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/19.09, allocations: 21.97 kB / 5.239 GB, free: 60.91 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5021/19.59, allocations: 84.63 MB / 5.322 GB, free: 39.23 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009301/19.6, allocations: 1.066 MB / 5.323 GB, free: 38.42 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.105/19.71, allocations: 33.5 MB / 5.356 GB, free: 15.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02667/19.73, allocations: 1.834 MB / 5.358 GB, free: 14.39 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005135/19.74, allocations: 0.5988 MB / 5.358 GB, free: 13.89 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/19.74, allocations: 4 kB / 5.358 GB, free: 13.88 MB / 0.5262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5702/20.31, allocations: 31.73 MB / 5.389 GB, free: 63.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/20.31, allocations: 22.41 kB / 5.389 GB, free: 63.88 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4582/20.77, allocations: 64.08 MB / 5.452 GB, free: 63.53 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01008/20.78, allocations: 1.117 MB / 5.453 GB, free: 63.53 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09807/20.87, allocations: 31.48 MB / 5.484 GB, free: 62.72 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02494/20.9, allocations: 1.8 MB / 5.485 GB, free: 62.72 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005325/20.9, allocations: 0.5877 MB / 5.486 GB, free: 62.72 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (597): * Single equations (assignments): 596 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {75 763} Notification: Performance of prepare postOptimizeDAE: time 0.009706/20.91, allocations: 0.6073 MB / 5.487 GB, free: 62.61 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006309/20.92, allocations: 0.6656 MB / 5.487 GB, free: 62.61 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09823/21.02, allocations: 27.69 MB / 5.514 GB, free: 53.74 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001902/21.02, allocations: 127.5 kB / 5.514 GB, free: 53.62 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.754e-05/21.02, allocations: 0 / 5.514 GB, free: 53.62 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06916/21.09, allocations: 21.09 MB / 5.535 GB, free: 35.68 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6215/21.71, allocations: 43.36 MB / 5.577 GB, free: 58.88 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001735/21.71, allocations: 1.469 kB / 5.577 GB, free: 58.88 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03753/21.75, allocations: 3.393 MB / 5.581 GB, free: 58.88 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05927/21.81, allocations: 10.16 MB / 5.591 GB, free: 58.68 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005357/21.81, allocations: 0.6318 MB / 5.591 GB, free: 58.68 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05103/21.86, allocations: 41.79 MB / 5.632 GB, free: 29.28 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/21.86, allocations: 0 / 5.632 GB, free: 29.28 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1241/21.99, allocations: 35.83 MB / 5.667 GB, free: 28.24 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003417/21.99, allocations: 0.8186 MB / 5.668 GB, free: 27.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006857/22, allocations: 483.7 kB / 5.668 GB, free: 27.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02514/22.02, allocations: 1.488 MB / 5.67 GB, free: 27.77 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005563/22.03, allocations: 0.8065 MB / 5.67 GB, free: 27.76 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005247/22.03, allocations: 0.5699 MB / 5.671 GB, free: 27.76 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006896/22.04, allocations: 2.597 MB / 5.674 GB, free: 27.6 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.042e-06/22.04, allocations: 0 / 5.674 GB, free: 27.6 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.04092/22.08, allocations: 7.105 MB / 5.68 GB, free: 27.6 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1169): * Single equations (assignments): 1122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.1551/22.24, allocations: 40.56 MB / 5.72 GB, free: 21.06 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.129/22.37, allocations: 34.92 MB / 5.754 GB, free: 1.16 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 4.394e-05/22.37, allocations: 8.781 kB / 5.754 GB, free: 1.148 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.6617/23.03, allocations: 15.61 MB / 5.769 GB, free: 67.67 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03997/23.07, allocations: 3.165 MB / 5.773 GB, free: 67.61 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.162/23.23, allocations: 32.43 MB / 5.804 GB, free: 63.03 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01565/23.25, allocations: 5.287 MB / 5.809 GB, free: 62.08 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01964/23.27, allocations: 3.713 MB / 5.813 GB, free: 62.07 MB / 0.5262 GB Notification: Performance of SimCode: time 1.853e-06/23.27, allocations: 0 / 5.813 GB, free: 62.07 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.54/35.8, allocations: 0.8547 GB / 6.668 GB, free: 115.8 MB / 0.5887 GB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat