Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001756/0.001756, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002103/0.002103, allocations: 198 kB / 18.73 MB, free: 4.336 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.465/1.465, allocations: 227.7 MB / 247.2 MB, free: 10.25 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.001974/0.001974, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2772, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005041/0.2823, allocations: 3.175 MB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.2845, allocations: 1.122 MB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.2847, allocations: 4 kB / 413.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003614/0.2851, allocations: 87.17 kB / 413.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004684/0.2856, allocations: 186.6 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.2861, allocations: 195.7 kB / 413.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008317/0.2869, allocations: 0.6707 MB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/0.2872, allocations: 132.2 kB / 414.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004569/0.2877, allocations: 303 kB / 414.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004386/0.2881, allocations: 310.8 kB / 415.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.512e-05/0.2882, allocations: 55.94 kB / 415.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.2885, allocations: 108 kB / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.2887, allocations: 131.6 kB / 415.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002873/0.289, allocations: 270.6 kB / 415.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008544/0.2898, allocations: 0.6489 MB / 416.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2899, allocations: 0 / 416.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2899, allocations: 0 / 416.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.2899, allocations: 0 / 416.4 MB, free: 9.992 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001593/0.2915, allocations: 0.8412 MB / 417.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.2915, allocations: 8.031 kB / 417.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.2917, allocations: 99.64 kB / 417.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.2919, allocations: 72.55 kB / 417.4 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.2925, allocations: 351.4 kB / 417.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.2925, allocations: 37.38 kB / 417.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.329e-05/0.2926, allocations: 40.38 kB / 417.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/0.2935, allocations: 478.4 kB / 418.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.2936, allocations: 11.95 kB / 418.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.2936, allocations: 19.98 kB / 418.4 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.2937, allocations: 11.94 kB / 418.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009983/0.2947, allocations: 471.7 kB / 418.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.2968, allocations: 1.153 MB / 420 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009602/0.2978, allocations: 428.9 kB / 420.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005533/0.2984, allocations: 266.4 kB / 420.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.536e-05/0.2985, allocations: 12.55 kB / 420.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/0.2985, allocations: 39.06 kB / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.504e-06/0.2985, allocations: 0 / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005483/0.304, allocations: 2.333 MB / 423.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.3041, allocations: 63.91 kB / 423.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.3045, allocations: 300.6 kB / 423.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.96e-05/0.3045, allocations: 53.62 kB / 423.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3047, allocations: 189.6 kB / 423.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.3049, allocations: 226.2 kB / 423.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/0.3051, allocations: 106.3 kB / 424 MB, free: 2.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3053, allocations: 346.8 kB / 424.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004921/0.3058, allocations: 233.2 kB / 424.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005215/0.3063, allocations: 276.8 kB / 424.8 MB, free: 1.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007969/0.3071, allocations: 390.3 kB / 425.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3071, allocations: 0 / 425.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001666/0.3088, allocations: 0.7562 MB / 425.9 MB, free: 104 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3088, allocations: 7.984 kB / 426 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.3089, allocations: 0 / 426 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/0.3098, allocations: 377.4 kB / 426.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/0.3102, allocations: 87.83 kB / 426.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.3117, allocations: 1.394 MB / 427.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.3123, allocations: 80.02 kB / 427.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.3124, allocations: 20 kB / 427.9 MB, free: 14.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002604/0.3126, allocations: 173.7 kB / 428.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.3127, allocations: 47.7 kB / 428.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.3129, allocations: 64.52 kB / 428.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.3129, allocations: 8 kB / 428.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3129, allocations: 0 / 428.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.3129, allocations: 3.984 kB / 428.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.3158, allocations: 1.455 MB / 429.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3158, allocations: 4 kB / 429.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.3162, allocations: 92.05 kB / 429.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007963/0.317, allocations: 345.6 kB / 430.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.064e-05/0.3171, allocations: 15.98 kB / 430.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.3185, allocations: 1.37 MB / 431.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3185, allocations: 3.938 kB / 431.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.3207, allocations: 1.055 MB / 432.5 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.3209, allocations: 180.7 kB / 432.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.611e-05/0.321, allocations: 20 kB / 432.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.3215, allocations: 63.92 kB / 432.8 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/0.3218, allocations: 100.4 kB / 432.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-05/0.3218, allocations: 19.98 kB / 432.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002708/0.3221, allocations: 223 kB / 433.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3221, allocations: 0 / 433.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004997/0.3226, allocations: 136 kB / 433.2 MB, free: 8.535 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003655/0.3263, allocations: 1.885 MB / 435.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.3277, allocations: 0.5821 MB / 435.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3277, allocations: 64 / 435.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.3285, allocations: 346.9 kB / 436.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006901/0.3292, allocations: 90.09 kB / 436.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00986/0.3391, allocations: 5.028 MB / 441.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/0.3397, allocations: 0.8362 MB / 442 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.3399, allocations: 39.41 kB / 442 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.3401, allocations: 155.4 kB / 442.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3401, allocations: 0 / 442.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04626/0.3864, allocations: 14.26 MB / 456.5 MB, free: 1.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.05, allocations: 4 kB / 456.5 MB, free: 1.461 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)