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.001413/0.001413, allocations: 116.7 kB / 17.33 MB, free: 6 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.00158/0.00158, allocations: 193.3 kB / 18.25 MB, free: 5.094 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.338/1.338, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.1929/0.1929, allocations: 44.19 MB / 336.3 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.27 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1013, allocations: 60.82 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01345/0.1148, allocations: 12.83 MB / 481.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006807/0.1216, allocations: 5.523 MB / 487.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.1221, allocations: 15.88 kB / 487.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005386/0.1226, allocations: 183 kB / 487.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.1241, allocations: 0.6378 MB / 488 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003127/0.1272, allocations: 1.439 MB / 489.4 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.1284, allocations: 1.231 MB / 490.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00039/0.1288, allocations: 317.2 kB / 491 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006217/0.1295, allocations: 0.4982 MB / 491.5 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005413/0.13, allocations: 478.4 kB / 492 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.106e-05/0.1301, allocations: 47.94 kB / 492 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.1315, allocations: 1.053 MB / 493.1 MB, free: 6.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.1317, allocations: 167.5 kB / 493.2 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.1319, allocations: 274.7 kB / 493.5 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.1333, allocations: 1.313 MB / 494.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1333, allocations: 0 / 494.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1333, allocations: 0 / 494.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1334, allocations: 4 kB / 494.8 MB, free: 4.574 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.001542/0.1349, allocations: 0.9443 MB / 495.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.135, allocations: 8.031 kB / 495.8 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.33e-05/0.135, allocations: 74.72 kB / 495.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002354/0.1353, allocations: 64.27 kB / 495.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.1358, allocations: 433.3 kB / 496.3 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.1359, allocations: 28.55 kB / 496.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.1359, allocations: 27.98 kB / 496.4 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.1367, allocations: 0.5224 MB / 496.9 MB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.1367, allocations: 3.938 kB / 496.9 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.1368, allocations: 15.98 kB / 496.9 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-05/0.1368, allocations: 32.55 kB / 496.9 MB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006781/0.1375, allocations: 465.9 kB / 497.4 MB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/0.1404, allocations: 2.249 MB / 499.6 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.1408, allocations: 246.5 kB / 499.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.1411, allocations: 144.6 kB / 0.4883 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.1421, allocations: 1.014 MB / 0.4893 GB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.1424, allocations: 212.5 kB / 0.4895 GB, free: 13.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1425, allocations: 3.938 kB / 0.4895 GB, free: 13.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006336/0.1431, allocations: 388.6 kB / 0.4899 GB, free: 13.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1432, allocations: 235.3 kB / 0.4901 GB, free: 13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.1438, allocations: 0.5174 MB / 0.4906 GB, free: 12.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.1438, allocations: 33.7 kB / 0.4906 GB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.144, allocations: 287.1 kB / 0.4909 GB, free: 12.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.341e-05/0.144, allocations: 59.34 kB / 0.491 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.1442, allocations: 105.4 kB / 0.4911 GB, free: 11.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1443, allocations: 354.8 kB / 0.4914 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.1446, allocations: 137.2 kB / 0.4915 GB, free: 11.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003293/0.1449, allocations: 312.8 kB / 0.4918 GB, free: 11.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004954/0.1454, allocations: 457.2 kB / 0.4923 GB, free: 10.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.1454, allocations: 7.938 kB / 0.4923 GB, free: 10.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000783/0.1462, allocations: 0.5342 MB / 0.4928 GB, free: 10.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.1462, allocations: 37.69 kB / 0.4928 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1463, allocations: 4 kB / 0.4928 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1463, allocations: 8 kB / 0.4928 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.1466, allocations: 79.84 kB / 0.4929 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.1466, allocations: 11.98 kB / 0.4929 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/0.147, allocations: 59.78 kB / 0.493 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.147, allocations: 23.98 kB / 0.493 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003352/0.1474, allocations: 268.5 kB / 0.4933 GB, free: 9.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003161/0.1477, allocations: 313.7 kB / 0.4936 GB, free: 9.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004706/0.1482, allocations: 466.3 kB / 0.494 GB, free: 8.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.1482, allocations: 0 / 0.494 GB, free: 8.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007455/0.1489, allocations: 0.5222 MB / 0.4945 GB, free: 8.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.149, allocations: 45.69 kB / 0.4946 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.149, allocations: 4 kB / 0.4946 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.681e-06/0.149, allocations: 4 kB / 0.4946 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.1493, allocations: 71.91 kB / 0.4946 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.1493, allocations: 11.94 kB / 0.4947 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/0.1497, allocations: 47.67 kB / 0.4947 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.1497, allocations: 23.98 kB / 0.4947 GB, free: 7.879 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.0001629/0.1499, allocations: 252.5 kB / 0.495 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.15, allocations: 47.44 kB / 0.495 GB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005979/0.1506, allocations: 371.2 kB / 0.4954 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1506, allocations: 7.938 kB / 0.4954 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1506, allocations: 0 / 0.4954 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1506, allocations: 4 kB / 0.4954 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003821/0.151, allocations: 409.2 kB / 0.4958 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.151, allocations: 0 / 0.4958 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.1512, allocations: 27.92 kB / 0.4958 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1512, allocations: 0 / 0.4958 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.1512, allocations: 11.94 kB / 0.4958 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1512, allocations: 128 / 0.4958 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1512, allocations: 4 kB / 0.4958 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.1517, allocations: 371.4 kB / 0.4962 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.549e-05/0.1518, allocations: 124.5 kB / 0.4963 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.1519, allocations: 8 kB / 0.4963 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.1522, allocations: 19.94 kB / 0.4963 GB, free: 6.137 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.1522, allocations: 7.984 kB / 0.4963 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.1522, allocations: 15.98 kB / 0.4963 GB, free: 6.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000377/0.1526, allocations: 366.8 kB / 0.4967 GB, free: 5.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1526, allocations: 0 / 0.4967 GB, free: 5.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001002/0.1536, allocations: 427.6 kB / 0.4971 GB, free: 5.34 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.001509/0.1552, allocations: 1.208 MB / 0.4983 GB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000914/0.1561, allocations: 0.6956 MB / 0.4989 GB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.1561, allocations: 5.75 kB / 0.499 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001918/0.1563, allocations: 183.3 kB / 0.4991 GB, free: 3.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009235/0.1572, allocations: 209.7 kB / 0.4993 GB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.162/0.3192, allocations: 4.553 MB / 0.5038 GB, free: 49.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.3195, allocations: 0.8436 MB / 0.5046 GB, free: 48.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006133/0.3202, allocations: 162 kB / 0.5048 GB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.3204, allocations: 151.8 kB / 0.5049 GB, free: 48.96 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3204, allocations: 3.844 kB / 0.5049 GB, free: 48.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9294/1.25, allocations: 16.79 MB / 0.5213 GB, free: 43.39 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/1.25, allocations: 252.9 kB / 0.5215 GB, free: 43.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/3.556, allocations: 0 / 0.5215 GB, free: 43.14 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)