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.001385/0.001391, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001702, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247 MB, free: 10.43 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.224/0.224, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002235/0.002235, allocations: 75.88 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3085, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002627/0.3112, allocations: 1.458 MB / 0.532 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.3132, allocations: 1.444 MB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.076e-05/0.3133, allocations: 1.5 kB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.3134, allocations: 28.69 kB / 0.5335 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.3136, allocations: 51.69 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.3141, allocations: 230.4 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.3143, allocations: 56.45 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.971e-05/0.3143, allocations: 3.5 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.035e-05/0.3144, allocations: 24.42 kB / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.484e-05/0.3144, allocations: 21.77 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.3145, allocations: 1.125 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006144/0.3151, allocations: 347.8 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.224e-05/0.3151, allocations: 5.875 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.832e-05/0.3151, allocations: 25.28 kB / 0.5342 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.3156, allocations: 280.7 kB / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3156, allocations: 0 / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3156, allocations: 0 / 0.5345 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.3156, allocations: 1.375 kB / 0.5345 GB, free: 10.43 MB / 398.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.0005785/0.3162, allocations: 426.4 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3163, allocations: 9.625 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.702e-05/0.3163, allocations: 36.12 kB / 0.5349 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.3163, allocations: 11.58 kB / 0.5349 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.3165, allocations: 176.4 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3165, allocations: 5.75 kB / 0.5351 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.843e-05/0.3165, allocations: 3.125 kB / 0.5351 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.3167, allocations: 67.48 kB / 0.5352 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3167, allocations: 0 / 0.5352 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.3167, allocations: 9.312 kB / 0.5352 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3167, allocations: 1.375 kB / 0.5352 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.917e-05/0.3168, allocations: 52.84 kB / 0.5352 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.317, allocations: 194 kB / 0.5354 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.217e-05/0.3171, allocations: 65.94 kB / 0.5355 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.238e-05/0.3172, allocations: 40.09 kB / 0.5355 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.665e-05/0.3173, allocations: 22.92 kB / 0.5355 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3173, allocations: 31.94 kB / 0.5356 GB, free: 9.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.203e-06/0.3173, allocations: 0 / 0.5356 GB, free: 9.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.02111/0.3384, allocations: 1.634 MB / 0.5372 GB, free: 8.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.3385, allocations: 52.44 kB / 0.5372 GB, free: 8.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.3387, allocations: 137.1 kB / 0.5374 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.3387, allocations: 30.77 kB / 0.5374 GB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.3388, allocations: 93.48 kB / 0.5375 GB, free: 8.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.3388, allocations: 40.23 kB / 0.5375 GB, free: 8.105 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3389, allocations: 42.62 kB / 0.5376 GB, free: 8.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3391, allocations: 321 kB / 0.5379 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.3398, allocations: 205.6 kB / 0.5381 GB, free: 7.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006636/0.3404, allocations: 206 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3419, allocations: 383.4 kB / 0.5386 GB, free: 7.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3419, allocations: 0 / 0.5386 GB, free: 7.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001475/0.3434, allocations: 450.9 kB / 0.539 GB, free: 7.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3434, allocations: 6.344 kB / 0.5391 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3434, allocations: 0 / 0.5391 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3434, allocations: 1.562 kB / 0.5391 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/0.344, allocations: 67.16 kB / 0.5391 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.344, allocations: 1.812 kB / 0.5391 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.3444, allocations: 43.33 kB / 0.5392 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.3445, allocations: 9.547 kB / 0.5392 GB, free: 7.07 MB / 398.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.0001304/0.3446, allocations: 121.2 kB / 0.5393 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.603e-05/0.3447, allocations: 7.578 kB / 0.5393 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.3462, allocations: 373.5 kB / 0.5396 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3462, allocations: 2.312 kB / 0.5397 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3462, allocations: 4 kB / 0.5397 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3462, allocations: 0 / 0.5397 GB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.3493, allocations: 0.7828 MB / 0.5404 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3493, allocations: 5.078 kB / 0.5404 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.3498, allocations: 64 kB / 0.5405 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.3499, allocations: 2.281 kB / 0.5405 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.3499, allocations: 7.375 kB / 0.5405 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.3499, allocations: 10.11 kB / 0.5405 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3499, allocations: 5 kB / 0.5405 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.3513, allocations: 413.4 kB / 0.5409 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.3514, allocations: 112.4 kB / 0.541 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.3515, allocations: 2.281 kB / 0.541 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.352, allocations: 49.73 kB / 0.5411 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.352, allocations: 12.34 kB / 0.5411 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.352, allocations: 9.922 kB / 0.5411 GB, free: 5.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.373e-05/0.3521, allocations: 98.73 kB / 0.5412 GB, free: 5.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3521, allocations: 0 / 0.5412 GB, free: 5.586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005933/0.3527, allocations: 172 kB / 0.5413 GB, free: 5.551 MB / 398.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.002339/0.3551, allocations: 1.1 MB / 0.5424 GB, free: 4.672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3565, allocations: 379.9 kB / 0.5428 GB, free: 4.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3565, allocations: 0 / 0.5428 GB, free: 4.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006262/0.3571, allocations: 148.9 kB / 0.5429 GB, free: 4.426 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.3575, allocations: 22.92 kB / 0.5429 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007416/0.365, allocations: 2.757 MB / 0.5456 GB, free: 1.824 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3653, allocations: 0.7001 MB / 0.5463 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.3655, allocations: 40.73 kB / 0.5464 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.3657, allocations: 35.41 kB / 0.5464 GB, free: 1.023 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3657, allocations: 0 / 0.5464 GB, free: 1.023 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.4, allocations: 9.932 MB / 0.5561 GB, free: 7.246 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.579, allocations: 21.67 kB / 0.5561 GB, free: 7.234 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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)