Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001232/0.001233, allocations: 95 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 205.8 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2162/0.2162, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002847, allocations: 11.98 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1301, allocations: 63.56 MB / 483.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01247/0.1426, allocations: 12.46 MB / 495.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007763/0.1504, allocations: 5.641 MB / 0.4895 GB, free: 1.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006388/0.1511, allocations: 19.81 kB / 0.4896 GB, free: 1.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006551/0.1518, allocations: 179 kB / 0.4897 GB, free: 1.699 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00158/0.1534, allocations: 0.6495 MB / 0.4904 GB, free: 1.047 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003149/0.1565, allocations: 1.296 MB / 0.4916 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001924/0.1585, allocations: 1.731 MB / 0.4933 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.1589, allocations: 269.5 kB / 0.4936 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007995/0.1597, allocations: 434.3 kB / 0.494 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006796/0.1604, allocations: 466.2 kB / 0.4944 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-05/0.1605, allocations: 20 kB / 0.4944 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.1625, allocations: 1.057 MB / 0.4955 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.1627, allocations: 143.5 kB / 0.4956 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003013/0.163, allocations: 280.4 kB / 0.4959 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001872/0.1649, allocations: 1.286 MB / 0.4971 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1649, allocations: 0 / 0.4971 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1649, allocations: 0 / 0.4971 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1649, allocations: 0 / 0.4971 GB, free: 10.09 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001687/0.1666, allocations: 0.8571 MB / 0.498 GB, free: 9.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.1667, allocations: 8.031 kB / 0.498 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.1668, allocations: 74.7 kB / 0.4981 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.1671, allocations: 64.28 kB / 0.4981 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006878/0.1678, allocations: 429.4 kB / 0.4985 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.1678, allocations: 28.55 kB / 0.4986 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.1679, allocations: 27.94 kB / 0.4986 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.1688, allocations: 0.5224 MB / 0.4991 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.1688, allocations: 3.938 kB / 0.4991 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.1689, allocations: 15.98 kB / 0.4991 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.604e-05/0.169, allocations: 32.55 kB / 0.4991 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007867/0.1698, allocations: 465.9 kB / 0.4996 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003618/0.1734, allocations: 2.265 MB / 0.5018 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1739, allocations: 242.6 kB / 0.502 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.1741, allocations: 136.8 kB / 0.5022 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001268/0.1754, allocations: 1.01 MB / 0.5031 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.1758, allocations: 224.3 kB / 0.5034 GB, free: 3.281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.182e-06/0.1758, allocations: 0 / 0.5034 GB, free: 3.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.000724/0.1765, allocations: 385 kB / 0.5037 GB, free: 2.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.1767, allocations: 239.3 kB / 0.504 GB, free: 2.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007065/0.1774, allocations: 0.5175 MB / 0.5045 GB, free: 2.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.184e-05/0.1774, allocations: 29.7 kB / 0.5045 GB, free: 2.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.1777, allocations: 295.1 kB / 0.5048 GB, free: 1.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.361e-05/0.1778, allocations: 55.2 kB / 0.5048 GB, free: 1.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.313e-05/0.1779, allocations: 41.69 kB / 0.5049 GB, free: 1.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.178, allocations: 354.8 kB / 0.5052 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.1783, allocations: 132.4 kB / 0.5053 GB, free: 1.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003758/0.1787, allocations: 325.8 kB / 0.5056 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/0.1793, allocations: 455.8 kB / 0.5061 GB, free: 256 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.1793, allocations: 4 kB / 0.5061 GB, free: 252 kB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.2292/0.4085, allocations: 0.5256 MB / 0.5066 GB, free: 41.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001695/0.4087, allocations: 254.1 kB / 0.5068 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4087, allocations: 4.188 kB / 0.5068 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.56e-05/0.4088, allocations: 7.109 kB / 0.5068 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.4091, allocations: 81.59 kB / 0.5069 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.4091, allocations: 10.2 kB / 0.5069 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.4096, allocations: 61.08 kB / 0.507 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.867e-05/0.4097, allocations: 23.17 kB / 0.507 GB, free: 41.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.4097, allocations: 7.156 kB / 0.507 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008406/0.4106, allocations: 479.1 kB / 0.5075 GB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.4106, allocations: 9.609 kB / 0.5075 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.4106, allocations: 9.562 kB / 0.5075 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.4109, allocations: 77.97 kB / 0.5076 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.4109, allocations: 11.17 kB / 0.5076 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4112, allocations: 52.31 kB / 0.5076 GB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-05/0.4113, allocations: 21.25 kB / 0.5076 GB, free: 41.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 (p_table.nextEventScaled,p_table.nextEvent,$PRE.p_table.nextEvent,p_table.last,p_table.b,p_table.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0002778/0.4116, allocations: 299.9 kB / 0.5079 GB, free: 40.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.349e-05/0.4116, allocations: 48.59 kB / 0.508 GB, free: 40.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006288/0.4123, allocations: 366.7 kB / 0.5083 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.4123, allocations: 1.25 kB / 0.5083 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4123, allocations: 1.938 kB / 0.5083 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.4123, allocations: 1.906 kB / 0.5083 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004403/0.4128, allocations: 411.6 kB / 0.5087 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4128, allocations: 0 / 0.5087 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.4129, allocations: 26.39 kB / 0.5088 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4129, allocations: 8.094 kB / 0.5088 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.4129, allocations: 8.062 kB / 0.5088 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4129, allocations: 1.031 kB / 0.5088 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4129, allocations: 3.844 kB / 0.5088 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.4134, allocations: 365.9 kB / 0.5091 GB, free: 40.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.925e-05/0.4135, allocations: 129.3 kB / 0.5092 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.558e-05/0.4136, allocations: 13.31 kB / 0.5093 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.4139, allocations: 14.8 kB / 0.5093 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.491e-05/0.4139, allocations: 19.56 kB / 0.5093 GB, free: 40.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.414, allocations: 11.52 kB / 0.5093 GB, free: 40.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004562/0.4144, allocations: 371.9 kB / 0.5097 GB, free: 40.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4144, allocations: 0 / 0.5097 GB, free: 40.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001171/0.4156, allocations: 431.3 kB / 0.5101 GB, free: 40.33 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.001669/0.4173, allocations: 1.213 MB / 0.5113 GB, free: 39.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009733/0.4183, allocations: 0.6701 MB / 0.5119 GB, free: 39.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4183, allocations: 1.188 kB / 0.5119 GB, free: 39.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.4185, allocations: 189.3 kB / 0.5121 GB, free: 39.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.4195, allocations: 197.8 kB / 0.5123 GB, free: 39.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/0.4252, allocations: 4.621 MB / 0.5168 GB, free: 36.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.4255, allocations: 0.8456 MB / 0.5176 GB, free: 35.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006268/0.4262, allocations: 159.9 kB / 0.5178 GB, free: 35.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.4264, allocations: 152.5 kB / 0.5179 GB, free: 35.77 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4264, allocations: 0 / 0.5179 GB, free: 35.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03609/0.4625, allocations: 16.31 MB / 0.5338 GB, free: 28.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/0.4627, allocations: 254.8 kB / 0.5341 GB, free: 27.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.332/2.795, allocations: 0 / 0.5341 GB, free: 27.85 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)