Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",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.0008555/0.0008556, allocations: 91.7 kB / 17.35 MB, free: 6.375 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.0009197/0.0009197, allocations: 175.7 kB / 18.25 MB, free: 5.523 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.269/1.269, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2086/0.2086, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003956/0.0003956, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1007, allocations: 61.92 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01375/0.1145, allocations: 12.35 MB / 484.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009193/0.1237, allocations: 5.625 MB / 490.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007931/0.1245, allocations: 19.81 kB / 490.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008378/0.1254, allocations: 179.1 kB / 490.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.1276, allocations: 0.6456 MB / 491.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003656/0.1313, allocations: 1.296 MB / 492.5 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001995/0.1333, allocations: 1.715 MB / 494.2 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006153/0.1339, allocations: 289.4 kB / 494.5 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.135, allocations: 434.3 kB / 494.9 MB, free: 6.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008718/0.1359, allocations: 458.4 kB / 495.3 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.136, allocations: 20 kB / 495.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.1378, allocations: 1.045 MB / 496.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.1381, allocations: 147.5 kB / 496.6 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000403/0.1385, allocations: 280.4 kB / 496.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002019/0.1405, allocations: 1.266 MB / 498.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.1405, allocations: 0 / 498.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1405, allocations: 0 / 498.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.1406, allocations: 4 kB / 498.1 MB, free: 3.453 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00179/0.1424, allocations: 0.8471 MB / 498.9 MB, free: 2.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.1424, allocations: 11.97 kB / 499 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001874/0.1426, allocations: 66.72 kB / 499 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.1429, allocations: 64.27 kB / 499.1 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007031/0.1437, allocations: 449.2 kB / 499.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.1437, allocations: 20.56 kB / 499.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.1438, allocations: 31.98 kB / 499.6 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.1446, allocations: 0.5263 MB / 0.4884 GB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1447, allocations: 0 / 0.4884 GB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.784e-05/0.1447, allocations: 15.98 kB / 0.4884 GB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/0.1448, allocations: 28.55 kB / 0.4884 GB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006981/0.1455, allocations: 465.9 kB / 0.4889 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/0.1485, allocations: 2.261 MB / 0.4911 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003877/0.1489, allocations: 234.7 kB / 0.4913 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.1491, allocations: 136.7 kB / 0.4914 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/0.1503, allocations: 1.029 MB / 0.4924 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.1506, allocations: 214.9 kB / 0.4926 GB, free: 12.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.994e-06/0.1506, allocations: 0 / 0.4926 GB, free: 12.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006384/0.1513, allocations: 382.6 kB / 0.493 GB, free: 12.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.1514, allocations: 243.3 kB / 0.4932 GB, free: 11.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.152, allocations: 0.5214 MB / 0.4937 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.1521, allocations: 29.7 kB / 0.4938 GB, free: 11.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.1523, allocations: 283.2 kB / 0.494 GB, free: 11.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/0.1523, allocations: 67.17 kB / 0.4941 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/0.1524, allocations: 37.7 kB / 0.4941 GB, free: 11.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1525, allocations: 358.8 kB / 0.4945 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.1528, allocations: 132.3 kB / 0.4946 GB, free: 10.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.1531, allocations: 316.7 kB / 0.4949 GB, free: 10.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.1537, allocations: 469.2 kB / 0.4954 GB, free: 9.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1537, allocations: 0 / 0.4954 GB, free: 9.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008066/0.1545, allocations: 0.534 MB / 0.4959 GB, free: 9.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001845/0.1547, allocations: 251.6 kB / 0.4961 GB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1547, allocations: 4 kB / 0.4961 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.1547, allocations: 8 kB / 0.4961 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.155, allocations: 79.84 kB / 0.4962 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.155, allocations: 8 kB / 0.4962 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.1555, allocations: 59.41 kB / 0.4963 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.1555, allocations: 27.98 kB / 0.4963 GB, free: 8.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.281e-06/0.1555, allocations: 0 / 0.4963 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007344/0.1563, allocations: 485 kB / 0.4968 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.1563, allocations: 4 kB / 0.4968 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.1563, allocations: 12.53 kB / 0.4968 GB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.1566, allocations: 91.89 kB / 0.4969 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.1566, allocations: 8 kB / 0.4969 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.1569, allocations: 47.52 kB / 0.4969 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.742e-05/0.157, allocations: 24 kB / 0.4969 GB, free: 7.895 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.0002747/0.1573, allocations: 302.7 kB / 0.4972 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.462e-05/0.1574, allocations: 51.38 kB / 0.4973 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006042/0.158, allocations: 367.3 kB / 0.4976 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.158, allocations: 0 / 0.4976 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.158, allocations: 3.938 kB / 0.4976 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.158, allocations: 0 / 0.4976 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.1585, allocations: 409.2 kB / 0.498 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1585, allocations: 0 / 0.498 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.1586, allocations: 23.98 kB / 0.498 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1586, allocations: 0 / 0.498 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.1586, allocations: 12 kB / 0.4981 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1586, allocations: 4 kB / 0.4981 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1586, allocations: 7.922 kB / 0.4981 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004888/0.1591, allocations: 375.4 kB / 0.4984 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1593, allocations: 124.5 kB / 0.4985 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.671e-05/0.1594, allocations: 11.92 kB / 0.4986 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1596, allocations: 23.94 kB / 0.4986 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.1597, allocations: 7.984 kB / 0.4986 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.1597, allocations: 15.98 kB / 0.4986 GB, free: 6.066 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004204/0.1601, allocations: 366.8 kB / 0.499 GB, free: 5.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1601, allocations: 0 / 0.499 GB, free: 5.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001066/0.1612, allocations: 423.7 kB / 0.4994 GB, free: 5.297 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.001772/0.163, allocations: 1.214 MB / 0.5005 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009709/0.164, allocations: 0.6761 MB / 0.5012 GB, free: 3.355 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.164, allocations: 4 kB / 0.5012 GB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.1642, allocations: 189.8 kB / 0.5014 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.1652, allocations: 190.6 kB / 0.5016 GB, free: 2.977 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2101/0.3753, allocations: 4.607 MB / 0.5061 GB, free: 47.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.3756, allocations: 0.8443 MB / 0.5069 GB, free: 46.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006685/0.3763, allocations: 164.1 kB / 0.507 GB, free: 46.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.3765, allocations: 151.5 kB / 0.5072 GB, free: 46.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.3765, allocations: 0 / 0.5072 GB, free: 46.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03836/0.4149, allocations: 16.25 MB / 0.5231 GB, free: 41.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/0.4151, allocations: 244.2 kB / 0.5233 GB, free: 41.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/2.656, allocations: 0 / 0.5233 GB, free: 41.39 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)