Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.711/1.711, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 86.81 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.405e-05/4.425e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1437, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.254/9.398, allocations: 3.445 GB / 3.838 GB, free: 90.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/9.398, allocations: 76.22 kB / 3.838 GB, free: 90.26 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867/13.27, allocations: 0.9464 GB / 4.784 GB, free: 23.59 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.943e-06/13.27, allocations: 0 / 4.784 GB, free: 23.59 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004111/13.27, allocations: 161.3 kB / 4.784 GB, free: 23.57 MB / 0.4948 GB 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.04428/13.31, allocations: 9.682 MB / 4.794 GB, free: 19.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/13.31, allocations: 14.56 kB / 4.794 GB, free: 19.54 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00516/13.32, allocations: 1.025 MB / 4.795 GB, free: 19.46 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006799/13.32, allocations: 0.8745 MB / 4.796 GB, free: 19.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/13.34, allocations: 5.7 MB / 4.801 GB, free: 18.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006825/13.34, allocations: 0.5298 MB / 4.802 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005099/13.35, allocations: 0.7269 MB / 4.803 GB, free: 18.01 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0317/13.38, allocations: 14.08 MB / 4.816 GB, free: 17.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/13.38, allocations: 17.56 kB / 4.816 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/13.38, allocations: 288 kB / 4.817 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005697/13.38, allocations: 0.71 MB / 4.817 GB, free: 17.27 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/13.41, allocations: 16.63 MB / 4.834 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5289/13.94, allocations: 48.87 MB / 4.881 GB, free: 29.76 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02167/13.96, allocations: 10.98 MB / 4.892 GB, free: 29.67 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01556/13.98, allocations: 7.644 MB / 4.899 GB, free: 29.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003766/13.98, allocations: 4.224 MB / 4.904 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/13.98, allocations: 156.7 kB / 4.904 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007687/13.99, allocations: 0.8954 MB / 4.905 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=925): time 5.104e-05/13.99, allocations: 0 / 4.905 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1187): time 0.291/14.28, allocations: 86.01 MB / 4.989 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/14.28, allocations: 171.3 kB / 4.989 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00551/14.29, allocations: 3.404 MB / 4.992 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.004515/14.29, allocations: 243.5 kB / 4.992 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001797/14.29, allocations: 2.306 MB / 4.995 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007219/14.3, allocations: 4.129 MB / 4.999 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002835/14.3, allocations: 225.1 kB / 4.999 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009752/14.31, allocations: 0.7644 MB / 5 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01716/14.32, allocations: 9.226 MB / 5.009 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01908/14.34, allocations: 10.52 MB / 5.019 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03895/14.38, allocations: 11.74 MB / 5.03 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.145e-05/14.38, allocations: 8 kB / 5.03 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.097/14.48, allocations: 31.06 MB / 5.061 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.4722/14.95, allocations: 9.768 MB / 5.07 GB, free: 63.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/14.95, allocations: 21.91 kB / 5.07 GB, free: 63.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2894/15.24, allocations: 83.54 MB / 5.152 GB, free: 63.22 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006079/15.25, allocations: 1.065 MB / 5.153 GB, free: 63.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07269/15.32, allocations: 33.48 MB / 5.186 GB, free: 52.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01856/15.34, allocations: 1.836 MB / 5.187 GB, free: 51.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005269/15.34, allocations: 0.5764 MB / 5.188 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/15.34, allocations: 4.938 kB / 5.188 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06809/15.41, allocations: 28.56 MB / 5.216 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/15.41, allocations: 22.75 kB / 5.216 GB, free: 36.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.68/16.09, allocations: 77.52 MB / 5.292 GB, free: 54.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005852/16.1, allocations: 1.108 MB / 5.293 GB, free: 54.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05565/16.15, allocations: 31.33 MB / 5.323 GB, free: 53.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01618/16.17, allocations: 1.805 MB / 5.325 GB, free: 53.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004217/16.17, allocations: 0.5578 MB / 5.326 GB, free: 53.71 MB / 0.5417 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.006883/16.18, allocations: 0.6142 MB / 5.326 GB, free: 53.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004744/16.18, allocations: 0.665 MB / 5.327 GB, free: 53.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07306/16.26, allocations: 28.29 MB / 5.354 GB, free: 52.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002083/16.26, allocations: 123.9 kB / 5.354 GB, free: 52.82 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.567e-05/16.26, allocations: 3.906 kB / 5.355 GB, free: 52.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04759/16.31, allocations: 21.06 MB / 5.375 GB, free: 52.09 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1034/16.41, allocations: 43.05 MB / 5.417 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001338/16.41, allocations: 0 / 5.417 GB, free: 31.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02037/16.43, allocations: 3.367 MB / 5.42 GB, free: 28.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03139/16.46, allocations: 10.16 MB / 5.43 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004598/16.47, allocations: 0.6278 MB / 5.431 GB, free: 21.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.483/16.95, allocations: 41.83 MB / 5.472 GB, free: 76.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/16.95, allocations: 4.438 kB / 5.472 GB, free: 76.67 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0947/17.04, allocations: 37.55 MB / 5.508 GB, free: 75.7 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003925/17.05, allocations: 0.8191 MB / 5.509 GB, free: 75.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00692/17.05, allocations: 493.9 kB / 5.51 GB, free: 75.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02/17.07, allocations: 1.479 MB / 5.511 GB, free: 75.32 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005953/17.08, allocations: 0.7976 MB / 5.512 GB, free: 75.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004666/17.09, allocations: 0.5513 MB / 5.512 GB, free: 75.3 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.005529/17.09, allocations: 2.596 MB / 5.515 GB, free: 75.14 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.453e-06/17.09, allocations: 1.844 kB / 5.515 GB, free: 75.14 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.03756/17.13, allocations: 7.014 MB / 5.522 GB, free: 75.14 MB / 0.5573 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.09632/17.22, allocations: 42.05 MB / 5.563 GB, free: 72.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0788/17.3, allocations: 35 MB / 5.597 GB, free: 63.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-05/17.3, allocations: 9.219 kB / 5.597 GB, free: 63.66 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.03073/17.33, allocations: 12.96 MB / 5.61 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02065/17.36, allocations: 3.214 MB / 5.613 GB, free: 53.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07903/17.43, allocations: 31.95 MB / 5.644 GB, free: 28.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006384/17.44, allocations: 5.285 MB / 5.649 GB, free: 24.65 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.02159/17.46, allocations: 6.328 MB / 5.655 GB, free: 20.54 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008621/17.47, allocations: 3.569 MB / 5.659 GB, free: 17.29 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/17.47, allocations: 4 kB / 5.659 GB, free: 17.29 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.308/19.78, allocations: 0.4928 GB / 6.152 GB, free: 106.3 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/19.78, allocations: 210.5 kB / 6.152 GB, free: 106.1 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/37.55, allocations: 0 / 6.152 GB, free: 106.1 MB / 0.6043 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes.fmu > Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat