Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [: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.001114/0.001114, allocations: 187.7 kB / 8.132 MB, free: 2.199 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.078/1.078, allocations: 194.2 MB / 202.8 MB, free: 8.828 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.0018/0.0018, allocations: 121.2 kB / 247.7 MB, free: 6.219 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.025e-05/1.029e-05, allocations: 4 kB / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0729/0.07292, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.2718, allocations: 76.93 MB / 419 MB, free: 18.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.272, allocations: 69.84 kB / 419.1 MB, free: 18.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03058/0.3026, allocations: 11.2 MB / 430.3 MB, free: 8.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.981e-05/0.3027, allocations: 8 kB / 430.3 MB, free: 8.91 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001323/0.304, allocations: 0.7136 MB / 431 MB, free: 8.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3041, allocations: 8.031 kB / 431 MB, free: 8.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.3045, allocations: 71.41 kB / 431.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.305, allocations: 335.4 kB / 431.4 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.3051, allocations: 80.17 kB / 431.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.3052, allocations: 27.98 kB / 431.5 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009123/0.3061, allocations: 0.5208 MB / 432 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.3069, allocations: 461.9 kB / 432.5 MB, free: 6.945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.307, allocations: 11.47 kB / 432.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.312e-05/0.307, allocations: 0 / 432.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.307, allocations: 8 kB / 432.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.3091, allocations: 1.083 MB / 433.6 MB, free: 6.039 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.3097, allocations: 373.4 kB / 433.9 MB, free: 5.789 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.3101, allocations: 276.2 kB / 434.2 MB, free: 5.617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.876e-05/0.3102, allocations: 8.656 kB / 434.2 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.3102, allocations: 38.81 kB / 434.2 MB, free: 5.566 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 2.795e-06/0.3102, allocations: 3.844 kB / 434.2 MB, free: 5.566 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.003978/0.3142, allocations: 1.855 MB / 436.1 MB, free: 4.004 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.3143, allocations: 85.67 kB / 436.2 MB, free: 3.902 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.3145, allocations: 216.6 kB / 436.4 MB, free: 3.723 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.538e-05/0.3145, allocations: 33.02 kB / 436.4 MB, free: 3.688 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/0.3146, allocations: 139.4 kB / 436.6 MB, free: 3.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.3147, allocations: 236.2 kB / 436.8 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.3148, allocations: 3.312 kB / 436.8 MB, free: 3.352 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.236e-05/0.3148, allocations: 344.5 kB / 437.1 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.3152, allocations: 228 kB / 437.4 MB, free: 2.887 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003602/0.3156, allocations: 284.8 kB / 437.6 MB, free: 2.691 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.3161, allocations: 216.8 kB / 437.8 MB, free: 2.551 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3161, allocations: 4.031 kB / 437.8 MB, free: 2.547 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0014/0.3175, allocations: 0.7446 MB / 438.6 MB, free: 1.996 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.3175, allocations: 5.094 kB / 438.6 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.3175, allocations: 4 kB / 438.6 MB, free: 1.988 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009593/0.3185, allocations: 414.2 kB / 439 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004146/0.3189, allocations: 95.48 kB / 439.1 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.3201, allocations: 1.074 MB / 440.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/0.3206, allocations: 68.5 kB / 440.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.582e-05/0.3207, allocations: 35.67 kB / 440.3 MB, free: 0.6133 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0001852/0.3209, allocations: 128.3 kB / 440.4 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.557e-05/0.321, allocations: 43.52 kB / 440.4 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001489/0.3225, allocations: 0.768 MB / 441.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.3225, allocations: 8 kB / 441.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3226, allocations: 0 / 441.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3226, allocations: 3.984 kB / 441.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/0.3255, allocations: 1.547 MB / 442.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3255, allocations: 11.97 kB / 442.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/0.3259, allocations: 86.94 kB / 442.9 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000918/0.3269, allocations: 388.5 kB / 443.2 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.125e-05/0.3269, allocations: 15.11 kB / 443.3 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.3282, allocations: 1.029 MB / 444.3 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.3282, allocations: 7.984 kB / 444.3 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001941/0.3302, allocations: 1.153 MB / 445.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3304, allocations: 183.4 kB / 445.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3306, allocations: 7.938 kB / 445.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005314/0.3311, allocations: 68 kB / 445.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.3313, allocations: 95.83 kB / 445.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-05/0.3314, allocations: 34.22 kB / 445.8 MB, free: 12.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001615/0.3316, allocations: 178.6 kB / 446 MB, free: 12.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005508/0.3321, allocations: 129.1 kB / 446.1 MB, free: 11.89 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002639/0.3324, allocations: 150.8 kB / 446.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.3335, allocations: 0.6076 MB / 446.9 MB, free: 11.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3335, allocations: 0 / 446.9 MB, free: 11.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.3341, allocations: 334.2 kB / 447.2 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3345, allocations: 25.66 kB / 447.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.3362, allocations: 0.7249 MB / 448 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005527/0.3367, allocations: 0.8829 MB / 448.8 MB, free: 9.508 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3367, allocations: 0 / 448.8 MB, free: 9.508 MB / 330.7 MB Notification: Performance of Templates: time 0.01439/0.3511, allocations: 8.776 MB / 457.6 MB, free: 0.793 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)