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.0009998/0.0009998, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.01024/0.01024, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.782/1.782, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0004784/0.0004784, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2776, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002917/0.2806, allocations: 2.48 MB / 329.5 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.2828, allocations: 0.9282 MB / 330.4 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.283, allocations: 3.562 kB / 330.4 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002365/0.2833, allocations: 52.33 kB / 330.5 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.2836, allocations: 90.97 kB / 330.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.2841, allocations: 182.3 kB / 330.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006433/0.2847, allocations: 0.5391 MB / 331.3 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.285, allocations: 91.22 kB / 331.4 MB, free: 14.06 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.2853, allocations: 216.9 kB / 331.6 MB, free: 13.95 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.2857, allocations: 247.7 kB / 331.8 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.341e-05/0.2857, allocations: 23.56 kB / 331.9 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.2859, allocations: 76.66 kB / 331.9 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.2861, allocations: 92.58 kB / 332 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.2863, allocations: 215.9 kB / 332.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007118/0.2871, allocations: 0.4939 MB / 332.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.2871, allocations: 1.344 kB / 332.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2871, allocations: 0 / 332.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2871, allocations: 4 kB / 332.7 MB, free: 13.15 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.001449/0.2886, allocations: 0.6843 MB / 333.4 MB, free: 12.59 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.2886, allocations: 9.531 kB / 333.4 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.2887, allocations: 45.53 kB / 333.5 MB, free: 12.56 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.2892, allocations: 304.4 kB / 333.8 MB, free: 12.26 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.824e-05/0.2892, allocations: 27.91 kB / 333.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.914e-05/0.2893, allocations: 34.47 kB / 333.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009261/0.2903, allocations: 454.4 kB / 334.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.2903, allocations: 5.25 kB / 334.3 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.2903, allocations: 23.47 kB / 334.3 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2904, allocations: 7.906 kB / 334.3 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009788/0.2914, allocations: 469.2 kB / 334.8 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.2939, allocations: 1.289 MB / 336.1 MB, free: 10.15 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.2948, allocations: 380.4 kB / 336.4 MB, free: 9.77 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.2953, allocations: 257.2 kB / 336.7 MB, free: 9.516 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.2954, allocations: 4.375 kB / 336.7 MB, free: 9.512 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.2954, allocations: 42.94 kB / 336.7 MB, free: 9.461 MB / 270.1 MB Notification: Performance of pre-optimization done (n=45): time 2.514e-06/0.2954, allocations: 0 / 336.7 MB, free: 9.461 MB / 270.1 MB Notification: Performance of matching and sorting (n=49): time 0.005577/0.301, allocations: 2.381 MB / 339.1 MB, free: 6.945 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.3011, allocations: 59.84 kB / 339.2 MB, free: 6.875 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.3015, allocations: 254.5 kB / 339.4 MB, free: 6.617 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.3015, allocations: 41.7 kB / 339.5 MB, free: 6.57 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.3017, allocations: 172.6 kB / 339.6 MB, free: 6.398 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.3019, allocations: 165.7 kB / 339.8 MB, free: 6.234 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.522e-05/0.302, allocations: 45.69 kB / 339.8 MB, free: 6.184 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3022, allocations: 342.8 kB / 340.2 MB, free: 5.84 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005191/0.3027, allocations: 241 kB / 340.4 MB, free: 5.605 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005638/0.3033, allocations: 315.1 kB / 340.7 MB, free: 5.277 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008459/0.3041, allocations: 431.7 kB / 341.1 MB, free: 4.84 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3041, allocations: 0 / 341.1 MB, free: 4.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001696/0.3058, allocations: 0.7743 MB / 341.9 MB, free: 4.047 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.3059, allocations: 11.98 kB / 341.9 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3059, allocations: 0 / 341.9 MB, free: 4.035 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.3071, allocations: 0.5414 MB / 342.5 MB, free: 3.484 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.3074, allocations: 75.89 kB / 342.5 MB, free: 3.41 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003134/0.3106, allocations: 3.458 MB / 346 MB, free: 15.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006145/0.3112, allocations: 108.1 kB / 346.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.3113, allocations: 19.94 kB / 346.1 MB, free: 15.54 MB / 286.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.0003079/0.3116, allocations: 174.1 kB / 346.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.271e-05/0.3117, allocations: 31.62 kB / 346.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.3133, allocations: 0.7404 MB / 347.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3133, allocations: 4 kB / 347.1 MB, free: 14.57 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3133, allocations: 3.938 kB / 347.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.3133, allocations: 7.922 kB / 347.1 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.3155, allocations: 1.267 MB / 348.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.3155, allocations: 4 kB / 348.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.3158, allocations: 67.91 kB / 348.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.3169, allocations: 0.5255 MB / 348.9 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.317, allocations: 15.98 kB / 348.9 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.3201, allocations: 3.448 MB / 352.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3201, allocations: 0 / 352.4 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3221, allocations: 1.047 MB / 353.4 MB, free: 7.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000229/0.3223, allocations: 156.7 kB / 353.6 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.3224, allocations: 20 kB / 353.6 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.3229, allocations: 99.84 kB / 353.7 MB, free: 7.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.3232, allocations: 88.28 kB / 353.8 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.3232, allocations: 23.97 kB / 353.8 MB, free: 7.391 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.3234, allocations: 185.9 kB / 354 MB, free: 7.207 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3234, allocations: 0 / 354 MB, free: 7.207 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.3239, allocations: 128 kB / 354.1 MB, free: 7.082 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.0002853/0.3242, allocations: 135.2 kB / 354.3 MB, free: 6.941 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.3259, allocations: 0.8177 MB / 355.1 MB, free: 6.102 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3259, allocations: 3.938 kB / 355.1 MB, free: 6.098 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009117/0.3268, allocations: 0.5487 MB / 355.6 MB, free: 5.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.3273, allocations: 56.48 kB / 355.7 MB, free: 5.465 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.3294, allocations: 1.215 MB / 356.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.3298, allocations: 0.8035 MB / 357.7 MB, free: 3.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.33, allocations: 31.23 kB / 357.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.102e-05/0.3301, allocations: 27.42 kB / 357.8 MB, free: 3.332 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3301, allocations: 0 / 357.8 MB, free: 3.332 MB / 286.1 MB Notification: Performance of Templates: time 0.01506/0.3451, allocations: 9.269 MB / 367 MB, free: 10.05 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)