Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001151/0.001151, allocations: 96.7 kB / 16.5 MB, free: 6.641 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.00114/0.00114, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.587/1.587, allocations: 205.1 MB / 223.3 MB, free: 12.38 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.001161/0.001161, allocations: 51.94 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 46.63 MB / 326 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004432/0.1142, allocations: 2.84 MB / 328.8 MB, free: 2.027 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.1158, allocations: 0.9396 MB / 329.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.116, allocations: 4 kB / 329.7 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.1162, allocations: 47.62 kB / 329.8 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.1164, allocations: 95.3 kB / 329.9 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.1168, allocations: 171.8 kB / 330 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004501/0.1173, allocations: 0.5461 MB / 330.6 MB, free: 224 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.1175, allocations: 98.59 kB / 330.7 MB, free: 120 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.1178, allocations: 227.1 kB / 330.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.118, allocations: 255 kB / 331.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.457e-05/0.1181, allocations: 28 kB / 331.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.1183, allocations: 71.95 kB / 331.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.1184, allocations: 95.62 kB / 331.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.1186, allocations: 199 kB / 331.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005024/0.1191, allocations: 0.518 MB / 332.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1191, allocations: 0 / 332.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1191, allocations: 0 / 332.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1191, allocations: 0 / 332.1 MB, free: 14.74 MB / 286.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.00138/0.1205, allocations: 0.7369 MB / 332.8 MB, free: 13.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1206, allocations: 8.031 kB / 332.8 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.1207, allocations: 40.47 kB / 332.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.1211, allocations: 302.6 kB / 333.1 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.1211, allocations: 21.38 kB / 333.2 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.1212, allocations: 40.36 kB / 333.2 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000883/0.1221, allocations: 446.6 kB / 333.6 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.1222, allocations: 11.91 kB / 333.7 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.1222, allocations: 8 kB / 333.7 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.1222, allocations: 12 kB / 333.7 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009994/0.1232, allocations: 459.7 kB / 334.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.1255, allocations: 1.277 MB / 335.4 MB, free: 11.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008801/0.1264, allocations: 359.7 kB / 335.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.127, allocations: 257.2 kB / 336 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.837e-05/0.1271, allocations: 8.312 kB / 336 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.1271, allocations: 38.94 kB / 336 MB, free: 10.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.554e-06/0.1271, allocations: 0 / 336 MB, free: 10.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005414/0.1325, allocations: 2.252 MB / 338.3 MB, free: 8.176 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.1326, allocations: 55.84 kB / 338.4 MB, free: 8.109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002582/0.1329, allocations: 254.6 kB / 338.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.1329, allocations: 41.69 kB / 338.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1331, allocations: 168.6 kB / 338.8 MB, free: 7.637 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.1332, allocations: 169.7 kB / 339 MB, free: 7.469 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.1334, allocations: 102.1 kB / 339.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1335, allocations: 342.8 kB / 339.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004916/0.134, allocations: 233 kB / 339.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005714/0.1346, allocations: 307.1 kB / 339.9 MB, free: 6.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/0.1354, allocations: 423.7 kB / 340.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1354, allocations: 0 / 340.3 MB, free: 6.043 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001575/0.137, allocations: 0.7548 MB / 341.1 MB, free: 5.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.137, allocations: 8.031 kB / 341.1 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1371, allocations: 4 kB / 341.1 MB, free: 5.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.1383, allocations: 0.5368 MB / 341.6 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.1386, allocations: 75.89 kB / 341.7 MB, free: 4.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/0.1419, allocations: 3.459 MB / 345.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/0.1424, allocations: 76.16 kB / 345.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.1424, allocations: 23.92 kB / 345.3 MB, free: 0.793 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.0002561/0.1427, allocations: 177.3 kB / 345.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-05/0.1428, allocations: 39.56 kB / 345.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/0.1444, allocations: 0.717 MB / 346.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1444, allocations: 8 kB / 346.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1444, allocations: 0 / 346.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1444, allocations: 7.922 kB / 346.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.1466, allocations: 1.259 MB / 347.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.1467, allocations: 4 kB / 347.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.147, allocations: 55.91 kB / 347.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.148, allocations: 0.5294 MB / 348.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.1481, allocations: 15.98 kB / 348.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.1509, allocations: 3.436 MB / 351.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1509, allocations: 4.031 kB / 351.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.153, allocations: 1.028 MB / 352.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/0.1532, allocations: 156.7 kB / 352.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.1533, allocations: 16 kB / 352.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004776/0.1538, allocations: 67.84 kB / 352.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.1541, allocations: 96.27 kB / 352.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.1541, allocations: 19.98 kB / 352.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.1543, allocations: 182 kB / 353.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1543, allocations: 0 / 353.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006256/0.155, allocations: 128 kB / 353.2 MB, free: 8.426 MB / 302.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.0003306/0.1553, allocations: 139.1 kB / 353.3 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.1572, allocations: 0.8057 MB / 354.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1572, allocations: 0 / 354.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009811/0.1582, allocations: 0.5411 MB / 354.7 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005537/0.1587, allocations: 56.47 kB / 354.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.161, allocations: 1.124 MB / 355.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.1615, allocations: 0.7996 MB / 356.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.1616, allocations: 31.28 kB / 356.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/0.1617, allocations: 31.42 kB / 356.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of SimCode: time 1.223e-06/0.1617, allocations: 4 kB / 356.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of Templates: time 0.01622/0.178, allocations: 9.336 MB / 366.1 MB, free: 11.44 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)