Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 225.6 MB / 234.8 MB, free: 3.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009096/0.0009097, allocations: 96.95 kB / 286.7 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.724e-05, allocations: 4 kB / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4167/0.5336, allocations: 88.65 MB / 0.591 GB, free: 13.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.5339, allocations: 77.83 kB / 0.5911 GB, free: 13.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01528/0.5492, allocations: 5.454 MB / 0.5964 GB, free: 9.438 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5492, allocations: 0 / 0.5964 GB, free: 9.438 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.5492, allocations: 0 / 0.5964 GB, free: 9.438 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005143/0.5498, allocations: 413.8 kB / 0.5968 GB, free: 8.996 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.5498, allocations: 8.031 kB / 0.5968 GB, free: 8.988 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.5499, allocations: 7.953 kB / 0.5968 GB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.5501, allocations: 177.2 kB / 0.597 GB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.5501, allocations: 0 / 0.597 GB, free: 8.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.5501, allocations: 7.984 kB / 0.597 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001294/0.5502, allocations: 53.09 kB / 0.5971 GB, free: 8.727 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.784e-05/0.5504, allocations: 64.23 kB / 0.5971 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.5504, allocations: 1.031 kB / 0.5971 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.5504, allocations: 4 kB / 0.5971 GB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.5504, allocations: 0 / 0.5971 GB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002112/0.5506, allocations: 170.8 kB / 0.5973 GB, free: 8.473 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.217e-05/0.5507, allocations: 56 kB / 0.5973 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.471e-05/0.5508, allocations: 42.34 kB / 0.5974 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.398e-05/0.5509, allocations: 19.48 kB / 0.5974 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.5509, allocations: 34.56 kB / 0.5974 GB, free: 8.332 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.5509, allocations: 0 / 0.5974 GB, free: 8.332 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.02125/0.5721, allocations: 1.851 MB / 0.5992 GB, free: 6.582 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.5722, allocations: 55.41 kB / 0.5993 GB, free: 6.516 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.5723, allocations: 116 kB / 0.5994 GB, free: 6.402 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.5724, allocations: 29.7 kB / 0.5994 GB, free: 6.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.5724, allocations: 84.31 kB / 0.5995 GB, free: 6.281 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.5725, allocations: 35.02 kB / 0.5996 GB, free: 6.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/0.5725, allocations: 0 / 0.5996 GB, free: 6.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.5726, allocations: 326.5 kB / 0.5999 GB, free: 5.926 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.5728, allocations: 77.98 kB / 0.5999 GB, free: 5.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.5729, allocations: 69.98 kB / 0.6 GB, free: 5.844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.5742, allocations: 247 kB / 0.6002 GB, free: 5.641 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5743, allocations: 0 / 0.6002 GB, free: 5.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00159/0.5759, allocations: 375.6 kB / 0.6006 GB, free: 5.336 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.5759, allocations: 8 kB / 0.6006 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5759, allocations: 0 / 0.6006 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.5759, allocations: 3.984 kB / 0.6006 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005365/0.5765, allocations: 63.94 kB / 0.6007 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5765, allocations: 4 kB / 0.6007 GB, free: 5.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.5769, allocations: 39.95 kB / 0.6007 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.455e-05/0.5769, allocations: 4 kB / 0.6007 GB, free: 5.215 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.5771, allocations: 104.9 kB / 0.6008 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001564/0.5786, allocations: 390.8 kB / 0.6012 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.5787, allocations: 15.75 kB / 0.6012 GB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.5804, allocations: 418.6 kB / 0.6016 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.5805, allocations: 4 kB / 0.6016 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5805, allocations: 0 / 0.6016 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.5805, allocations: 7.953 kB / 0.6016 GB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003219/0.5837, allocations: 0.8609 MB / 0.6025 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5837, allocations: 8.031 kB / 0.6025 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.5842, allocations: 63.88 kB / 0.6025 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.5842, allocations: 4 kB / 0.6025 GB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.5843, allocations: 15.94 kB / 0.6025 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5843, allocations: 0 / 0.6025 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5843, allocations: 0 / 0.6025 GB, free: 3.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.5859, allocations: 0.5152 MB / 0.603 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.5861, allocations: 111.9 kB / 0.6032 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.5861, allocations: 3.938 kB / 0.6032 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.5866, allocations: 43.95 kB / 0.6032 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.158e-05/0.5866, allocations: 7.984 kB / 0.6032 GB, free: 2.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.5866, allocations: 4 kB / 0.6032 GB, free: 2.859 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.846e-05/0.5867, allocations: 100.1 kB / 0.6033 GB, free: 2.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5867, allocations: 0 / 0.6033 GB, free: 2.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006267/0.5873, allocations: 175.6 kB / 0.6035 GB, free: 2.602 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002571/0.5899, allocations: 1.405 MB / 0.6048 GB, free: 1.219 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.5903, allocations: 179.2 kB / 0.605 GB, free: 1.105 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.5903, allocations: 4 kB / 0.605 GB, free: 1.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.5904, allocations: 94.53 kB / 0.6051 GB, free: 1.039 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.5907, allocations: 19.12 kB / 0.6051 GB, free: 1.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.5929, allocations: 461.8 kB / 0.6056 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.5932, allocations: 0.7004 MB / 0.6063 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002543/0.5935, allocations: 44.34 kB / 0.6063 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.5937, allocations: 37.72 kB / 0.6063 GB, free: 15.76 MB / 410.7 MB Notification: Performance of SimCode: time 1.983e-06/0.5937, allocations: 0 / 0.6063 GB, free: 15.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0307/0.6244, allocations: 6.219 MB / 0.6124 GB, free: 9.555 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002307/0.6247, allocations: 167.5 kB / 0.6126 GB, free: 9.363 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/2.381, allocations: 4 kB / 0.6126 GB, free: 9.359 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat does not exist to compare? outputFormat=mat