Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.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.IncompressibleFluidNetwork,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_IncompressibleFluidNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.IncompressibleFluidNetwork,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_IncompressibleFluidNetwork",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001924/0.001924, allocations: 196.4 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.587/1.587, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009214/0.0009215, allocations: 89.36 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.555e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1281, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8641/0.9922, allocations: 277.1 MB / 0.6633 GB, free: 85.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.9926, allocations: 74.97 kB / 0.6634 GB, free: 85.23 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.551/8.544, allocations: 1.533 GB / 2.196 GB, free: 31.31 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.084e-06/8.544, allocations: 0 / 2.196 GB, free: 31.31 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001586/8.545, allocations: 195.9 kB / 2.196 GB, free: 31.25 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1492 * Number of variables: 1492 Notification: Performance of Generate backend data structure: time 0.04502/8.59, allocations: 8.051 MB / 2.204 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.272e-05/8.591, allocations: 7.781 kB / 2.204 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00738/8.598, allocations: 0.7733 MB / 2.205 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01523/8.613, allocations: 1.279 MB / 2.206 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/8.642, allocations: 6.304 MB / 2.212 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009777/8.643, allocations: 428.7 kB / 2.213 GB, free: 25.48 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004717/8.648, allocations: 0.5344 MB / 2.213 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03835/8.686, allocations: 9.324 MB / 2.222 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007035/8.687, allocations: 19.81 kB / 2.222 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005808/8.693, allocations: 247.8 kB / 2.222 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001263/8.694, allocations: 0.5897 MB / 2.223 GB, free: 18.54 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02596/8.72, allocations: 7.905 MB / 2.231 GB, free: 11.51 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7644/9.484, allocations: 34.97 MB / 2.265 GB, free: 24.81 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/9.498, allocations: 6.013 MB / 2.271 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0072/9.506, allocations: 3.617 MB / 2.274 GB, free: 24.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006883/9.513, allocations: 5.166 MB / 2.279 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/9.513, allocations: 98.3 kB / 2.279 GB, free: 19.13 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0106/9.523, allocations: 1.689 MB / 2.281 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=500): time 6.192e-05/9.523, allocations: 0 / 2.281 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=632): time 0.1788/9.702, allocations: 43.07 MB / 2.323 GB, free: 17.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/9.703, allocations: 171 kB / 2.323 GB, free: 17.01 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01414/9.717, allocations: 4.204 MB / 2.327 GB, free: 16.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.00359/9.72, allocations: 146.1 kB / 2.328 GB, free: 16.63 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004598/9.725, allocations: 2.968 MB / 2.33 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00471/9.73, allocations: 2.166 MB / 2.333 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002338/9.732, allocations: 141.9 kB / 2.333 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0009063/9.733, allocations: 0.5915 MB / 2.333 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008748/9.742, allocations: 3.8 MB / 2.337 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01155/9.753, allocations: 5.436 MB / 2.342 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/9.764, allocations: 4.756 MB / 2.347 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/9.764, allocations: 11.62 kB / 2.347 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=911) (initialization): time 0.03526/9.799, allocations: 12.21 MB / 2.359 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.008799/9.808, allocations: 20.35 MB / 2.379 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001693/9.808, allocations: 42.44 kB / 2.379 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03138/9.84, allocations: 5.169 MB / 2.384 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007753/9.847, allocations: 1.35 MB / 2.385 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01925/9.867, allocations: 17.37 MB / 2.402 GB, free: 8.375 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/9.88, allocations: 0.5137 MB / 2.403 GB, free: 8.242 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004093/9.884, allocations: 416.5 kB / 2.403 GB, free: 8.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/9.884, allocations: 6.75 kB / 2.403 GB, free: 8.18 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04106/9.925, allocations: 11.71 MB / 2.414 GB, free: 4.406 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002593/9.925, allocations: 42.36 kB / 2.414 GB, free: 4.406 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01145/9.937, allocations: 3.26 MB / 2.418 GB, free: 3.602 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008027/9.945, allocations: 1.377 MB / 2.419 GB, free: 3.551 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02638/9.971, allocations: 21.79 MB / 2.44 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01345/9.985, allocations: 0.4897 MB / 2.441 GB, free: 3.211 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003563/9.988, allocations: 402 kB / 2.441 GB, free: 3.148 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (751): * Single equations (assignments): 728 * 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: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 23 {1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,9 42} Notification: Performance of prepare postOptimizeDAE: time 0.007711/9.996, allocations: 0.5052 MB / 2.442 GB, free: 2.836 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005438/10, allocations: 0.6544 MB / 2.442 GB, free: 2.492 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6889/10.69, allocations: 18.25 MB / 2.46 GB, free: 84.86 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.806e-05/10.69, allocations: 66.66 kB / 2.46 GB, free: 84.86 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/10.69, allocations: 3.234 kB / 2.46 GB, free: 84.86 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0191/10.71, allocations: 9.445 MB / 2.469 GB, free: 84.24 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06636/10.78, allocations: 24.44 MB / 2.493 GB, free: 81.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001498/10.78, allocations: 14.75 kB / 2.493 GB, free: 81.85 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006285/10.78, allocations: 0.8676 MB / 2.494 GB, free: 81.85 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03002/10.81, allocations: 5.433 MB / 2.499 GB, free: 81.66 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003137/10.82, allocations: 222.5 kB / 2.5 GB, free: 81.66 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/10.83, allocations: 17.38 MB / 2.517 GB, free: 69.76 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.921e-05/10.83, allocations: 27.75 kB / 2.517 GB, free: 69.76 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04194/10.88, allocations: 18.91 MB / 2.535 GB, free: 65.36 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009045/10.89, allocations: 1.651 MB / 2.537 GB, free: 65.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004748/10.89, allocations: 170.2 kB / 2.537 GB, free: 65.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009668/10.9, allocations: 337.2 kB / 2.537 GB, free: 65.18 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002848/10.9, allocations: 458.5 kB / 2.538 GB, free: 65.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002613/10.91, allocations: 322.7 kB / 2.538 GB, free: 65.16 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00982/10.91, allocations: 3.147 MB / 2.541 GB, free: 64.96 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.42e-07/10.92, allocations: 2.969 kB / 2.541 GB, free: 64.96 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.03505/10.95, allocations: 5.118 MB / 2.546 GB, free: 64.96 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 22 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].T,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].T,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].T,pipe6.mediums[2].T,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (500): * Single equations (assignments): 477 * 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: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 23 {1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,1 5,12 63} Notification: Performance of Backend phase and start with SimCode phase: time 0.0535/11, allocations: 25.15 MB / 2.571 GB, free: 55.89 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.043/11.05, allocations: 15.44 MB / 2.586 GB, free: 50.97 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.088e-05/11.05, allocations: 8.938 kB / 2.586 GB, free: 50.97 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01487/11.06, allocations: 4.789 MB / 2.59 GB, free: 49.53 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01934/11.08, allocations: 2.639 MB / 2.593 GB, free: 49 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05984/11.14, allocations: 17.15 MB / 2.61 GB, free: 43.39 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008162/11.15, allocations: 4.51 MB / 2.614 GB, free: 42.15 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.02819/11.18, allocations: 9.747 MB / 2.624 GB, free: 39.56 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007919/11.19, allocations: 3.091 MB / 2.627 GB, free: 36.74 MB / 0.5886 GB Notification: Performance of SimCode: time 3.957e-06/11.19, allocations: 4 kB / 2.627 GB, free: 36.74 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9846/12.17, allocations: 246 MB / 2.867 GB, free: 13 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/12.17, allocations: 220.2 kB / 2.867 GB, free: 12.78 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/24.15, allocations: 4 kB / 2.867 GB, free: 12.78 MB / 0.6042 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_IncompressibleFluidNetwork_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_IncompressibleFluidNetwork.fmu > Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.IncompressibleFluidNetwork_res.mat does not exist to compare? outputFormat=mat