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.001238/0.001238, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.633 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008797/0.0008796, allocations: 100.6 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002193, allocations: 11.98 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2236, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.945/7.168, allocations: 3.445 GB / 3.845 GB, free: 160.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/7.169, allocations: 78.19 kB / 3.845 GB, free: 160.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.784/10.95, allocations: 0.9474 GB / 4.793 GB, free: 24.79 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.835e-06/10.95, allocations: 0 / 4.793 GB, free: 24.79 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008699/10.95, allocations: 159.9 kB / 4.793 GB, free: 24.78 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.05452/11.01, allocations: 10.36 MB / 4.803 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/11.01, allocations: 7.938 kB / 4.803 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007902/11.02, allocations: 1.047 MB / 4.804 GB, free: 20.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008329/11.02, allocations: 0.8844 MB / 4.805 GB, free: 20.14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02213/11.05, allocations: 5.723 MB / 4.81 GB, free: 19.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008569/11.05, allocations: 0.525 MB / 4.811 GB, free: 19.34 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005315/11.05, allocations: 0.7266 MB / 4.812 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04023/11.09, allocations: 14.24 MB / 4.825 GB, free: 18.63 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005471/11.09, allocations: 25.41 kB / 4.826 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005067/11.1, allocations: 285 kB / 4.826 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008319/11.1, allocations: 0.7119 MB / 4.826 GB, free: 18.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03572/11.13, allocations: 16.92 MB / 4.843 GB, free: 18.54 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1114/11.25, allocations: 48.8 MB / 4.891 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02595/11.27, allocations: 11.13 MB / 4.902 GB, free: 3.738 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005686/11.28, allocations: 4.223 MB / 4.906 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002899/11.28, allocations: 146.8 kB / 4.906 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009294/11.29, allocations: 0.8954 MB / 4.907 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=925): time 3.807e-05/11.29, allocations: 0 / 4.907 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1187): time 0.7235/12.01, allocations: 100.5 MB / 5.005 GB, free: 51.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/12.01, allocations: 174.4 kB / 5.005 GB, free: 51.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008124/12.02, allocations: 3.445 MB / 5.008 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.005234/12.02, allocations: 242.8 kB / 5.009 GB, free: 51.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002604/12.03, allocations: 2.307 MB / 5.011 GB, free: 50.51 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.008006/12.04, allocations: 4.129 MB / 5.015 GB, free: 48.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004871/12.04, allocations: 225.2 kB / 5.015 GB, free: 48.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001438/12.04, allocations: 0.7604 MB / 5.016 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02279/12.06, allocations: 10.49 MB / 5.026 GB, free: 47.77 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02606/12.09, allocations: 11.77 MB / 5.038 GB, free: 46.85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02853/12.12, allocations: 11.55 MB / 5.049 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.314e-05/12.12, allocations: 6.938 kB / 5.049 GB, free: 44.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.0871/12.21, allocations: 33.67 MB / 5.082 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001777/12.21, allocations: 9.768 MB / 5.091 GB, free: 8.969 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.98e-05/12.21, allocations: 27.19 kB / 5.091 GB, free: 8.945 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7137/12.92, allocations: 90.17 MB / 5.179 GB, free: 62.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005239/12.93, allocations: 1.061 MB / 5.18 GB, free: 62.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08599/13.01, allocations: 36.98 MB / 5.216 GB, free: 61.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01977/13.03, allocations: 1.84 MB / 5.218 GB, free: 61.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006444/13.04, allocations: 0.5746 MB / 5.219 GB, free: 60.88 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/13.04, allocations: 5.641 kB / 5.219 GB, free: 60.88 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.09338/13.13, allocations: 32.15 MB / 5.25 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/13.13, allocations: 24 kB / 5.25 GB, free: 44.65 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6345/13.77, allocations: 79.51 MB / 5.328 GB, free: 73.87 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006185/13.77, allocations: 1.114 MB / 5.329 GB, free: 73.87 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07157/13.85, allocations: 34.83 MB / 5.363 GB, free: 73.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01604/13.86, allocations: 1.806 MB / 5.365 GB, free: 73.06 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004182/13.87, allocations: 0.562 MB / 5.365 GB, free: 73.06 MB / 0.5573 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.008953/13.88, allocations: 2.595 MB / 5.368 GB, free: 72.88 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002841/13.88, allocations: 0.6667 MB / 5.368 GB, free: 72.88 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06996/13.95, allocations: 31.44 MB / 5.399 GB, free: 72.07 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001579/13.95, allocations: 126.3 kB / 5.399 GB, free: 72.07 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.891e-05/13.95, allocations: 3.688 kB / 5.399 GB, free: 72.07 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0551/14, allocations: 24.3 MB / 5.423 GB, free: 69.31 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1108/14.11, allocations: 45.12 MB / 5.467 GB, free: 54.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001856/14.11, allocations: 1.531 kB / 5.467 GB, free: 54.09 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02117/14.14, allocations: 3.397 MB / 5.47 GB, free: 51.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04175/14.18, allocations: 12.55 MB / 5.483 GB, free: 43.41 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00469/14.18, allocations: 0.6303 MB / 5.483 GB, free: 42.94 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03959/14.22, allocations: 44.84 MB / 5.527 GB, free: 0.8359 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/14.22, allocations: 3.953 kB / 5.527 GB, free: 0.832 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4549/14.68, allocations: 42.13 MB / 5.568 GB, free: 80.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003855/14.68, allocations: 0.821 MB / 5.569 GB, free: 79.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00497/14.69, allocations: 488.1 kB / 5.57 GB, free: 79.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01375/14.7, allocations: 1.485 MB / 5.571 GB, free: 79.92 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003173/14.7, allocations: 0.7963 MB / 5.572 GB, free: 79.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002096/14.7, allocations: 0.551 MB / 5.572 GB, free: 79.91 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004172/14.71, allocations: 2.64 MB / 5.575 GB, free: 79.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.51e-07/14.71, allocations: 0 / 5.575 GB, free: 79.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.03161/14.74, allocations: 7.01 MB / 5.582 GB, free: 79.77 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 () * Number of clocked 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.1061/14.85, allocations: 43.66 MB / 5.624 GB, free: 77.52 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.09032/14.94, allocations: 38.57 MB / 5.662 GB, free: 70.42 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.971e-05/14.94, allocations: 6.312 kB / 5.662 GB, free: 70.42 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.03486/14.97, allocations: 14.15 MB / 5.676 GB, free: 60.02 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0193/14.99, allocations: 3.211 MB / 5.679 GB, free: 57.86 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09978/15.09, allocations: 61.47 MB / 5.739 GB, free: 2.656 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.342/15.43, allocations: 5.288 MB / 5.744 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01911/15.45, allocations: 5.667 MB / 5.75 GB, free: 70.41 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008808/15.46, allocations: 3.613 MB / 5.753 GB, free: 70.41 MB / 0.5573 GB Notification: Performance of SimCode: time 7.935e-06/15.46, allocations: 2.781 kB / 5.753 GB, free: 70.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.917/17.38, allocations: 492.8 MB / 6.234 GB, free: 86.57 MB / 0.6044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/17.38, allocations: 248.8 kB / 6.235 GB, free: 86.32 MB / 0.6044 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.87/34.24, allocations: 0 / 6.235 GB, free: 86.32 MB / 0.6044 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