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.001235/0.001235, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.001353/0.001353, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.584/1.584, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001519/0.001519, allocations: 51.92 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 46.62 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004571/0.1113, allocations: 2.798 MB / 329.4 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.1135, allocations: 0.9473 MB / 330.4 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.1137, allocations: 4 kB / 330.4 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.114, allocations: 59.38 kB / 330.4 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.1143, allocations: 111 kB / 330.5 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.1148, allocations: 211.6 kB / 330.7 MB, free: 320 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000581/0.1154, allocations: 0.5658 MB / 331.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.1156, allocations: 114.7 kB / 331.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002803/0.1159, allocations: 243.3 kB / 331.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003526/0.1163, allocations: 275 kB / 331.9 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.386e-05/0.1163, allocations: 44 kB / 332 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.1166, allocations: 91.95 kB / 332.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.1167, allocations: 115.6 kB / 332.2 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.117, allocations: 211 kB / 332.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006963/0.1177, allocations: 0.5298 MB / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1177, allocations: 4 kB / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.1177, allocations: 0 / 332.9 MB, free: 14.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.1177, allocations: 0 / 332.9 MB, free: 14.13 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.001694/0.1194, allocations: 0.7368 MB / 333.6 MB, free: 13.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.015e-05/0.1195, allocations: 8.031 kB / 333.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.1197, allocations: 40.47 kB / 333.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.1201, allocations: 302.6 kB / 334 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.1201, allocations: 25.38 kB / 334 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-05/0.1202, allocations: 40.36 kB / 334.1 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008917/0.1211, allocations: 442.6 kB / 334.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.1212, allocations: 7.906 kB / 334.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.1212, allocations: 12 kB / 334.5 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.1213, allocations: 8 kB / 334.5 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009846/0.1222, allocations: 463.6 kB / 335 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.1246, allocations: 1.273 MB / 336.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008407/0.1254, allocations: 367.6 kB / 336.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1259, allocations: 253.2 kB / 336.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.126, allocations: 8.375 kB / 336.9 MB, free: 10 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.126, allocations: 34.94 kB / 336.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.953e-06/0.126, allocations: 0 / 336.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005376/0.1314, allocations: 2.256 MB / 339.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.1315, allocations: 59.84 kB / 339.2 MB, free: 7.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/0.1318, allocations: 254.6 kB / 339.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.1318, allocations: 41.69 kB / 339.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.1321, allocations: 160.6 kB / 339.6 MB, free: 7.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1322, allocations: 173.7 kB / 339.8 MB, free: 6.859 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.1324, allocations: 106.1 kB / 339.9 MB, free: 6.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1326, allocations: 342.8 kB / 340.3 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005332/0.1331, allocations: 241 kB / 340.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006439/0.1338, allocations: 303.1 kB / 340.8 MB, free: 5.855 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008556/0.1346, allocations: 415.7 kB / 341.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1346, allocations: 0 / 341.2 MB, free: 5.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001655/0.1363, allocations: 0.7587 MB / 342 MB, free: 4.66 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.1363, allocations: 4 kB / 342 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1364, allocations: 4 kB / 342 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.1378, allocations: 0.5452 MB / 342.5 MB, free: 4.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003025/0.1381, allocations: 75.89 kB / 342.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003753/0.1419, allocations: 3.66 MB / 346.2 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005698/0.1424, allocations: 75.92 kB / 346.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.1425, allocations: 20 kB / 346.3 MB, free: 15.96 MB / 302.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.0002845/0.1428, allocations: 161.6 kB / 346.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.907e-05/0.1429, allocations: 43.52 kB / 346.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.1445, allocations: 0.7208 MB / 347.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.1445, allocations: 8 kB / 347.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1445, allocations: 0 / 347.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1445, allocations: 3.984 kB / 347.3 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.1467, allocations: 1.267 MB / 348.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1468, allocations: 0 / 348.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.147, allocations: 51.91 kB / 348.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/0.1481, allocations: 0.5372 MB / 349.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.1481, allocations: 19.97 kB / 349.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.1513, allocations: 3.614 MB / 352.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1514, allocations: 0 / 352.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.1535, allocations: 1.036 MB / 353.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002651/0.1537, allocations: 156.7 kB / 353.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.321e-05/0.1538, allocations: 20 kB / 354 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.1543, allocations: 75.88 kB / 354 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/0.1546, allocations: 92.27 kB / 354.1 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.1546, allocations: 27.98 kB / 354.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002299/0.1549, allocations: 182 kB / 354.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1549, allocations: 0 / 354.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007119/0.1556, allocations: 120 kB / 354.4 MB, free: 7.395 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.0003666/0.156, allocations: 139.1 kB / 354.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.1579, allocations: 0.833 MB / 355.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.1579, allocations: 4.25 kB / 355.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1589, allocations: 0.5332 MB / 356 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.1595, allocations: 52.47 kB / 356 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.1618, allocations: 0.9647 MB / 357 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.1622, allocations: 0.8035 MB / 357.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.1623, allocations: 31.23 kB / 357.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.101e-05/0.1624, allocations: 31.42 kB / 357.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1624, allocations: 4 kB / 357.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of Templates: time 0.0169/0.1794, allocations: 9.971 MB / 367.8 MB, free: 9.914 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)