Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001265, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.468/1.468, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001922/0.001922, allocations: 63.58 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1057, allocations: 50.54 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.00474/0.1105, allocations: 3.02 MB / 360.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1131, allocations: 1.406 MB / 362.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.1134, allocations: 7.938 kB / 362.3 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005122/0.1139, allocations: 147.2 kB / 362.4 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005765/0.1145, allocations: 206.7 kB / 362.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.1148, allocations: 135.6 kB / 362.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005265/0.1154, allocations: 442 kB / 363.2 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.1156, allocations: 111.8 kB / 363.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.1158, allocations: 175.3 kB / 363.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.1161, allocations: 191.2 kB / 363.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.444e-05/0.1162, allocations: 32 kB / 363.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1163, allocations: 55.92 kB / 363.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.1165, allocations: 83.69 kB / 363.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.1167, allocations: 183 kB / 364 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005466/0.1172, allocations: 450.7 kB / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1172, allocations: 0 / 364.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.408e-06/0.1172, allocations: 4 kB / 364.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1173, allocations: 3.938 kB / 364.5 MB, free: 7.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001114/0.1184, allocations: 0.679 MB / 365.1 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1184, allocations: 8.031 kB / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.1186, allocations: 71.19 kB / 365.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.1187, allocations: 48.38 kB / 365.3 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.1191, allocations: 328.5 kB / 365.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1191, allocations: 20.94 kB / 365.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.1192, allocations: 31.92 kB / 365.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/0.1197, allocations: 307.1 kB / 365.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.1198, allocations: 4 kB / 366 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.1198, allocations: 12 kB / 366 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.1198, allocations: 8 kB / 366 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.1201, allocations: 182.1 kB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.1216, allocations: 0.8676 MB / 367 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.1221, allocations: 259.4 kB / 367.3 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.1223, allocations: 97.39 kB / 367.4 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.1224, allocations: 8.219 kB / 367.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003944/0.1228, allocations: 166.6 kB / 367.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.904e-06/0.1228, allocations: 0 / 367.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002497/0.1253, allocations: 1.316 MB / 368.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.1254, allocations: 187.9 kB / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.1258, allocations: 332.5 kB / 369.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.1259, allocations: 33.7 kB / 369.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.126, allocations: 192.5 kB / 369.6 MB, free: 1.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.1262, allocations: 142 kB / 369.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.1263, allocations: 78.03 kB / 369.8 MB, free: 1.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1265, allocations: 354.7 kB / 370.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.1267, allocations: 80.84 kB / 370.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.127, allocations: 193.2 kB / 370.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/0.1274, allocations: 238.2 kB / 370.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1274, allocations: 4 kB / 370.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005855/0.128, allocations: 350.5 kB / 371 MB, free: 212 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.128, allocations: 4 kB / 371 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.128, allocations: 7.984 kB / 371 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.259e-05/0.1281, allocations: 20.84 kB / 371 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003462/0.1285, allocations: 91.89 kB / 371.1 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1454/0.2739, allocations: 1.378 MB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.2742, allocations: 15.52 kB / 372.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.2743, allocations: 17.53 kB / 372.5 MB, free: 18.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.2745, allocations: 170 kB / 372.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.2746, allocations: 38.64 kB / 372.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.389e-05/0.2747, allocations: 48.09 kB / 372.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2747, allocations: 3.719 kB / 372.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2747, allocations: 6.312 kB / 372.8 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005867/0.2753, allocations: 0.6571 MB / 373.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.2765, allocations: 0.8496 MB / 374.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.2765, allocations: 5.156 kB / 374.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.2768, allocations: 76.73 kB / 374.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.2768, allocations: 3.594 kB / 374.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.2769, allocations: 13.95 kB / 374.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.2769, allocations: 6.281 kB / 374.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2769, allocations: 5.312 kB / 374.4 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.2776, allocations: 0.5438 MB / 374.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.2778, allocations: 138.6 kB / 375.1 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.2778, allocations: 12.94 kB / 375.1 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.2781, allocations: 16.31 kB / 375.1 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.2781, allocations: 33.62 kB / 375.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/0.2782, allocations: 13.44 kB / 375.1 MB, free: 17.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.2784, allocations: 241.8 kB / 375.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2784, allocations: 0 / 375.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004212/0.2789, allocations: 99.2 kB / 375.5 MB, free: 17.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002286/0.2812, allocations: 1.407 MB / 376.9 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007662/0.2819, allocations: 382.1 kB / 377.3 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.282, allocations: 1.156 kB / 377.3 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.2822, allocations: 130.8 kB / 377.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/0.2828, allocations: 94.5 kB / 377.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.2871, allocations: 3.703 MB / 381.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.2874, allocations: 0.8066 MB / 382 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.2876, allocations: 51.5 kB / 382 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.2878, allocations: 128.6 kB / 382.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2878, allocations: 0 / 382.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03858/0.3264, allocations: 9.209 MB / 391.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.1, allocations: 11.52 kB / 391.4 MB, free: 10.32 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1)