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.003388/0.003388, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001193/0.001193, allocations: 96.95 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005361/0.0005362, allocations: 8 kB / 327.1 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3413, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.6/10.95, allocations: 3.617 GB / 3.983 GB, free: 1.445 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/10.95, allocations: 75.22 kB / 3.983 GB, free: 1.41 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.917/16.86, allocations: 0.9795 GB / 4.962 GB, free: 18.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.116e-06/16.86, allocations: 3.141 kB / 4.962 GB, free: 18.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005449/16.86, allocations: 157 kB / 4.962 GB, free: 18.83 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.06314/16.93, allocations: 10.52 MB / 4.973 GB, free: 14.04 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/16.93, allocations: 12.03 kB / 4.973 GB, free: 14.03 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007519/16.93, allocations: 1.042 MB / 4.974 GB, free: 13.62 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00904/16.94, allocations: 0.8662 MB / 4.975 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02757/16.97, allocations: 5.712 MB / 4.98 GB, free: 9.055 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009892/16.97, allocations: 0.5304 MB / 4.981 GB, free: 8.543 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005967/16.98, allocations: 0.7236 MB / 4.981 GB, free: 7.836 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05505/17.03, allocations: 14.27 MB / 4.995 GB, free: 9.645 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006026/17.03, allocations: 27.78 kB / 4.995 GB, free: 9.617 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005525/17.04, allocations: 290 kB / 4.996 GB, free: 9.352 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001378/17.04, allocations: 0.7021 MB / 4.996 GB, free: 8.648 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4882/17.53, allocations: 16.95 MB / 5.013 GB, free: 32.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1518/17.68, allocations: 48.75 MB / 5.06 GB, free: 18.19 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03388/17.71, allocations: 11.17 MB / 5.071 GB, free: 18.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005554/17.72, allocations: 4.14 MB / 5.075 GB, free: 13.85 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/17.72, allocations: 156.8 kB / 5.076 GB, free: 13.8 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009756/17.73, allocations: 0.89 MB / 5.076 GB, free: 13.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=926): time 4.783e-05/17.73, allocations: 0 / 5.076 GB, free: 13.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=1188): time 0.5806/18.31, allocations: 100.2 MB / 5.174 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001881/18.31, allocations: 176.7 kB / 5.174 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/18.32, allocations: 3.43 MB / 5.178 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0049/18.33, allocations: 241.7 kB / 5.178 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002778/18.33, allocations: 2.114 MB / 5.18 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.009801/18.34, allocations: 4.131 MB / 5.184 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005144/18.34, allocations: 224 kB / 5.184 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001574/18.35, allocations: 0.7682 MB / 5.185 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05638/18.4, allocations: 11.38 MB / 5.196 GB, free: 0 / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4783/18.88, allocations: 11.79 MB / 5.208 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04141/18.92, allocations: 11.56 MB / 5.219 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.544e-05/18.92, allocations: 7.719 kB / 5.219 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.1383/19.06, allocations: 33.48 MB / 5.252 GB, free: 63.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001994/19.06, allocations: 8.847 MB / 5.26 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/19.06, allocations: 26.52 kB / 5.26 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5195/19.58, allocations: 86.12 MB / 5.344 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009218/19.59, allocations: 1.065 MB / 5.346 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1542/19.75, allocations: 38.05 MB / 5.383 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02751/19.77, allocations: 1.835 MB / 5.384 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005586/19.78, allocations: 0.6007 MB / 5.385 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/19.78, allocations: 4 kB / 5.385 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5896/20.37, allocations: 33.88 MB / 5.418 GB, free: 75.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/20.37, allocations: 23.03 kB / 5.418 GB, free: 75.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4641/20.83, allocations: 65.93 MB / 5.483 GB, free: 75.26 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009667/20.84, allocations: 1.118 MB / 5.484 GB, free: 75.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1266/20.97, allocations: 35.01 MB / 5.518 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02434/20.99, allocations: 1.811 MB / 5.52 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005087/21, allocations: 0.5847 MB / 5.52 GB, free: 63.73 MB / 0.5261 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 () * Number of clocked 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.01485/21.01, allocations: 2.598 MB / 5.523 GB, free: 62.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006323/21.02, allocations: 0.661 MB / 5.523 GB, free: 62.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1241/21.14, allocations: 30.87 MB / 5.553 GB, free: 39.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001831/21.15, allocations: 128 kB / 5.554 GB, free: 39.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-05/21.15, allocations: 0 / 5.554 GB, free: 39.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.09187/21.24, allocations: 24.36 MB / 5.577 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5985/21.84, allocations: 44.67 MB / 5.621 GB, free: 72.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001671/21.84, allocations: 3.219 kB / 5.621 GB, free: 72.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03513/21.87, allocations: 3.414 MB / 5.624 GB, free: 72.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08241/21.95, allocations: 12.56 MB / 5.637 GB, free: 72.75 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00523/21.96, allocations: 0.627 MB / 5.637 GB, free: 72.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07008/22.03, allocations: 44.83 MB / 5.681 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/22.03, allocations: 4.219 kB / 5.681 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1413/22.17, allocations: 38.7 MB / 5.719 GB, free: 40.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003239/22.17, allocations: 0.8125 MB / 5.72 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006352/22.18, allocations: 488 kB / 5.72 GB, free: 39.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02402/22.2, allocations: 1.492 MB / 5.722 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005156/22.21, allocations: 0.7936 MB / 5.722 GB, free: 39.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004872/22.21, allocations: 0.58 MB / 5.723 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006658/22.22, allocations: 2.632 MB / 5.725 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.91e-07/22.22, allocations: 0 / 5.725 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.03825/22.26, allocations: 7.102 MB / 5.732 GB, free: 37.36 MB / 0.5261 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 () * Number of clocked 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.1626/22.42, allocations: 43.43 MB / 5.775 GB, free: 4.875 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.602/23.02, allocations: 39.6 MB / 5.813 GB, free: 74.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.852e-05/23.02, allocations: 8.656 kB / 5.813 GB, free: 74.25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.05807/23.08, allocations: 14.18 MB / 5.827 GB, free: 73.62 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02945/23.11, allocations: 3.171 MB / 5.83 GB, free: 73.53 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1495/23.26, allocations: 62.01 MB / 5.891 GB, free: 40.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01441/23.28, allocations: 5.284 MB / 5.896 GB, free: 39.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02192/23.3, allocations: 3.714 MB / 5.9 GB, free: 39.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/23.3, allocations: 0 / 5.9 GB, free: 39.92 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.37/35.67, allocations: 0.85 GB / 6.75 GB, free: 45.27 MB / 0.573 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