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.001673/0.001673, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 211.8 kB / 18.74 MB, free: 4.312 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.414/1.414, allocations: 227.7 MB / 247.2 MB, free: 10.24 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.001933/0.001933, allocations: 59.89 kB / 358.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2526, allocations: 50.54 MB / 409.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004694/0.2574, allocations: 3.033 MB / 412.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002642/0.2601, allocations: 1.391 MB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.2603, allocations: 4 kB / 413.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005119/0.2609, allocations: 151 kB / 413.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005973/0.2615, allocations: 222.7 kB / 413.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003797/0.2619, allocations: 135.6 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.2625, allocations: 438.1 kB / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2627, allocations: 111.8 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2629, allocations: 183.3 kB / 414.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002688/0.2632, allocations: 183.2 kB / 414.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.634e-05/0.2633, allocations: 28 kB / 414.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.2634, allocations: 63.91 kB / 415 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.2636, allocations: 79.69 kB / 415 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.2638, allocations: 187 kB / 415.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.2644, allocations: 465 kB / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2644, allocations: 0 / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2644, allocations: 0 / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2645, allocations: 0 / 415.7 MB, free: 10.76 MB / 334.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.001127/0.2656, allocations: 0.6864 MB / 416.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.2656, allocations: 12.03 kB / 416.4 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.2658, allocations: 71.23 kB / 416.4 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.087e-05/0.2659, allocations: 52.61 kB / 416.5 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000513/0.2664, allocations: 324.8 kB / 416.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.2664, allocations: 20.94 kB / 416.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.285e-05/0.2665, allocations: 27.94 kB / 416.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.267, allocations: 311 kB / 417.2 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.267, allocations: 3.953 kB / 417.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.2671, allocations: 16 kB / 417.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2671, allocations: 8 kB / 417.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.2675, allocations: 178.1 kB / 417.4 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.269, allocations: 0.8757 MB / 418.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005813/0.2696, allocations: 255.5 kB / 418.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.2698, allocations: 97.39 kB / 418.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.2698, allocations: 8.219 kB / 418.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003319/0.2702, allocations: 162.6 kB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/0.2702, allocations: 7.938 kB / 418.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002583/0.2728, allocations: 1.325 MB / 420.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.2729, allocations: 183.9 kB / 420.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.2733, allocations: 336.5 kB / 420.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.2734, allocations: 29.7 kB / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.2736, allocations: 200.6 kB / 420.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.2737, allocations: 142.8 kB / 421 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.2738, allocations: 74.12 kB / 421 MB, free: 5.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.274, allocations: 354.7 kB / 421.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.2742, allocations: 84.84 kB / 421.5 MB, free: 4.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.2745, allocations: 193.2 kB / 421.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004272/0.2749, allocations: 246.2 kB / 421.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2749, allocations: 0 / 421.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006454/0.2756, allocations: 354.7 kB / 422.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2756, allocations: 8 kB / 422.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2756, allocations: 0 / 422.2 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001078/0.2757, allocations: 20.84 kB / 422.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.2761, allocations: 87.91 kB / 422.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.2775, allocations: 1.39 MB / 423.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.2778, allocations: 12 kB / 423.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.2778, allocations: 19.98 kB / 423.8 MB, free: 2.07 MB / 334.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.0002209/0.278, allocations: 165.9 kB / 423.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.767e-05/0.2781, allocations: 51.69 kB / 424 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.301e-05/0.2782, allocations: 39.95 kB / 424 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2782, allocations: 4 kB / 424 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2782, allocations: 3.984 kB / 424 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007111/0.2789, allocations: 0.665 MB / 424.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.2802, allocations: 0.8578 MB / 425.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2802, allocations: 0 / 425.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.2806, allocations: 75.91 kB / 425.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.2806, allocations: 4 kB / 425.6 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.2806, allocations: 11.94 kB / 425.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2806, allocations: 0 / 425.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.2806, allocations: 4 kB / 425.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008447/0.2815, allocations: 0.5544 MB / 426.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2817, allocations: 136.9 kB / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.082e-05/0.2817, allocations: 8 kB / 426.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.282, allocations: 27.92 kB / 426.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.282, allocations: 23.91 kB / 426.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.2821, allocations: 12 kB / 426.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.2824, allocations: 243 kB / 426.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2824, allocations: 0 / 426.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004265/0.2828, allocations: 99.94 kB / 426.7 MB, free: 14.86 MB / 350.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.002532/0.2853, allocations: 1.406 MB / 428.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007196/0.2861, allocations: 374.2 kB / 428.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2861, allocations: 0 / 428.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.2863, allocations: 139.6 kB / 428.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006122/0.287, allocations: 97.45 kB / 428.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00511/0.2921, allocations: 3.654 MB / 432.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004602/0.2926, allocations: 0.808 MB / 433.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.2928, allocations: 47.25 kB / 433.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.293, allocations: 127.4 kB / 433.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.293, allocations: 4 kB / 433.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03907/0.3321, allocations: 9.408 MB / 442.8 MB, free: 15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.62, allocations: 6.188 kB / 442.8 MB, free: 15 MB / 366.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)