Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001854/0.001854, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002107/0.002107, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2358/0.2358, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 73.72 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1278, allocations: 62.46 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.003199/0.131, allocations: 1.458 MB / 481.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1333, allocations: 1.448 MB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.507e-05/0.1334, allocations: 4 kB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1336, allocations: 35.77 kB / 483.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.1338, allocations: 47.69 kB / 483.2 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.1343, allocations: 227.4 kB / 483.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.1344, allocations: 59.67 kB / 483.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.002e-05/0.1344, allocations: 4 kB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.454e-05/0.1345, allocations: 19.92 kB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.661e-05/0.1346, allocations: 27.86 kB / 483.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.03e-05/0.1346, allocations: 0 / 483.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006281/0.1352, allocations: 339.5 kB / 483.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.1353, allocations: 11.92 kB / 483.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.1353, allocations: 31.8 kB / 483.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004627/0.1358, allocations: 271.4 kB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1358, allocations: 0 / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1358, allocations: 4 kB / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1358, allocations: 0 / 484.2 MB, free: 1.117 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.0006151/0.1364, allocations: 411.2 kB / 484.6 MB, free: 0.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.1365, allocations: 12.03 kB / 484.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.899e-05/0.1366, allocations: 38.67 kB / 484.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.1366, allocations: 8.844 kB / 484.6 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.1368, allocations: 179.3 kB / 484.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.1368, allocations: 384 / 484.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.1368, allocations: 4.375 kB / 484.8 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.137, allocations: 73.59 kB / 484.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.137, allocations: 0 / 484.9 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.137, allocations: 8 kB / 484.9 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.137, allocations: 3.938 kB / 484.9 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.499e-05/0.1371, allocations: 59.89 kB / 485 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002196/0.1373, allocations: 181.6 kB / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.1375, allocations: 62.55 kB / 485.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.676e-05/0.1376, allocations: 44.84 kB / 485.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.48e-05/0.1377, allocations: 23.92 kB / 485.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.1377, allocations: 30.56 kB / 485.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.1377, allocations: 0 / 485.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0212/0.1589, allocations: 1.619 MB / 486.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.159, allocations: 51.41 kB / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.1592, allocations: 141.9 kB / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.1592, allocations: 33.7 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.1593, allocations: 80.14 kB / 487.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.299e-05/0.1593, allocations: 47.39 kB / 487.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1594, allocations: 45.59 kB / 487.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1596, allocations: 322.8 kB / 487.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006682/0.1603, allocations: 199.8 kB / 487.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000668/0.1609, allocations: 203.9 kB / 488 MB, free: 13.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1623, allocations: 388.5 kB / 488.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1623, allocations: 0 / 488.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001463/0.1638, allocations: 460.9 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.1638, allocations: 8 kB / 488.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.1638, allocations: 0 / 488.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1638, allocations: 3.938 kB / 488.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.1644, allocations: 67.94 kB / 488.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1644, allocations: 0 / 488.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000437/0.1648, allocations: 39.95 kB / 489 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.1649, allocations: 12 kB / 489 MB, free: 12.07 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.zetaLaminarKnown,data.zeta2_at_a,data.zeta1_at_a) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.165, allocations: 117.8 kB / 489.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.1651, allocations: 7.906 kB / 489.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.1666, allocations: 362.1 kB / 489.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1666, allocations: 4 kB / 489.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.1666, allocations: 0 / 489.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1666, allocations: 4 kB / 489.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.1696, allocations: 0.7778 MB / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1697, allocations: 0 / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.1702, allocations: 68.02 kB / 490.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1702, allocations: 4 kB / 490.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.1702, allocations: 4 kB / 490.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.787e-06/0.1702, allocations: 7.875 kB / 490.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1703, allocations: 4 kB / 490.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.1716, allocations: 422 kB / 490.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.1718, allocations: 109 kB / 490.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.1718, allocations: 11.94 kB / 490.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.1723, allocations: 35.91 kB / 490.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.1723, allocations: 15.92 kB / 490.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1723, allocations: 15.98 kB / 490.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.8e-05/0.1724, allocations: 98.36 kB / 491 MB, free: 9.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1724, allocations: 0 / 491 MB, free: 9.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006491/0.1731, allocations: 167.9 kB / 491.2 MB, free: 9.738 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002327/0.1754, allocations: 1.103 MB / 492.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.1769, allocations: 375.7 kB / 492.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.1769, allocations: 0 / 492.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006402/0.1775, allocations: 152 kB / 492.8 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.178, allocations: 18.48 kB / 492.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.1853, allocations: 2.749 MB / 495.6 MB, free: 5.223 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.1857, allocations: 0.6924 MB / 496.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002437/0.1859, allocations: 48.84 kB / 496.3 MB, free: 4.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.1861, allocations: 35.41 kB / 496.3 MB, free: 4.422 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1861, allocations: 0 / 496.3 MB, free: 4.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/0.222, allocations: 9.89 MB / 0.4944 GB, free: 10.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/8.39, allocations: 27 kB / 0.4944 GB, free: 10.65 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1)