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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009374/0.0009374, allocations: 97.55 kB / 17.01 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 193.8 kB / 17.91 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2094/0.2094, allocations: 45.91 MB / 344.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002875, allocations: 8 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1376, allocations: 63.47 MB / 481.6 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001663/0.1393, allocations: 1.169 MB / 482.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1412, allocations: 1.321 MB / 484.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.576e-05/0.1413, allocations: 0 / 484.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.1414, allocations: 23.89 kB / 484.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.1417, allocations: 31.78 kB / 484.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000373/0.142, allocations: 171.4 kB / 484.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.914e-05/0.1421, allocations: 51.72 kB / 484.4 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.485e-05/0.1422, allocations: 4 kB / 484.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.979e-05/0.1423, allocations: 19.94 kB / 484.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.694e-05/0.1423, allocations: 31.83 kB / 484.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.1423, allocations: 0 / 484.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005495/0.1429, allocations: 311.6 kB / 484.8 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.238e-05/0.1429, allocations: 15.92 kB / 484.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.418e-05/0.143, allocations: 37.64 kB / 484.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.1433, allocations: 183.9 kB / 485 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1433, allocations: 0 / 485 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1433, allocations: 0 / 485 MB, free: 1.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.1433, allocations: 4 kB / 485 MB, free: 1.879 MB / 350.1 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.0005959/0.1439, allocations: 407 kB / 485.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1439, allocations: 11.97 kB / 485.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.144, allocations: 30.56 kB / 485.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.144, allocations: 11.91 kB / 485.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.1442, allocations: 178.9 kB / 485.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1442, allocations: 4 kB / 485.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.217e-05/0.1443, allocations: 4 kB / 485.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.1444, allocations: 69.59 kB / 485.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1444, allocations: 4 kB / 485.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1444, allocations: 0 / 485.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1444, allocations: 0 / 485.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.26e-05/0.1445, allocations: 55.97 kB / 485.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002609/0.1448, allocations: 193.5 kB / 485.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.331e-05/0.1449, allocations: 54.56 kB / 486 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.339e-05/0.145, allocations: 48.78 kB / 486 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.553e-05/0.145, allocations: 19.98 kB / 486.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/0.1451, allocations: 30.56 kB / 486.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.001e-06/0.1451, allocations: 0 / 486.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.01781/0.1629, allocations: 1.689 MB / 487.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.163, allocations: 55.41 kB / 487.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.1632, allocations: 136.8 kB / 488 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.1632, allocations: 33.7 kB / 488 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.335e-05/0.1633, allocations: 92.03 kB / 488.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.1633, allocations: 35.47 kB / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.1633, allocations: 0 / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1635, allocations: 322.8 kB / 488.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006759/0.1641, allocations: 212 kB / 488.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000648/0.1648, allocations: 212.2 kB / 488.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007507/0.1656, allocations: 188.7 kB / 489 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1656, allocations: 0 / 489 MB, free: 13.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001469/0.167, allocations: 491.2 kB / 489.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.1671, allocations: 4 kB / 489.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1671, allocations: 4 kB / 489.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1671, allocations: 0 / 489.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005644/0.1677, allocations: 75.89 kB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.1677, allocations: 4 kB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/0.1681, allocations: 43.91 kB / 489.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/0.1682, allocations: 15.97 kB / 489.7 MB, free: 12.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001262/0.1683, allocations: 126.5 kB / 489.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.809e-05/0.1684, allocations: 7.906 kB / 489.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.1699, allocations: 394 kB / 490.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.1699, allocations: 3.984 kB / 490.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.1699, allocations: 3.938 kB / 490.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1699, allocations: 0 / 490.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.1729, allocations: 0.8206 MB / 491 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.1729, allocations: 4 kB / 491 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004942/0.1734, allocations: 83.92 kB / 491.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.1734, allocations: 4 kB / 491.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.1735, allocations: 11.97 kB / 491.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/0.1735, allocations: 7.953 kB / 491.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1735, allocations: 4 kB / 491.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.1749, allocations: 457.7 kB / 491.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.175, allocations: 113 kB / 491.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.175, allocations: 0 / 491.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.1755, allocations: 43.95 kB / 491.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.1756, allocations: 11.95 kB / 491.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.1756, allocations: 15.97 kB / 491.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.754e-05/0.1757, allocations: 95.27 kB / 491.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1757, allocations: 0 / 491.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006932/0.1764, allocations: 175.9 kB / 492 MB, free: 10.48 MB / 366.1 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 () * Number of clocked 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.002496/0.1789, allocations: 1.125 MB / 493.1 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.1804, allocations: 395.7 kB / 493.5 MB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1804, allocations: 0 / 493.5 MB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007275/0.1811, allocations: 164 kB / 493.7 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.1815, allocations: 30.47 kB / 493.7 MB, free: 8.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005351/0.1868, allocations: 1.569 MB / 495.3 MB, free: 7.121 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1872, allocations: 0.7004 MB / 496 MB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002535/0.1874, allocations: 48.67 kB / 496 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.1877, allocations: 55.33 kB / 496.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1877, allocations: 0 / 496.1 MB, free: 6.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.2108, allocations: 9.537 MB / 0.4938 GB, free: 12.92 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002396/0.2111, allocations: 214.1 kB / 0.494 GB, free: 12.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.218, allocations: 0 / 0.494 GB, free: 12.68 MB / 382.1 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