Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.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.007744/0.007744, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001298/0.001299, allocations: 191.5 kB / 16.67 MB, free: 5.523 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.537/1.537, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001206/0.001206, allocations: 55.88 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1116, allocations: 46.61 MB / 373.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004982/0.1166, allocations: 2.805 MB / 376 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.1187, allocations: 0.9396 MB / 376.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.1189, allocations: 8 kB / 376.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.1192, allocations: 63.38 kB / 377 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.1194, allocations: 103 kB / 377.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004804/0.1199, allocations: 219.6 kB / 377.3 MB, free: 436 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.264/0.3839, allocations: 0.5621 MB / 377.8 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.3843, allocations: 114.8 kB / 378 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005304/0.3848, allocations: 246.5 kB / 378.2 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.3852, allocations: 272.2 kB / 378.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.623e-05/0.3853, allocations: 44 kB / 378.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.3855, allocations: 94.62 kB / 378.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.3857, allocations: 117.1 kB / 378.7 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002366/0.3859, allocations: 216 kB / 378.9 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.3867, allocations: 0.5349 MB / 379.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3867, allocations: 0.9375 kB / 379.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3867, allocations: 3.344 kB / 379.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.3867, allocations: 3.094 kB / 379.5 MB, free: 9.613 MB / 318.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.001499/0.3882, allocations: 0.7326 MB / 380.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3883, allocations: 9.562 kB / 380.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3884, allocations: 41.81 kB / 380.2 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/0.3889, allocations: 307.1 kB / 380.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-05/0.389, allocations: 29.47 kB / 380.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.3891, allocations: 42.75 kB / 380.6 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.3901, allocations: 438.8 kB / 381 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.441e-05/0.3901, allocations: 6.797 kB / 381.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.3902, allocations: 12.84 kB / 381.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3902, allocations: 8.656 kB / 381.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.3912, allocations: 460.1 kB / 381.5 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.3936, allocations: 1.255 MB / 382.8 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009597/0.3946, allocations: 367.1 kB / 383.1 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005268/0.3951, allocations: 249.8 kB / 383.4 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.3952, allocations: 4.969 kB / 383.4 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.3952, allocations: 40.09 kB / 383.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.154e-06/0.3952, allocations: 0 / 383.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005672/0.4009, allocations: 2.252 MB / 385.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.401, allocations: 66.44 kB / 385.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.4013, allocations: 250.9 kB / 386 MB, free: 6.762 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.4013, allocations: 44.34 kB / 386 MB, free: 6.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.282e-05/0.4014, allocations: 164.8 kB / 386.2 MB, free: 6.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.4016, allocations: 173 kB / 386.4 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.4017, allocations: 98.09 kB / 386.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.177e-05/0.4018, allocations: 344.7 kB / 386.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.4024, allocations: 228.6 kB / 387 MB, free: 5.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.4029, allocations: 304.9 kB / 387.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/0.4037, allocations: 423.2 kB / 387.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4038, allocations: 4 kB / 387.7 MB, free: 5.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001683/0.4054, allocations: 0.7561 MB / 388.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.4055, allocations: 5.234 kB / 388.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.4055, allocations: 5.438 kB / 388.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/0.4066, allocations: 0.5498 MB / 389 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.407, allocations: 71.97 kB / 389.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.4094, allocations: 3.659 MB / 392.8 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005226/0.4099, allocations: 72.16 kB / 392.8 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.41, allocations: 19.73 kB / 392.9 MB, free: 1.715 MB / 318.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.0002242/0.4102, allocations: 166.7 kB / 393 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.4103, allocations: 32.19 kB / 393.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.4119, allocations: 0.7276 MB / 393.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.412, allocations: 5.953 kB / 393.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.412, allocations: 5 kB / 393.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.412, allocations: 2.438 kB / 393.8 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/0.4143, allocations: 1.264 MB / 395.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4144, allocations: 0 / 395.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.4147, allocations: 59.67 kB / 395.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/0.4158, allocations: 0.5305 MB / 395.7 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.246e-05/0.4159, allocations: 22.34 kB / 395.7 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003722/0.4197, allocations: 3.62 MB / 399.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4197, allocations: 1.984 kB / 399.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.4219, allocations: 1.033 MB / 400.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/0.4221, allocations: 159.8 kB / 400.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.4222, allocations: 14.48 kB / 400.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.4227, allocations: 73.78 kB / 400.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.423, allocations: 96.06 kB / 400.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.4231, allocations: 19.55 kB / 400.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.4233, allocations: 179.4 kB / 400.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4233, allocations: 1.469 kB / 400.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008751/0.4242, allocations: 122.1 kB / 401 MB, free: 12.2 MB / 334.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.0003296/0.4245, allocations: 155.1 kB / 401.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001911/0.4264, allocations: 0.8084 MB / 401.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4264, allocations: 0 / 401.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009799/0.4274, allocations: 0.5363 MB / 402.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.428, allocations: 67.78 kB / 402.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.4301, allocations: 0.9566 MB / 403.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.4305, allocations: 0.8013 MB / 404.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.4307, allocations: 39.86 kB / 404.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.062e-05/0.4308, allocations: 32.53 kB / 404.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4308, allocations: 0 / 404.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Templates: time 0.01722/0.448, allocations: 10.05 MB / 414.4 MB, free: 4.348 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)