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.001533/0.001532, allocations: 99.25 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 205.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2607/0.2607, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 4 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1265, allocations: 63.47 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001555/0.1281, allocations: 1.149 MB / 482.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.1299, allocations: 1.279 MB / 484 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.794e-05/0.1299, allocations: 4 kB / 484 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.1301, allocations: 27.89 kB / 484 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.1302, allocations: 39.86 kB / 484 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.1306, allocations: 167.5 kB / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.047e-05/0.1307, allocations: 39.88 kB / 484.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.1308, allocations: 4 kB / 484.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.944e-05/0.1308, allocations: 19.94 kB / 484.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.327e-05/0.1309, allocations: 27.84 kB / 484.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.1309, allocations: 4 kB / 484.3 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004996/0.1314, allocations: 315.6 kB / 484.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.1314, allocations: 11.98 kB / 484.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.141e-05/0.1315, allocations: 37.64 kB / 484.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.1318, allocations: 183.9 kB / 484.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1318, allocations: 4 kB / 484.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1318, allocations: 0 / 484.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1318, allocations: 0 / 484.8 MB, free: 1.941 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.0004574/0.1323, allocations: 407.1 kB / 485.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.1323, allocations: 8.031 kB / 485.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.207e-05/0.1324, allocations: 30.56 kB / 485.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.1324, allocations: 11.91 kB / 485.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.1325, allocations: 175 kB / 485.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.1325, allocations: 7.875 kB / 485.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.1326, allocations: 8 kB / 485.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.1327, allocations: 61.67 kB / 485.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1327, allocations: 4 kB / 485.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.1327, allocations: 0 / 485.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1327, allocations: 0 / 485.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.543e-05/0.1328, allocations: 59.95 kB / 485.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.133, allocations: 189.5 kB / 485.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.743e-05/0.1331, allocations: 58.5 kB / 485.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.645e-05/0.1332, allocations: 20.22 kB / 485.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.1332, allocations: 34.56 kB / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.22e-07/0.1332, allocations: 0 / 485.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.02082/0.1541, allocations: 1.689 MB / 487.6 MB, free: 15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.1541, allocations: 51.41 kB / 487.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.1543, allocations: 138 kB / 487.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.1543, allocations: 25.7 kB / 487.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.1544, allocations: 88.05 kB / 487.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.231e-05/0.1544, allocations: 39.44 kB / 487.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.1544, allocations: 15.94 kB / 487.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1546, allocations: 318.8 kB / 488.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006948/0.1553, allocations: 208 kB / 488.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006866/0.156, allocations: 216.2 kB / 488.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006906/0.1567, allocations: 192.6 kB / 488.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1567, allocations: 3.938 kB / 488.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001499/0.1582, allocations: 487.2 kB / 489.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1582, allocations: 4 kB / 489.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1582, allocations: 0 / 489.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1582, allocations: 7.984 kB / 489.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006135/0.1589, allocations: 79.89 kB / 489.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1589, allocations: 0 / 489.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/0.1594, allocations: 39.97 kB / 489.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-05/0.1594, allocations: 19.91 kB / 489.5 MB, free: 13.06 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.0001383/0.1596, allocations: 122.3 kB / 489.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.1596, allocations: 11.91 kB / 489.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.1612, allocations: 390.1 kB / 490 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1612, allocations: 0 / 490 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1612, allocations: 7.938 kB / 490 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1612, allocations: 0 / 490 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003269/0.1645, allocations: 0.8167 MB / 490.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.1645, allocations: 4 kB / 490.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005603/0.1651, allocations: 83.92 kB / 490.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.1651, allocations: 0 / 490.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.1652, allocations: 15.97 kB / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.1652, allocations: 7.953 kB / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1652, allocations: 0 / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.1667, allocations: 486.8 kB / 491.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.1668, allocations: 113 kB / 491.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.1668, allocations: 4.094 kB / 491.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00051/0.1674, allocations: 43.91 kB / 491.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1674, allocations: 7.984 kB / 491.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.1674, allocations: 19.91 kB / 491.6 MB, free: 10.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.1675, allocations: 102.1 kB / 491.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1675, allocations: 0 / 491.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007363/0.1683, allocations: 167.9 kB / 491.8 MB, free: 10.55 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.002695/0.171, allocations: 1.366 MB / 493.2 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.1726, allocations: 403.6 kB / 493.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.1726, allocations: 0 / 493.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006859/0.1733, allocations: 168 kB / 493.7 MB, free: 8.578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.1736, allocations: 15.33 kB / 493.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.1772, allocations: 0.8349 MB / 494.6 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.1775, allocations: 0.6965 MB / 495.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.1777, allocations: 48.77 kB / 495.3 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.1779, allocations: 51.34 kB / 495.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of SimCode: time 1.001e-06/0.1779, allocations: 0 / 495.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.1998, allocations: 9.485 MB / 0.493 GB, free: 13.52 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.2, allocations: 211.1 kB / 0.4932 GB, free: 13.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.998/2.198, allocations: 2.672 kB / 0.4932 GB, free: 13.28 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