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.009427/0.009427, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001944/0.001945, allocations: 189.4 kB / 16.67 MB, free: 5.875 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.589/1.589, allocations: 205.1 MB / 222.5 MB, free: 4.469 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.001173/0.001173, allocations: 54.53 kB / 326.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 46.63 MB / 373.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004564/0.1143, allocations: 2.798 MB / 376 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1163, allocations: 0.9396 MB / 376.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1165, allocations: 4 kB / 376.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.1168, allocations: 63.38 kB / 377 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.1171, allocations: 103.1 kB / 377.1 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005428/0.1177, allocations: 211.6 kB / 377.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005772/0.1182, allocations: 0.5696 MB / 377.9 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.1185, allocations: 122.7 kB / 378 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.1188, allocations: 251.2 kB / 378.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.1191, allocations: 267 kB / 378.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.229e-05/0.1192, allocations: 44 kB / 378.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.1194, allocations: 99.94 kB / 378.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.1195, allocations: 111.6 kB / 378.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.1197, allocations: 219 kB / 378.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005837/0.1203, allocations: 0.5408 MB / 379.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1203, allocations: 0 / 379.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1204, allocations: 0 / 379.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1204, allocations: 8 kB / 379.5 MB, free: 11.08 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.001413/0.1218, allocations: 0.7365 MB / 380.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1218, allocations: 15.97 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.122, allocations: 44.66 kB / 380.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006211/0.1226, allocations: 314.7 kB / 380.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/0.1226, allocations: 21.38 kB / 380.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.1228, allocations: 36.38 kB / 380.7 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.1237, allocations: 446.6 kB / 381.1 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.1238, allocations: 8 kB / 381.1 MB, free: 9.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.785e-05/0.1238, allocations: 12 kB / 381.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.1239, allocations: 8 kB / 381.1 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.1249, allocations: 459.7 kB / 381.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.1273, allocations: 1.254 MB / 382.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.1281, allocations: 367.7 kB / 383.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00048/0.1286, allocations: 253.2 kB / 383.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.1287, allocations: 8.359 kB / 383.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.1287, allocations: 34.94 kB / 383.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.974e-06/0.1288, allocations: 0 / 383.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005184/0.1339, allocations: 2.265 MB / 385.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.134, allocations: 55.84 kB / 385.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.1343, allocations: 254.6 kB / 386 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.1343, allocations: 45.69 kB / 386.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1345, allocations: 176.9 kB / 386.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.1346, allocations: 162.6 kB / 386.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.1348, allocations: 102.2 kB / 386.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.135, allocations: 342.8 kB / 386.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004883/0.1355, allocations: 233 kB / 387.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.136, allocations: 307.1 kB / 387.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007883/0.1368, allocations: 423.7 kB / 387.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1368, allocations: 4 kB / 387.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001572/0.1384, allocations: 0.7549 MB / 388.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1384, allocations: 4 kB / 388.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1384, allocations: 4 kB / 388.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.1395, allocations: 0.5374 MB / 389.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.1398, allocations: 71.89 kB / 389.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.1428, allocations: 3.669 MB / 392.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.1433, allocations: 75.83 kB / 392.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.1433, allocations: 24.09 kB / 392.9 MB, free: 12.9 MB / 334.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.0002298/0.1436, allocations: 165.7 kB / 393.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.53e-05/0.1437, allocations: 31.81 kB / 393.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.1452, allocations: 0.7247 MB / 393.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1453, allocations: 4 kB / 393.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1453, allocations: 7.938 kB / 393.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1453, allocations: 3.984 kB / 393.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/0.1474, allocations: 1.262 MB / 395.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.1475, allocations: 0 / 395.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.1477, allocations: 55.91 kB / 395.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009889/0.1487, allocations: 0.5332 MB / 395.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.073e-05/0.1488, allocations: 19.97 kB / 395.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.1518, allocations: 3.626 MB / 399.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1518, allocations: 0 / 399.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.1537, allocations: 1.037 MB / 400.4 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.1539, allocations: 156.8 kB / 400.5 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.154, allocations: 20 kB / 400.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004629/0.1545, allocations: 71.84 kB / 400.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.1547, allocations: 96.22 kB / 400.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/0.1548, allocations: 19.98 kB / 400.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.155, allocations: 182 kB / 400.9 MB, free: 4.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.155, allocations: 0 / 400.9 MB, free: 4.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005492/0.1555, allocations: 124 kB / 401 MB, free: 4.328 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.0002779/0.1558, allocations: 143.1 kB / 401.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.1575, allocations: 0.8098 MB / 402 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1575, allocations: 0 / 402 MB, free: 3.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.1584, allocations: 0.5409 MB / 402.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.1589, allocations: 64.55 kB / 402.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.1609, allocations: 0.9715 MB / 403.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.1612, allocations: 0.7957 MB / 404.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.1614, allocations: 39.27 kB / 404.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.88e-05/0.1615, allocations: 35.42 kB / 404.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1615, allocations: 0 / 404.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of Templates: time 0.01546/0.1769, allocations: 10.05 MB / 414.5 MB, free: 6.746 MB / 350.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)