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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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") [: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.1+maint.om/package.mo): time 0.002981/0.002981, allocations: 178.8 kB / 7.451 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.244/1.244, allocations: 170.6 MB / 178.4 MB, free: 15.79 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001946/0.001946, allocations: 119.8 kB / 217.7 MB, free: 8.566 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.145e-06, allocations: 4 kB / 261.7 MB, free: 26.71 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09842, allocations: 38.75 MB / 300.5 MB, free: 3.965 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.4742, allocations: 69.86 MB / 370.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.4746, allocations: 67.09 kB / 370.4 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02001/0.4946, allocations: 6.272 MB / 376.7 MB, free: 9.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.4947, allocations: 11.98 kB / 376.7 MB, free: 9.008 MB / 266.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.001885/0.4966, allocations: 0.6763 MB / 377.4 MB, free: 8.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.4967, allocations: 8.031 kB / 377.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.4969, allocations: 39.53 kB / 377.4 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.4975, allocations: 306.3 kB / 377.7 MB, free: 7.949 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.4975, allocations: 12 kB / 377.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-05/0.4976, allocations: 20 kB / 377.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007643/0.4984, allocations: 402.7 kB / 378.2 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000688/0.4991, allocations: 357 kB / 378.5 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.4991, allocations: 11.89 kB / 378.5 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.4992, allocations: 0 / 378.5 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.4992, allocations: 8 kB / 378.5 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002773/0.502, allocations: 1.232 MB / 379.8 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/0.5026, allocations: 265.3 kB / 380 MB, free: 6.137 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.5029, allocations: 208.8 kB / 380.2 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.207e-05/0.503, allocations: 4.375 kB / 380.2 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.503, allocations: 42.31 kB / 380.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.434e-06/0.503, allocations: 0 / 380.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003742/0.5068, allocations: 1.544 MB / 381.8 MB, free: 4.602 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.5068, allocations: 55.84 kB / 381.9 MB, free: 4.535 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.5071, allocations: 193.7 kB / 382.1 MB, free: 4.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.01e-05/0.5072, allocations: 37.5 kB / 382.1 MB, free: 4.324 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.5073, allocations: 154.8 kB / 382.2 MB, free: 4.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.5074, allocations: 163.8 kB / 382.4 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.5075, allocations: 3.938 kB / 382.4 MB, free: 4.039 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5076, allocations: 344.5 kB / 382.7 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.508, allocations: 199.5 kB / 382.9 MB, free: 3.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.5084, allocations: 253.9 kB / 383.2 MB, free: 3.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.5088, allocations: 177.3 kB / 383.4 MB, free: 3.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.5088, allocations: 0 / 383.4 MB, free: 3.285 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001812/0.5106, allocations: 0.799 MB / 384.2 MB, free: 2.641 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5107, allocations: 8.062 kB / 384.2 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5107, allocations: 4 kB / 384.2 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.5118, allocations: 0.5356 MB / 384.7 MB, free: 2.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.5122, allocations: 79.14 kB / 384.8 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003622/0.5158, allocations: 3.407 MB / 388.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006793/0.5165, allocations: 112.1 kB / 388.3 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.052e-05/0.5166, allocations: 26.67 kB / 388.3 MB, free: 14.57 MB / 282.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): 43 * 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 prepare postOptimizeDAE: time 0.0002725/0.5169, allocations: 120.8 kB / 388.4 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.5171, allocations: 35.53 kB / 388.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.5188, allocations: 0.7174 MB / 389.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.5188, allocations: 7.906 kB / 389.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5188, allocations: 0 / 389.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.5189, allocations: 0 / 389.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.5213, allocations: 1.124 MB / 390.3 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5213, allocations: 0 / 390.3 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.5217, allocations: 67.89 kB / 390.4 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.5228, allocations: 0.5116 MB / 390.9 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.5229, allocations: 19.31 kB / 390.9 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003974/0.5269, allocations: 3.375 MB / 394.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5269, allocations: 0 / 394.3 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00196/0.5289, allocations: 0.9362 MB / 395.2 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.5292, allocations: 166.4 kB / 395.4 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.486e-05/0.5293, allocations: 11.78 kB / 395.4 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005459/0.5298, allocations: 99.91 kB / 395.5 MB, free: 8.031 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.5301, allocations: 99.22 kB / 395.6 MB, free: 7.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.718e-05/0.5302, allocations: 27.84 kB / 395.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001616/0.5303, allocations: 154.4 kB / 395.8 MB, free: 7.797 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006044/0.5309, allocations: 112 kB / 395.9 MB, free: 7.688 MB / 282.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.0003191/0.5313, allocations: 128.2 kB / 396 MB, free: 7.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.5326, allocations: 0.6959 MB / 396.7 MB, free: 7.004 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5326, allocations: 0 / 396.7 MB, free: 7.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007868/0.5334, allocations: 482.4 kB / 397.2 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.5339, allocations: 39.42 kB / 397.2 MB, free: 6.566 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.536, allocations: 0.7565 MB / 398 MB, free: 5.867 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005845/0.5366, allocations: 0.8304 MB / 398.8 MB, free: 5.008 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5366, allocations: 0 / 398.8 MB, free: 5.008 MB / 282.7 MB Notification: Performance of Templates: time 0.01654/0.5531, allocations: 8.35 MB / 407.2 MB, free: 12.67 MB / 298.7 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)