Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.9 MB / 211.1 MB, free: 8.551 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003847, allocations: 8 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3166, allocations: 44.51 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005478/0.3221, allocations: 2.23 MB / 310.8 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003189/0.3254, allocations: 0.9013 MB / 311.7 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.3258, allocations: 11.94 kB / 311.7 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.326, allocations: 35.69 kB / 311.7 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006581/0.3267, allocations: 119.7 kB / 311.9 MB, free: 9.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000949/0.3277, allocations: 171.6 kB / 312 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.3288, allocations: 352.5 kB / 312.4 MB, free: 8.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003703/0.3292, allocations: 90.02 kB / 312.5 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000665/0.3299, allocations: 215.3 kB / 312.7 MB, free: 8.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007057/0.3306, allocations: 235.2 kB / 312.9 MB, free: 8.293 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.3308, allocations: 24 kB / 312.9 MB, free: 8.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003631/0.3312, allocations: 63.95 kB / 313 MB, free: 8.207 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002071/0.3314, allocations: 95.62 kB / 313.1 MB, free: 8.113 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3316, allocations: 85.52 kB / 313.2 MB, free: 8.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009805/0.3326, allocations: 372 kB / 313.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3327, allocations: 0 / 313.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3327, allocations: 0 / 313.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.3327, allocations: 0 / 313.5 MB, free: 7.66 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.003111/0.3359, allocations: 0.6902 MB / 314.2 MB, free: 6.922 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.336, allocations: 8.031 kB / 314.2 MB, free: 6.914 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003469/0.3363, allocations: 79.44 kB / 314.3 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.3365, allocations: 47.47 kB / 314.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007749/0.3373, allocations: 305.3 kB / 314.6 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.403e-05/0.3374, allocations: 28.94 kB / 314.7 MB, free: 6.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001746/0.3376, allocations: 36 kB / 314.7 MB, free: 6.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/0.3398, allocations: 450.3 kB / 315.1 MB, free: 5.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.3399, allocations: 0 / 315.1 MB, free: 5.93 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.34, allocations: 16 kB / 315.2 MB, free: 5.914 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.34, allocations: 8 kB / 315.2 MB, free: 5.906 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.3427, allocations: 475.7 kB / 315.6 MB, free: 5.441 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005787/0.3485, allocations: 1.316 MB / 316.9 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001982/0.3505, allocations: 376.5 kB / 317.3 MB, free: 3.672 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.919e-05/0.3507, allocations: 4.375 kB / 317.3 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/0.3507, allocations: 38.94 kB / 317.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 8.065e-06/0.3508, allocations: 0 / 317.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.01236/0.3631, allocations: 2.37 MB / 319.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.3632, allocations: 59.78 kB / 319.8 MB, free: 1.043 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.3637, allocations: 262.4 kB / 320 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.3638, allocations: 45.7 kB / 320.1 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.364, allocations: 172.6 kB / 320.3 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002571/0.3643, allocations: 165.8 kB / 320.4 MB, free: 400 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.973e-05/0.3643, allocations: 12 kB / 320.4 MB, free: 388 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3645, allocations: 334.8 kB / 320.8 MB, free: 44 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009585/0.3655, allocations: 241.1 kB / 321 MB, free: 15.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009928/0.3665, allocations: 303.2 kB / 321.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007928/0.3673, allocations: 210.1 kB / 321.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3673, allocations: 0 / 321.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002987/0.3703, allocations: 0.7742 MB / 322.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3704, allocations: 4 kB / 322.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3704, allocations: 4 kB / 322.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001943/0.3724, allocations: 0.5452 MB / 322.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006358/0.3731, allocations: 75.89 kB / 322.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004715/0.3778, allocations: 3.469 MB / 326.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3789, allocations: 104.2 kB / 326.5 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.6e-05/0.3791, allocations: 19.98 kB / 326.5 MB, free: 9.973 MB / 266.7 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003703/0.3794, allocations: 169.7 kB / 326.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.3796, allocations: 31.62 kB / 326.7 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002795/0.3824, allocations: 0.7326 MB / 327.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.3824, allocations: 8 kB / 327.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3825, allocations: 0 / 327.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.3825, allocations: 3.984 kB / 327.4 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003958/0.3865, allocations: 1.278 MB / 328.7 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.3865, allocations: 4 kB / 328.7 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005979/0.3871, allocations: 67.89 kB / 328.8 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00188/0.389, allocations: 0.5177 MB / 329.3 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.3892, allocations: 19.92 kB / 329.3 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004347/0.3935, allocations: 3.45 MB / 332.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3936, allocations: 4.062 kB / 332.8 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003685/0.3973, allocations: 1.047 MB / 333.8 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.3977, allocations: 156.7 kB / 334 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.3978, allocations: 19.98 kB / 334 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009177/0.3988, allocations: 99.91 kB / 334.1 MB, free: 1.945 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000358/0.3992, allocations: 100.2 kB / 334.2 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.859e-05/0.3992, allocations: 23.97 kB / 334.2 MB, free: 1.824 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.3995, allocations: 178 kB / 334.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3996, allocations: 0 / 334.4 MB, free: 1.648 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000867/0.4004, allocations: 128 kB / 334.5 MB, free: 1.523 MB / 266.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.006031/0.4065, allocations: 1.62 MB / 336.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.4102, allocations: 0.81 MB / 336.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.4103, allocations: 0 / 336.9 MB, free: 15.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002221/0.4125, allocations: 0.5488 MB / 337.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.4136, allocations: 49.17 kB / 337.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.4274, allocations: 2.873 MB / 340.4 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007806/0.4283, allocations: 0.8113 MB / 341.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004404/0.4288, allocations: 35.28 kB / 341.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.4292, allocations: 107.4 kB / 341.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4292, allocations: 0 / 341.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05216/0.4814, allocations: 11.99 MB / 353.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002972/0.4818, allocations: 229.4 kB / 353.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.18/3.662, allocations: 0 / 353.6 MB, free: 14.27 MB / 298.7 MB "" Variables in the reference:time,clutch.phi_rel,clutch.w_rel,engine.phi,engine.w,load.phi,load.w,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward Variables in the result:brake.a,brake.a_relfric,brake.cgeo,brake.f_normalized,brake.flange_a.phi,brake.flange_a.tau,brake.flange_b.phi,brake.flange_b.tau,brake.fn,brake.fn_max,brake.free,brake.locked,brake.lossPower,brake.mode,brake.mue0,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.phi,brake.phi_support,brake.sa,brake.startBackward,brake.startForward,brake.tau,brake.tau0,brake.tau0_max,brake.useHeatPort,brake.useSupport,brake.w,brake.w_relfric,brake.w_small,clutch.a_rel,clutch.a_relfric,clutch.cgeo,clutch.f_normalized,clutch.flange_a.phi,clutch.flange_a.tau,clutch.flange_b.phi,clutch.flange_b.tau,clutch.fn,clutch.fn_max,clutch.free,clutch.locked,clutch.lossPower,clutch.mode,clutch.mue0,clutch.mue_pos[1,1],clutch.mue_pos[1,2],clutch.peak,clutch.phi_nominal,clutch.phi_rel,clutch.sa,clutch.startBackward,clutch.startForward,clutch.stateSelect,clutch.tau,clutch.tau0,clutch.tau0_max,clutch.useHeatPort,clutch.w_rel,clutch.w_relfric,clutch.w_small,const1.k,const1.y,der(brake.phi),der(brake.w),der(clutch.phi_rel),der(clutch.w_rel),der(engine.phi),der(engine.w),der(load.w),der(quadraticSpeedDependentTorque.phi),engine.J,engine.a,engine.flange_a.phi,engine.flange_a.tau,engine.flange_b.phi,engine.flange_b.tau,engine.phi,engine.stateSelect,engine.w,feedback.u1,feedback.u2,feedback.y,gearRatio,idealPlanetary.carrier.phi,idealPlanetary.carrier.tau,idealPlanetary.ratio,idealPlanetary.ring.phi,idealPlanetary.ring.tau,idealPlanetary.sun.phi,idealPlanetary.sun.tau,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,quadraticSpeedDependentTorque.TorqueDirection,quadraticSpeedDependentTorque.flange.phi,quadraticSpeedDependentTorque.flange.tau,quadraticSpeedDependentTorque.phi,quadraticSpeedDependentTorque.phi_support,quadraticSpeedDependentTorque.tau,quadraticSpeedDependentTorque.tau_nominal,quadraticSpeedDependentTorque.useSupport,quadraticSpeedDependentTorque.w,quadraticSpeedDependentTorque.w_nominal,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time,torqueStep.flange.phi,torqueStep.flange.tau,torqueStep.offsetTorque,torqueStep.phi,torqueStep.phi_support,torqueStep.startTime,torqueStep.stepTorque,torqueStep.tau,torqueStep.useSupport,wEngine,wLoad