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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001697/0.001697, allocations: 190.7 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.102/1.102, allocations: 194.2 MB / 202.8 MB, free: 8.648 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001765/0.001765, allocations: 121.9 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.47e-06/5.5e-06, allocations: 0 / 297.6 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07109/0.07111, allocations: 44.48 MB / 342 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1987/0.2698, allocations: 75.21 MB / 417.3 MB, free: 19.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001708/0.27, allocations: 70.66 kB / 417.3 MB, free: 19.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01847/0.2885, allocations: 6.311 MB / 423.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.2886, allocations: 12 kB / 423.6 MB, free: 14.55 MB / 314.7 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.001192/0.2898, allocations: 0.6741 MB / 424.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2898, allocations: 12.03 kB / 424.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.2899, allocations: 43.44 kB / 424.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.2902, allocations: 288.3 kB / 424.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.2903, allocations: 12 kB / 424.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.398e-05/0.2904, allocations: 23.91 kB / 424.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000629/0.291, allocations: 360 kB / 425 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/0.2916, allocations: 343.1 kB / 425.4 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2916, allocations: 0 / 425.4 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.2917, allocations: 1.562 kB / 425.4 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2917, allocations: 12 kB / 425.4 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.2941, allocations: 1.246 MB / 426.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.2945, allocations: 250 kB / 426.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.2948, allocations: 203.2 kB / 427.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.925e-05/0.2949, allocations: 12.48 kB / 427.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.2949, allocations: 38.25 kB / 427.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 2.064e-06/0.2949, allocations: 0 / 427.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.003434/0.2984, allocations: 1.497 MB / 428.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.2984, allocations: 59.83 kB / 428.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.2986, allocations: 188.5 kB / 428.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.2986, allocations: 32.77 kB / 428.9 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.2987, allocations: 151.2 kB / 429.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.2988, allocations: 162.4 kB / 429.2 MB, free: 9.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.2989, allocations: 3.984 kB / 429.2 MB, free: 9.727 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.375e-05/0.2989, allocations: 340.8 kB / 429.5 MB, free: 9.398 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.2992, allocations: 180.1 kB / 429.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.2996, allocations: 243.4 kB / 430 MB, free: 9.125 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.3, allocations: 151.9 kB / 430.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3, allocations: 0 / 430.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001601/0.3016, allocations: 0.6588 MB / 430.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3016, allocations: 4 kB / 430.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.3017, allocations: 4 kB / 430.8 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009365/0.3026, allocations: 427.7 kB / 431.2 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.303, allocations: 78.52 kB / 431.3 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.3052, allocations: 3.356 MB / 434.6 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.3058, allocations: 100 kB / 434.7 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/0.3059, allocations: 23.48 kB / 434.7 MB, free: 4.605 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.3061, allocations: 136.3 kB / 434.9 MB, free: 4.469 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.3062, allocations: 35.53 kB / 434.9 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.3077, allocations: 0.6765 MB / 435.6 MB, free: 3.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3078, allocations: 4 kB / 435.6 MB, free: 3.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3078, allocations: 4 kB / 435.6 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3078, allocations: 3.984 kB / 435.6 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.3095, allocations: 1.062 MB / 436.7 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.3095, allocations: 0 / 436.7 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.3099, allocations: 67.47 kB / 436.7 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008172/0.3107, allocations: 409.4 kB / 437.1 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-05/0.3108, allocations: 15.41 kB / 437.1 MB, free: 2.648 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.3131, allocations: 3.325 MB / 440.5 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.3131, allocations: 3.938 kB / 440.5 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001578/0.3147, allocations: 0.8626 MB / 441.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00027/0.315, allocations: 158.4 kB / 441.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3151, allocations: 11.44 kB / 441.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006127/0.3157, allocations: 99.91 kB / 441.6 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.316, allocations: 100.9 kB / 441.7 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.11e-05/0.316, allocations: 23.34 kB / 441.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001341/0.3162, allocations: 153.6 kB / 441.9 MB, free: 14.15 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005662/0.3167, allocations: 111.9 kB / 442 MB, free: 14.04 MB / 330.7 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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002437/0.317, allocations: 129.9 kB / 442.1 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.3182, allocations: 0.7357 MB / 442.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3182, allocations: 0 / 442.8 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007381/0.319, allocations: 472.8 kB / 443.3 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.3194, allocations: 46.64 kB / 443.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.3214, allocations: 0.7617 MB / 444.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004666/0.3219, allocations: 0.8331 MB / 444.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3219, allocations: 0 / 444.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of Templates: time 0.0148/0.3367, allocations: 8.652 MB / 453.6 MB, free: 2.742 MB / 330.7 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)