Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00162/0.00162, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001872/0.001872, allocations: 198 kB / 18.73 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.451/1.451, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001981/0.001982, allocations: 63.91 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2678, allocations: 50.55 MB / 409.1 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007739/0.2756, allocations: 5.17 MB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.2803, allocations: 2.028 MB / 416.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007636/0.2812, allocations: 15.94 kB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006292/0.2818, allocations: 198.3 kB / 416.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001437/0.2833, allocations: 463.2 kB / 416.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.2845, allocations: 0.5215 MB / 417.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002129/0.2866, allocations: 1.737 MB / 419.2 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005809/0.2872, allocations: 319.5 kB / 419.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.2885, allocations: 0.7401 MB / 420.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.2896, allocations: 0.8409 MB / 421.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002557/0.2899, allocations: 136 kB / 421.2 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005219/0.2904, allocations: 239.9 kB / 421.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.2908, allocations: 374.9 kB / 421.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006814/0.2915, allocations: 0.6493 MB / 422.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001921/0.2934, allocations: 1.63 MB / 424.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2935, allocations: 0 / 424.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2935, allocations: 0 / 424.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.757e-05/0.2935, allocations: 4 kB / 424.1 MB, free: 2.293 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003848/0.2974, allocations: 1.639 MB / 425.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.2974, allocations: 8.031 kB / 425.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002067/0.2976, allocations: 152.4 kB / 425.9 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007113/0.2984, allocations: 172.1 kB / 426.1 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.2995, allocations: 0.6293 MB / 426.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.2997, allocations: 186 kB / 426.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.2999, allocations: 111.9 kB / 427 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.3024, allocations: 1.239 MB / 428.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.572e-05/0.3025, allocations: 11.94 kB / 428.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3026, allocations: 40 kB / 428.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.252e-05/0.3026, allocations: 24 kB / 428.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002927/0.3055, allocations: 1.292 MB / 429.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006791/0.3124, allocations: 3.68 MB / 433.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/0.3147, allocations: 1.077 MB / 434.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3162, allocations: 0.645 MB / 435 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.945e-05/0.3163, allocations: 25.28 kB / 435 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3163, allocations: 47.88 kB / 435.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 3.276e-06/0.3163, allocations: 0 / 435.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.01448/0.3308, allocations: 5.506 MB / 440.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/0.3309, allocations: 94.42 kB / 440.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009286/0.3319, allocations: 0.624 MB / 441.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.332, allocations: 61.7 kB / 441.3 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.3323, allocations: 358.1 kB / 441.7 MB, free: 184 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005017/0.3329, allocations: 0.5114 MB / 442.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004631/0.3333, allocations: 259.5 kB / 442.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.3335, allocations: 349.9 kB / 442.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.3347, allocations: 0.5427 MB / 443.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.3361, allocations: 0.6841 MB / 444 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.3383, allocations: 0.9912 MB / 445 MB, free: 12.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3383, allocations: 4 kB / 445 MB, free: 12.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003883/0.3422, allocations: 1.734 MB / 446.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.3422, allocations: 4 kB / 446.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3422, allocations: 4 kB / 446.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/0.3443, allocations: 0.8435 MB / 447.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.3456, allocations: 247.6 kB / 447.8 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002784/0.3484, allocations: 1.962 MB / 449.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.3499, allocations: 163.9 kB / 450 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/0.3501, allocations: 51.98 kB / 450 MB, free: 7.715 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(4,45), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0007204/0.3509, allocations: 261.6 kB / 450.3 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003491/0.3512, allocations: 107.3 kB / 450.4 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/0.3516, allocations: 145.8 kB / 450.5 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.3516, allocations: 12 kB / 450.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.3516, allocations: 4 kB / 450.5 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.3516, allocations: 7.984 kB / 450.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006825/0.3585, allocations: 3.295 MB / 453.8 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.3585, allocations: 0 / 453.8 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.3597, allocations: 235.7 kB / 454.1 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.3616, allocations: 0.7888 MB / 454.9 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001744/0.3618, allocations: 51.94 kB / 454.9 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/0.3644, allocations: 1.899 MB / 456.8 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3644, allocations: 0 / 456.8 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005412/0.3698, allocations: 2.458 MB / 459.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.3704, allocations: 312.2 kB / 459.6 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.3707, allocations: 40 kB / 459.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.3718, allocations: 155.8 kB / 459.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/0.3723, allocations: 201 kB / 460 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.3724, allocations: 63.94 kB / 460 MB, free: 13.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006267/0.3731, allocations: 442.8 kB / 460.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.156e-06/0.3731, allocations: 112 / 460.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009151/0.374, allocations: 331.9 kB / 460.8 MB, free: 12.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (4,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006974/0.381, allocations: 3.31 MB / 464.1 MB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.3845, allocations: 1.466 MB / 465.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3846, allocations: 0 / 465.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002005/0.3866, allocations: 0.8341 MB / 466.4 MB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.3878, allocations: 200 kB / 466.6 MB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02202/0.4099, allocations: 9.905 MB / 476.5 MB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007407/0.4107, allocations: 1.047 MB / 477.5 MB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007564/0.4114, allocations: 167.5 kB / 477.7 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.4121, allocations: 379.3 kB / 478.1 MB, free: 11.35 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4121, allocations: 0 / 478.1 MB, free: 11.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07193/0.484, allocations: 30.58 MB / 0.4967 GB, free: 13.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.03, allocations: 9.188 kB / 0.4967 GB, free: 13.06 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)