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.00575/0.00575, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001318/0.001318, allocations: 197.1 kB / 16.68 MB, free: 5.969 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.595/1.595, 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.001303/0.001303, allocations: 51.92 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 46.61 MB / 373.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004827/0.122, allocations: 2.805 MB / 376 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1242, allocations: 0.9435 MB / 376.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000407/0.1247, allocations: 7.938 kB / 376.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.125, allocations: 63.38 kB / 377 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.1254, allocations: 103.1 kB / 377.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000715/0.1262, allocations: 219.6 kB / 377.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2654/0.3916, allocations: 0.5619 MB / 377.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004049/0.3921, allocations: 111 kB / 378 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005852/0.3926, allocations: 251 kB / 378.2 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005414/0.3932, allocations: 269.2 kB / 378.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.3933, allocations: 47.94 kB / 378.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003499/0.3937, allocations: 101.1 kB / 378.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.3939, allocations: 111.9 kB / 378.7 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.3941, allocations: 220 kB / 378.9 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009375/0.3951, allocations: 0.5302 MB / 379.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3951, allocations: 2.75 kB / 379.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.3951, allocations: 1.375 kB / 379.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.981e-05/0.3951, allocations: 0 / 379.5 MB, free: 9.586 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.001647/0.3968, allocations: 0.7312 MB / 380.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.3968, allocations: 10.03 kB / 380.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.397, allocations: 41.91 kB / 380.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.3976, allocations: 311.3 kB / 380.5 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.3977, allocations: 27.06 kB / 380.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.3978, allocations: 39.53 kB / 380.6 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.3989, allocations: 443 kB / 381 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.3989, allocations: 6.047 kB / 381.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.399, allocations: 14.47 kB / 381.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.399, allocations: 7.906 kB / 381.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.4001, allocations: 458.8 kB / 381.5 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.4028, allocations: 1.255 MB / 382.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008752/0.4037, allocations: 370.8 kB / 383.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004653/0.4041, allocations: 254.2 kB / 383.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.4042, allocations: 4.25 kB / 383.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.4042, allocations: 39.84 kB / 383.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 4.217e-06/0.4042, allocations: 0 / 383.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005393/0.4096, allocations: 2.25 MB / 385.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.4097, allocations: 60.89 kB / 385.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.41, allocations: 257.8 kB / 386 MB, free: 6.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.4101, allocations: 40.39 kB / 386 MB, free: 6.688 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.4102, allocations: 164.4 kB / 386.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.4103, allocations: 169.7 kB / 386.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.4105, allocations: 98.75 kB / 386.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.4106, allocations: 344.6 kB / 386.8 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.4112, allocations: 233.6 kB / 387 MB, free: 5.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005773/0.4118, allocations: 305.1 kB / 387.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000865/0.4126, allocations: 422.2 kB / 387.7 MB, free: 5.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.4126, allocations: 1.594 kB / 387.7 MB, free: 5.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001713/0.4144, allocations: 0.7559 MB / 388.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.4144, allocations: 5.922 kB / 388.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4144, allocations: 1.25 kB / 388.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.4156, allocations: 0.5477 MB / 389 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003169/0.416, allocations: 78 kB / 389.1 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.4185, allocations: 3.661 MB / 392.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.4191, allocations: 75.89 kB / 392.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-05/0.4192, allocations: 19.41 kB / 392.9 MB, free: 1.68 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.0002903/0.4195, allocations: 160.5 kB / 393 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.4196, allocations: 32.91 kB / 393.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.4213, allocations: 0.7232 MB / 393.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4213, allocations: 5.156 kB / 393.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.4213, allocations: 1.828 kB / 393.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4213, allocations: 1.969 kB / 393.8 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/0.4238, allocations: 1.267 MB / 395.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4238, allocations: 0.625 kB / 395.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.4241, allocations: 58.88 kB / 395.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.4253, allocations: 0.5307 MB / 395.6 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-05/0.4254, allocations: 22.59 kB / 395.7 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/0.4287, allocations: 3.624 MB / 399.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4287, allocations: 0 / 399.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.4308, allocations: 1.035 MB / 400.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.4311, allocations: 160.9 kB / 400.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.947e-05/0.4312, allocations: 14.88 kB / 400.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/0.4317, allocations: 73.45 kB / 400.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.432, allocations: 91.64 kB / 400.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.432, allocations: 20.19 kB / 400.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002865/0.4323, allocations: 182.9 kB / 400.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4323, allocations: 7.938 kB / 400.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007137/0.433, allocations: 124 kB / 401 MB, free: 12.16 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.0003092/0.4334, allocations: 142.7 kB / 401.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.4352, allocations: 0.8048 MB / 401.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4352, allocations: 1.281 kB / 401.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.4362, allocations: 0.5407 MB / 402.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.4368, allocations: 65.03 kB / 402.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.4389, allocations: 0.9601 MB / 403.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.4394, allocations: 0.8061 MB / 404.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001477/0.4395, allocations: 30.7 kB / 404.3 MB, free: 10 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.4396, allocations: 32.67 kB / 404.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4396, allocations: 0 / 404.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of Templates: time 0.01708/0.4567, allocations: 10.46 MB / 414.8 MB, free: 3.906 MB / 334.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)