Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001592/0.001592, allocations: 207.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.487/1.487, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002968/0.002968, allocations: 71.88 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2828, allocations: 50.54 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004487/0.2874, allocations: 2.953 MB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001898/0.2893, allocations: 1.048 MB / 413.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.2895, allocations: 7.938 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.2898, allocations: 79.3 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003478/0.2902, allocations: 158.8 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003389/0.2905, allocations: 191.6 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006224/0.2912, allocations: 0.5969 MB / 414.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.2914, allocations: 118.7 kB / 414.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.2917, allocations: 259.2 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003689/0.2921, allocations: 294.9 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.862e-05/0.2922, allocations: 48 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.2924, allocations: 95.98 kB / 414.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.2926, allocations: 131.6 kB / 415 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.2928, allocations: 234.9 kB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.2936, allocations: 0.5788 MB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2936, allocations: 4 kB / 415.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2936, allocations: 3.938 kB / 415.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.2936, allocations: 0 / 415.8 MB, free: 10.58 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001552/0.2952, allocations: 0.7869 MB / 416.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2952, allocations: 8.031 kB / 416.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.2953, allocations: 83.66 kB / 416.7 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.2955, allocations: 48.66 kB / 416.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005193/0.296, allocations: 318.7 kB / 417.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.296, allocations: 29.38 kB / 417.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.2961, allocations: 44.38 kB / 417.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009135/0.297, allocations: 450.4 kB / 417.6 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.2971, allocations: 7.891 kB / 417.6 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.752e-05/0.2971, allocations: 16 kB / 417.6 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2971, allocations: 8 kB / 417.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.2982, allocations: 447.7 kB / 418 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.3006, allocations: 1.297 MB / 419.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009812/0.3016, allocations: 418.9 kB / 419.7 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.3021, allocations: 238.1 kB / 420 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.3021, allocations: 12.42 kB / 420 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.3022, allocations: 35 kB / 420 MB, free: 6.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.853e-06/0.3022, allocations: 0 / 420 MB, free: 6.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005614/0.3078, allocations: 2.272 MB / 422.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.3079, allocations: 59.84 kB / 422.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003199/0.3082, allocations: 266.7 kB / 422.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.3083, allocations: 41.7 kB / 422.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.3084, allocations: 176.9 kB / 422.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.3086, allocations: 190.5 kB / 423 MB, free: 3.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.3088, allocations: 106.2 kB / 423.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.309, allocations: 342.8 kB / 423.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004975/0.3095, allocations: 221 kB / 423.7 MB, free: 2.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005411/0.31, allocations: 291.1 kB / 424 MB, free: 2.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008413/0.3109, allocations: 399.8 kB / 424.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3109, allocations: 0 / 424.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001602/0.3125, allocations: 0.7315 MB / 425.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3125, allocations: 4 kB / 425.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3126, allocations: 4 kB / 425.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3137, allocations: 426.3 kB / 425.5 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.3139, allocations: 71.89 kB / 425.6 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003341/0.3173, allocations: 3.646 MB / 429.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.3178, allocations: 79.94 kB / 429.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.3179, allocations: 20 kB / 429.3 MB, free: 12.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (44): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.3181, allocations: 174.6 kB / 429.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3182, allocations: 43.7 kB / 429.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.3199, allocations: 0.7162 MB / 430.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.3199, allocations: 7.984 kB / 430.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3199, allocations: 0 / 430.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.3199, allocations: 3.984 kB / 430.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.3223, allocations: 1.301 MB / 431.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3223, allocations: 0 / 431.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3226, allocations: 51.91 kB / 431.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009846/0.3236, allocations: 409.8 kB / 432 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.775e-05/0.3237, allocations: 19.92 kB / 432 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.3269, allocations: 3.614 MB / 435.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3269, allocations: 0 / 435.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.329, allocations: 1.029 MB / 436.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/0.3292, allocations: 164.8 kB / 436.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.3293, allocations: 19.94 kB / 436.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.3298, allocations: 71.91 kB / 436.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.33, allocations: 92.41 kB / 437 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.972e-05/0.3301, allocations: 27.97 kB / 437 MB, free: 4.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.3303, allocations: 190 kB / 437.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3303, allocations: 3.938 kB / 437.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004861/0.3308, allocations: 124 kB / 437.3 MB, free: 3.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003654/0.3344, allocations: 1.849 MB / 439.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.3361, allocations: 0.8004 MB / 440 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3361, allocations: 0 / 440 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009744/0.3371, allocations: 0.5347 MB / 440.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005431/0.3376, allocations: 72.12 kB / 440.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/0.345, allocations: 4.308 MB / 444.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.3456, allocations: 0.8162 MB / 445.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.3457, allocations: 43.27 kB / 445.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000202/0.346, allocations: 115.4 kB / 445.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.346, allocations: 3.938 kB / 445.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04953/0.3955, allocations: 13.71 MB / 459.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.02, allocations: 10.88 kB / 459.6 MB, free: 13.72 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)