Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 107.3 kB / 15.23 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001875, allocations: 194.9 kB / 16.14 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.1 MB / 222 MB, free: 4.961 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 47.92 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2847, allocations: 46.63 MB / 324.7 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005181/0.29, allocations: 2.843 MB / 327.5 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.292, allocations: 0.9375 MB / 328.5 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.2923, allocations: 8.531 kB / 328.5 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002585/0.2925, allocations: 41.06 kB / 328.5 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.2928, allocations: 99.33 kB / 328.6 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.2932, allocations: 181.2 kB / 328.8 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000706/0.294, allocations: 0.5349 MB / 329.3 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.2942, allocations: 100.2 kB / 329.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.2946, allocations: 223.5 kB / 329.6 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003914/0.295, allocations: 259 kB / 329.9 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-05/0.2951, allocations: 27.31 kB / 329.9 MB, free: 13.92 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.2953, allocations: 80.22 kB / 330 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.2955, allocations: 96.2 kB / 330.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.2958, allocations: 204.4 kB / 330.3 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005705/0.2963, allocations: 0.4976 MB / 330.8 MB, free: 13.3 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.2964, allocations: 1.062 kB / 330.8 MB, free: 13.3 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2964, allocations: 3.938 kB / 330.8 MB, free: 13.3 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.2964, allocations: 0 / 330.8 MB, free: 13.3 MB / 270.1 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.001547/0.2979, allocations: 0.7325 MB / 331.5 MB, free: 12.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.298, allocations: 8.812 kB / 331.5 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.2981, allocations: 44.94 kB / 331.6 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.2987, allocations: 305 kB / 331.9 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.798e-05/0.2987, allocations: 27.75 kB / 331.9 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-05/0.2988, allocations: 34.66 kB / 331.9 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.2999, allocations: 448 kB / 332.4 MB, free: 12.06 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.2999, allocations: 5.312 kB / 332.4 MB, free: 12.05 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.222e-05/0.3, allocations: 14.34 kB / 332.4 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.3, allocations: 8.156 kB / 332.4 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.3011, allocations: 458.2 kB / 332.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.3035, allocations: 1.268 MB / 334.1 MB, free: 10.58 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/0.3044, allocations: 368.4 kB / 334.5 MB, free: 10.21 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.3049, allocations: 261.2 kB / 334.7 MB, free: 9.953 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.267e-05/0.305, allocations: 4.375 kB / 334.7 MB, free: 9.949 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.305, allocations: 38.94 kB / 334.8 MB, free: 9.902 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.305, allocations: 0 / 334.8 MB, free: 9.902 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005916/0.3109, allocations: 2.264 MB / 337 MB, free: 7.504 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.311, allocations: 55.84 kB / 337.1 MB, free: 7.438 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.3113, allocations: 242.6 kB / 337.3 MB, free: 7.191 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.3114, allocations: 49.7 kB / 337.4 MB, free: 7.137 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3115, allocations: 164.7 kB / 337.5 MB, free: 6.973 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.3116, allocations: 173.6 kB / 337.7 MB, free: 6.801 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.3118, allocations: 94.23 kB / 337.8 MB, free: 6.703 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.312, allocations: 342.8 kB / 338.1 MB, free: 6.359 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004901/0.3125, allocations: 229 kB / 338.3 MB, free: 6.137 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005114/0.3131, allocations: 303.2 kB / 338.6 MB, free: 5.82 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007517/0.3138, allocations: 423.7 kB / 339.1 MB, free: 5.387 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3138, allocations: 0 / 339.1 MB, free: 5.387 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001641/0.3155, allocations: 0.7586 MB / 339.8 MB, free: 4.613 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.3155, allocations: 4 kB / 339.8 MB, free: 4.609 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.3155, allocations: 0 / 339.8 MB, free: 4.609 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.3167, allocations: 0.5529 MB / 340.4 MB, free: 4.047 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.317, allocations: 79.89 kB / 340.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00309/0.3201, allocations: 3.451 MB / 343.9 MB, free: 232 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.3207, allocations: 79.97 kB / 344 MB, free: 152 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.3207, allocations: 19.94 kB / 344 MB, free: 132 kB / 270.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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003186/0.3211, allocations: 178.2 kB / 344.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.755e-05/0.3212, allocations: 31.62 kB / 344.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.3228, allocations: 0.7209 MB / 344.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.3228, allocations: 8 kB / 344.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3228, allocations: 0 / 344.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.3228, allocations: 7.922 kB / 344.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3251, allocations: 1.263 MB / 346.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.3251, allocations: 0 / 346.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.3255, allocations: 55.91 kB / 346.3 MB, free: 13.78 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.3268, allocations: 0.5256 MB / 346.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.234e-05/0.3269, allocations: 19.97 kB / 346.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.3299, allocations: 3.436 MB / 350.2 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3299, allocations: 0 / 350.2 MB, free: 9.5 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3322, allocations: 1.032 MB / 351.3 MB, free: 8.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.3325, allocations: 156.7 kB / 351.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3326, allocations: 16 kB / 351.4 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.3331, allocations: 71.84 kB / 351.5 MB, free: 8.184 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.3333, allocations: 88.28 kB / 351.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.35e-05/0.3334, allocations: 27.91 kB / 351.6 MB, free: 8.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.3336, allocations: 178 kB / 351.8 MB, free: 7.895 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3336, allocations: 0 / 351.8 MB, free: 7.895 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000791/0.3344, allocations: 128 kB / 351.9 MB, free: 7.77 MB / 286.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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003207/0.3347, allocations: 135.2 kB / 352.1 MB, free: 7.629 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.3364, allocations: 0.8019 MB / 352.9 MB, free: 6.805 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3365, allocations: 3.938 kB / 352.9 MB, free: 6.801 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009646/0.3374, allocations: 0.5373 MB / 353.4 MB, free: 6.234 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005458/0.338, allocations: 56.48 kB / 353.5 MB, free: 6.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.3405, allocations: 1.128 MB / 354.6 MB, free: 5.031 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.341, allocations: 0.8035 MB / 355.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.3412, allocations: 35.27 kB / 355.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3413, allocations: 31.42 kB / 355.4 MB, free: 4.129 MB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3413, allocations: 0 / 355.4 MB, free: 4.129 MB / 286.1 MB Notification: Performance of Templates: time 0.01776/0.3591, allocations: 9.339 MB / 364.8 MB, free: 10.78 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)