Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.00175/0.00175, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002083/0.002083, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2454/0.2454, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002213/0.002213, allocations: 87.08 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1351, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01573/0.1509, allocations: 12.68 MB / 492.9 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008394/0.1593, allocations: 5.484 MB / 498.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004711/0.1598, allocations: 19.88 kB / 498.4 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007275/0.1606, allocations: 198.7 kB / 498.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.1625, allocations: 0.6997 MB / 499.3 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004128/0.1667, allocations: 1.556 MB / 0.4891 GB, free: 436 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002157/0.1689, allocations: 1.243 MB / 0.4903 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006487/0.1695, allocations: 309.3 kB / 0.4906 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.1705, allocations: 0.4983 MB / 0.4911 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007656/0.1713, allocations: 470.4 kB / 0.4916 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.695e-05/0.1714, allocations: 47.94 kB / 0.4916 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.1738, allocations: 1.076 MB / 0.4927 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.1741, allocations: 159.5 kB / 0.4928 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003507/0.1744, allocations: 282.7 kB / 0.4931 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002302/0.1768, allocations: 1.34 MB / 0.4944 GB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1768, allocations: 0 / 0.4944 GB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1768, allocations: 0 / 0.4944 GB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.1768, allocations: 0 / 0.4944 GB, free: 11.01 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.002129/0.1789, allocations: 0.9443 MB / 0.4953 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.179, allocations: 12.03 kB / 0.4953 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001124/0.1791, allocations: 74.72 kB / 0.4954 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.1794, allocations: 60.36 kB / 0.4954 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007045/0.1801, allocations: 449.1 kB / 0.4959 GB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.1801, allocations: 20.56 kB / 0.4959 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.983e-05/0.1802, allocations: 31.98 kB / 0.4959 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000889/0.1811, allocations: 0.5224 MB / 0.4964 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1811, allocations: 0 / 0.4964 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.397e-05/0.1812, allocations: 12 kB / 0.4964 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.185e-05/0.1812, allocations: 28.55 kB / 0.4965 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007917/0.182, allocations: 465.9 kB / 0.4969 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/0.1856, allocations: 2.269 MB / 0.4991 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005225/0.1861, allocations: 234.6 kB / 0.4994 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.1864, allocations: 140.8 kB / 0.4995 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001387/0.1878, allocations: 1.018 MB / 0.5005 GB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.1882, allocations: 215 kB / 0.5007 GB, free: 4.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.864e-06/0.1882, allocations: 4 kB / 0.5007 GB, free: 4.105 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007772/0.189, allocations: 378.6 kB / 0.5011 GB, free: 3.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003076/0.1893, allocations: 243.3 kB / 0.5013 GB, free: 3.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007232/0.19, allocations: 0.5214 MB / 0.5018 GB, free: 2.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.1901, allocations: 29.7 kB / 0.5018 GB, free: 2.863 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.1904, allocations: 295 kB / 0.5021 GB, free: 2.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.877e-05/0.1905, allocations: 51.3 kB / 0.5022 GB, free: 2.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.1907, allocations: 101.6 kB / 0.5023 GB, free: 2.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002767/0.191, allocations: 362.8 kB / 0.5026 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.1913, allocations: 129.2 kB / 0.5027 GB, free: 1.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.1918, allocations: 313.9 kB / 0.503 GB, free: 1.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006327/0.1925, allocations: 477.1 kB / 0.5035 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1925, allocations: 0 / 0.5035 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008903/0.1934, allocations: 0.5344 MB / 0.504 GB, free: 460 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.878e-05/0.1935, allocations: 37.7 kB / 0.504 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1935, allocations: 7.938 kB / 0.504 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.1935, allocations: 4 kB / 0.504 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.1938, allocations: 79.89 kB / 0.5041 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.1939, allocations: 11.94 kB / 0.5041 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.1942, allocations: 55.42 kB / 0.5042 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.1943, allocations: 20 kB / 0.5042 GB, free: 236 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.2466/0.4409, allocations: 265 kB / 0.5045 GB, free: 42.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004437/0.4414, allocations: 310.8 kB / 0.5048 GB, free: 42.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005139/0.4419, allocations: 460 kB / 0.5052 GB, free: 42.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.458e-06/0.442, allocations: 1.375 kB / 0.5052 GB, free: 42.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0009548/0.4429, allocations: 0.5276 MB / 0.5057 GB, free: 42.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.443, allocations: 37.72 kB / 0.5057 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.443, allocations: 6.031 kB / 0.5057 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.443, allocations: 6.812 kB / 0.5058 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.4433, allocations: 80.78 kB / 0.5058 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.4434, allocations: 8.172 kB / 0.5058 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000438/0.4438, allocations: 43.17 kB / 0.5059 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.4438, allocations: 20.52 kB / 0.5059 GB, free: 42.09 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.0001848/0.444, allocations: 247.5 kB / 0.5061 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/0.4441, allocations: 52.34 kB / 0.5062 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006727/0.4448, allocations: 356.3 kB / 0.5065 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.4448, allocations: 5.422 kB / 0.5065 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4448, allocations: 0 / 0.5065 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4449, allocations: 2.438 kB / 0.5065 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.4453, allocations: 417.6 kB / 0.5069 GB, free: 41.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4453, allocations: 3.828 kB / 0.5069 GB, free: 41.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.4455, allocations: 27.47 kB / 0.507 GB, free: 41.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4455, allocations: 0 / 0.507 GB, free: 41.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.4455, allocations: 9.438 kB / 0.507 GB, free: 41.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4455, allocations: 1.375 kB / 0.507 GB, free: 41.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4455, allocations: 4.406 kB / 0.507 GB, free: 41.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005308/0.446, allocations: 359.9 kB / 0.5073 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.595e-05/0.4461, allocations: 128.5 kB / 0.5074 GB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.407e-05/0.4462, allocations: 12.83 kB / 0.5075 GB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.4465, allocations: 18.2 kB / 0.5075 GB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.4465, allocations: 13.77 kB / 0.5075 GB, free: 41.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.4466, allocations: 11.78 kB / 0.5075 GB, free: 41.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004482/0.447, allocations: 372.9 kB / 0.5079 GB, free: 41.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.447, allocations: 0 / 0.5079 GB, free: 41.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001708/0.4487, allocations: 430.9 kB / 0.5083 GB, free: 41.19 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.001991/0.4507, allocations: 1.216 MB / 0.5095 GB, free: 40.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.4522, allocations: 0.682 MB / 0.5101 GB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4522, allocations: 1 kB / 0.5101 GB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.4525, allocations: 189.8 kB / 0.5103 GB, free: 40 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.4536, allocations: 199.7 kB / 0.5105 GB, free: 39.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.4594, allocations: 4.455 MB / 0.5148 GB, free: 37.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.4598, allocations: 0.8472 MB / 0.5157 GB, free: 36.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006455/0.4605, allocations: 167 kB / 0.5158 GB, free: 36.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.4607, allocations: 152.9 kB / 0.516 GB, free: 36.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4607, allocations: 4 kB / 0.516 GB, free: 36.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05105/0.5117, allocations: 16.94 MB / 0.5325 GB, free: 28.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.58/9.092, allocations: 17.61 kB / 0.5325 GB, free: 28.22 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)