Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 96.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008951/0.0008952, allocations: 183.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2015/0.2015, allocations: 44.23 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003315/0.0003316, allocations: 12 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1329, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice): time 0.01643/0.1494, allocations: 14.63 MB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005934/0.1553, allocations: 3.828 MB / 490 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005888/0.1559, allocations: 15.88 kB / 490 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007996/0.1568, allocations: 226.8 kB / 490.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001667/0.1584, allocations: 0.627 MB / 490.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.1608, allocations: 0.7637 MB / 491.6 MB, free: 9.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.1622, allocations: 0.864 MB / 492.5 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005817/0.1628, allocations: 357.1 kB / 492.8 MB, free: 8.285 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008508/0.1636, allocations: 470.3 kB / 493.3 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.1641, allocations: 326.7 kB / 493.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.776e-05/0.1642, allocations: 27.98 kB / 493.7 MB, free: 7.477 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.1654, allocations: 0.4994 MB / 494.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.1656, allocations: 131.5 kB / 494.3 MB, free: 6.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.1657, allocations: 157.3 kB / 494.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009569/0.1667, allocations: 0.7602 MB / 495.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1667, allocations: 0 / 495.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1667, allocations: 4 kB / 495.2 MB, free: 5.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1667, allocations: 4 kB / 495.2 MB, free: 5.918 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001549/0.1683, allocations: 0.8898 MB / 496.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1684, allocations: 8.562 kB / 496.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.1685, allocations: 90.53 kB / 496.2 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003066/0.1688, allocations: 83.23 kB / 496.3 MB, free: 4.785 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006957/0.1695, allocations: 464.6 kB / 496.7 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/0.1696, allocations: 37 kB / 496.8 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.534e-05/0.1696, allocations: 40 kB / 496.8 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009541/0.1706, allocations: 0.6495 MB / 497.4 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1706, allocations: 0 / 497.4 MB, free: 3.512 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.862e-05/0.1707, allocations: 27.95 kB / 497.5 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.1707, allocations: 12 kB / 497.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007765/0.1715, allocations: 0.5346 MB / 498 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.1752, allocations: 3.163 MB / 0.4894 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.1756, allocations: 234.6 kB / 0.4897 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003446/0.1759, allocations: 340.4 kB / 0.49 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004758/0.1764, allocations: 294.9 kB / 0.4903 GB, free: 14.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.873e-06/0.1764, allocations: 0 / 0.4903 GB, free: 14.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001046/0.1775, allocations: 0.6229 MB / 0.4909 GB, free: 13.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001977/0.1777, allocations: 290.7 kB / 0.4912 GB, free: 13.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006959/0.1784, allocations: 0.5536 MB / 0.4917 GB, free: 13.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.1785, allocations: 33.7 kB / 0.4917 GB, free: 13.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.1787, allocations: 339.1 kB / 0.492 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.614e-05/0.1788, allocations: 90.73 kB / 0.4921 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.1788, allocations: 12 kB / 0.4921 GB, free: 12.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.179, allocations: 370.7 kB / 0.4925 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.1793, allocations: 153 kB / 0.4926 GB, free: 12.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.1797, allocations: 388.9 kB / 0.493 GB, free: 11.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.1801, allocations: 237.6 kB / 0.4932 GB, free: 11.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1801, allocations: 0 / 0.4932 GB, free: 11.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009893/0.1811, allocations: 0.6273 MB / 0.4939 GB, free: 10.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001033/0.1821, allocations: 2.134 MB / 0.4959 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1821, allocations: 4 kB / 0.4959 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.1822, allocations: 8 kB / 0.496 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.1836, allocations: 199.7 kB / 0.4961 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005386/0.1841, allocations: 0.6288 MB / 0.4968 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.1847, allocations: 79.2 kB / 0.4968 GB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/0.1848, allocations: 35.98 kB / 0.4969 GB, free: 7.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1848, allocations: 8.094 kB / 0.4969 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009041/0.1857, allocations: 0.5483 MB / 0.4974 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.1858, allocations: 15.94 kB / 0.4974 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.1858, allocations: 8 kB / 0.4974 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000369/0.1862, allocations: 111.8 kB / 0.4975 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1862, allocations: 12.06 kB / 0.4975 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004422/0.1866, allocations: 63.52 kB / 0.4976 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.825e-05/0.1867, allocations: 27.98 kB / 0.4976 GB, free: 6.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004262/0.1871, allocations: 310.6 kB / 0.4979 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.1873, allocations: 63.25 kB / 0.498 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.1887, allocations: 0.7799 MB / 0.4988 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.1887, allocations: 4 kB / 0.4988 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.1887, allocations: 3.938 kB / 0.4988 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1887, allocations: 3.984 kB / 0.4988 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007101/0.1894, allocations: 0.5403 MB / 0.4993 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1895, allocations: 4 kB / 0.4993 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/0.1901, allocations: 115.8 kB / 0.4994 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.1901, allocations: 4 kB / 0.4994 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.1901, allocations: 15.98 kB / 0.4994 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000369/0.1905, allocations: 0.5975 MB / 0.5 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1905, allocations: 0 / 0.5 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007968/0.1913, allocations: 0.5557 MB / 0.5006 GB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003306/0.1917, allocations: 224.1 kB / 0.5008 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.436e-05/0.1918, allocations: 8 kB / 0.5008 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.1921, allocations: 28.08 kB / 0.5008 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.1922, allocations: 35.94 kB / 0.5008 GB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.1922, allocations: 19.98 kB / 0.5009 GB, free: 3.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005152/0.1927, allocations: 407.1 kB / 0.5012 GB, free: 2.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.853e-06/0.1927, allocations: 0 / 0.5012 GB, free: 2.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001432/0.1942, allocations: 439.3 kB / 0.5017 GB, free: 2.395 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001942/0.1961, allocations: 1.313 MB / 0.5029 GB, free: 1.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.1987, allocations: 0.9652 MB / 0.5039 GB, free: 68 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.1987, allocations: 3.938 kB / 0.5039 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2623/0.461, allocations: 375.1 kB / 0.5042 GB, free: 49.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.4625, allocations: 269.5 kB / 0.5045 GB, free: 49.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006921/0.4694, allocations: 6.93 MB / 0.5113 GB, free: 45.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.4699, allocations: 0.9045 MB / 0.5122 GB, free: 44.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009124/0.4708, allocations: 218.6 kB / 0.5124 GB, free: 44.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.4712, allocations: 237.4 kB / 0.5126 GB, free: 44.37 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4712, allocations: 0 / 0.5126 GB, free: 44.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05511/0.5263, allocations: 19.96 MB / 0.5321 GB, free: 34.96 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.5266, allocations: 280.5 kB / 0.5324 GB, free: 34.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/2.868, allocations: 3.375 kB / 0.5324 GB, free: 34.6 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSimpleGenericOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.pipe 2>&1)