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.001436/0.001436, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 89.73 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.38e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3269/0.3269, allocations: 47.55 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.07/10.4, allocations: 3.616 GB / 3.97 GB, free: 107.9 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/10.4, allocations: 76.78 kB / 3.97 GB, free: 107.9 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.495/15.9, allocations: 0.97 GB / 4.94 GB, free: 19.96 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.605e-06/15.9, allocations: 0 / 4.94 GB, free: 19.96 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0006239/15.9, allocations: 165.1 kB / 4.94 GB, free: 19.95 MB / 475.1 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.05951/15.96, allocations: 9.832 MB / 4.95 GB, free: 15.79 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/15.96, allocations: 14.53 kB / 4.95 GB, free: 15.78 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008709/15.97, allocations: 0.8608 MB / 4.951 GB, free: 15.39 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02705/15.99, allocations: 5.705 MB / 4.956 GB, free: 14.37 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005712/15.99, allocations: 237.7 kB / 4.956 GB, free: 14.37 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00517/16, allocations: 435.4 kB / 4.957 GB, free: 14.36 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04286/16.04, allocations: 15.83 MB / 4.972 GB, free: 8.09 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04948/16.09, allocations: 13.37 MB / 4.985 GB, free: 13.89 MB / 491.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005194/16.09, allocations: 19.47 kB / 4.985 GB, free: 13.88 MB / 491.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004915/16.1, allocations: 12 kB / 4.985 GB, free: 13.87 MB / 491.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001279/16.1, allocations: 0.705 MB / 4.986 GB, free: 13.25 MB / 491.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5647/16.66, allocations: 47.76 MB / 5.033 GB, free: 23.9 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03228/16.69, allocations: 10.91 MB / 5.043 GB, free: 23.84 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02052/16.72, allocations: 7.594 MB / 5.051 GB, free: 23.78 MB / 491.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00835/16.72, allocations: 4.145 MB / 5.055 GB, free: 19.55 MB / 491.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/16.72, allocations: 147.8 kB / 5.055 GB, free: 19.51 MB / 491.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01197/16.74, allocations: 0.9033 MB / 5.056 GB, free: 19.36 MB / 491.1 MB Notification: Performance of pre-optimization done (n=925): time 7.015e-05/16.74, allocations: 0.6562 kB / 5.056 GB, free: 19.36 MB / 491.1 MB Notification: Performance of matching and sorting (n=1187): time 0.483/17.22, allocations: 83.37 MB / 5.137 GB, free: 14.19 MB / 491.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/17.22, allocations: 171.5 kB / 5.137 GB, free: 14.12 MB / 491.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/17.23, allocations: 2.249 MB / 5.14 GB, free: 12.69 MB / 491.1 MB Notification: Performance of collectPreVariables (initialization): time 0.004919/17.23, allocations: 34.55 kB / 5.14 GB, free: 12.65 MB / 491.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/17.23, allocations: 2.193 MB / 5.142 GB, free: 10.98 MB / 491.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.007596/17.24, allocations: 3.978 MB / 5.146 GB, free: 7.414 MB / 491.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004133/17.24, allocations: 0.8438 kB / 5.146 GB, free: 7.414 MB / 491.1 MB Notification: Performance of setup shared object (initialization): time 0.00108/17.25, allocations: 0.7735 MB / 5.146 GB, free: 6.77 MB / 491.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03154/17.28, allocations: 9.698 MB / 5.156 GB, free: 0 / 491.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02933/17.31, allocations: 10.47 MB / 5.166 GB, free: 6.684 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08643/17.39, allocations: 14.96 MB / 5.181 GB, free: 15.08 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/17.39, allocations: 8 kB / 5.181 GB, free: 15.07 MB / 0.5108 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.5605/17.95, allocations: 33.32 MB / 5.213 GB, free: 60.53 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.001955/17.96, allocations: 8.839 MB / 5.222 GB, free: 51.34 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001905/17.96, allocations: 24.31 kB / 5.222 GB, free: 51.34 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3627/18.32, allocations: 43.61 MB / 5.265 GB, free: 51.02 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009585/18.33, allocations: 1.077 MB / 5.266 GB, free: 51.02 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1217/18.45, allocations: 37.54 MB / 5.302 GB, free: 50.18 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02644/18.48, allocations: 1.624 MB / 5.304 GB, free: 50.18 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005414/18.48, allocations: 0.6045 MB / 5.304 GB, free: 50.18 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/18.48, allocations: 3.344 kB / 5.304 GB, free: 50.18 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.118/18.6, allocations: 30.58 MB / 5.334 GB, free: 45.43 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000179/18.6, allocations: 25.77 kB / 5.334 GB, free: 45.43 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3429/18.94, allocations: 41.98 MB / 5.375 GB, free: 18.93 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00989/18.95, allocations: 1.126 MB / 5.376 GB, free: 18.04 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5676/19.52, allocations: 35.09 MB / 5.411 GB, free: 59.75 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02473/19.55, allocations: 1.592 MB / 5.412 GB, free: 59.75 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005297/19.55, allocations: 0.5945 MB / 5.413 GB, free: 59.75 MB / 0.5108 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 (599): * Single equations (assignments): 598 * 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 {68 768} Notification: Performance of prepare postOptimizeDAE: time 0.008116/19.56, allocations: 211 kB / 5.413 GB, free: 59.64 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0796/19.64, allocations: 22.88 MB / 5.435 GB, free: 59.15 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005551/19.64, allocations: 0.5927 MB / 5.436 GB, free: 59.02 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0961/19.74, allocations: 27.31 MB / 5.463 GB, free: 58.07 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001808/19.74, allocations: 126 kB / 5.463 GB, free: 58.07 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.181e-05/19.74, allocations: 0 / 5.463 GB, free: 58.07 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.08915/19.83, allocations: 21.42 MB / 5.484 GB, free: 57.17 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1598/19.99, allocations: 43.28 MB / 5.526 GB, free: 43.93 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000126/19.99, allocations: 3.812 kB / 5.526 GB, free: 43.93 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03462/20.02, allocations: 3.377 MB / 5.529 GB, free: 41.93 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05452/20.08, allocations: 10.07 MB / 5.539 GB, free: 35.25 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004515/20.08, allocations: 0.4924 MB / 5.54 GB, free: 34.92 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04909/20.13, allocations: 42.59 MB / 5.581 GB, free: 10.22 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/20.13, allocations: 1.312 kB / 5.581 GB, free: 10.22 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5904/20.72, allocations: 39.23 MB / 5.619 GB, free: 73.39 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003083/20.73, allocations: 0.7094 MB / 5.62 GB, free: 73.29 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005957/20.73, allocations: 282.5 kB / 5.62 GB, free: 73.29 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02499/20.76, allocations: 1.28 MB / 5.622 GB, free: 73.29 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005858/20.76, allocations: 0.8008 MB / 5.622 GB, free: 73.28 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005789/20.77, allocations: 0.5692 MB / 5.623 GB, free: 73.28 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.004679/20.77, allocations: 1.667 MB / 5.625 GB, free: 73.14 MB / 0.5265 GB Notification: Performance of sort global known variables: time 5.71e-07/20.77, allocations: 4.562 kB / 5.625 GB, free: 73.14 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.03935/20.81, allocations: 6.419 MB / 5.631 GB, free: 73.14 MB / 0.5265 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 (1168): * Single equations (assignments): 1121 * 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.1577/20.97, allocations: 42 MB / 5.672 GB, free: 71.03 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.1115/21.08, allocations: 34.12 MB / 5.705 GB, free: 69.12 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 2.058e-05/21.08, allocations: 12.03 kB / 5.705 GB, free: 69.11 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.04641/21.13, allocations: 12.74 MB / 5.718 GB, free: 65.11 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02706/21.16, allocations: 2.685 MB / 5.72 GB, free: 64.7 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1347/21.29, allocations: 31.32 MB / 5.751 GB, free: 44.28 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01431/21.31, allocations: 5.297 MB / 5.756 GB, free: 40.32 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02166/21.33, allocations: 3.667 MB / 5.76 GB, free: 36.99 MB / 0.5265 GB Notification: Performance of SimCode: time 2.144e-06/21.33, allocations: 0 / 5.76 GB, free: 36.99 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.72/34.05, allocations: 0.8481 GB / 6.608 GB, free: 72.21 MB / 0.5577 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