Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [: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.001117/0.001116, allocations: 194 kB / 8.135 MB, free: 2.191 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.087/1.087, allocations: 194.2 MB / 202.8 MB, free: 8.797 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.001788/0.001788, allocations: 120.6 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.2e-06/5.22e-06, allocations: 0 / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.06986, allocations: 44.49 MB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.2634, allocations: 74.95 MB / 417 MB, free: 20.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001746/0.2636, allocations: 64.66 kB / 417.1 MB, free: 20.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02455/0.2882, allocations: 8.924 MB / 426 MB, free: 12.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.2883, allocations: 4 kB / 426 MB, free: 12.77 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008415/0.2891, allocations: 0.5648 MB / 426.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2891, allocations: 8.031 kB / 426.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.2895, allocations: 54.72 kB / 426.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.2898, allocations: 268.1 kB / 426.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.2899, allocations: 84.47 kB / 427 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.29, allocations: 16 kB / 427 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005418/0.2905, allocations: 354.9 kB / 427.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004452/0.291, allocations: 322.1 kB / 427.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.291, allocations: 0 / 427.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.419e-05/0.2911, allocations: 7.844 kB / 427.7 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.2911, allocations: 8 kB / 427.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.2927, allocations: 1.118 MB / 428.8 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000349/0.293, allocations: 246.5 kB / 429 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.2932, allocations: 156.6 kB / 429.2 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.2933, allocations: 8.141 kB / 429.2 MB, free: 9.984 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.2933, allocations: 38.5 kB / 429.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.2933, allocations: 0 / 429.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.002207/0.2955, allocations: 1.223 MB / 430.4 MB, free: 8.852 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.2956, allocations: 84.86 kB / 430.5 MB, free: 8.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.2957, allocations: 189.1 kB / 430.7 MB, free: 8.586 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.2958, allocations: 25.7 kB / 430.7 MB, free: 8.555 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.054e-05/0.2958, allocations: 135 kB / 430.9 MB, free: 8.426 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.996e-05/0.2959, allocations: 143.6 kB / 431 MB, free: 8.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.296, allocations: 0 / 431 MB, free: 8.301 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.296, allocations: 337.3 kB / 431.3 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.2962, allocations: 142.7 kB / 431.5 MB, free: 7.887 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2965, allocations: 198.4 kB / 431.7 MB, free: 7.734 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.2968, allocations: 129.9 kB / 431.8 MB, free: 7.652 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2968, allocations: 4.75 kB / 431.8 MB, free: 7.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008051/0.2976, allocations: 485.9 kB / 432.3 MB, free: 7.289 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2976, allocations: 8.156 kB / 432.3 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2976, allocations: 0 / 432.3 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006738/0.2983, allocations: 231.2 kB / 432.5 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.2986, allocations: 59.33 kB / 432.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.3013, allocations: 2.393 MB / 435 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.3016, allocations: 28.05 kB / 435 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.402e-05/0.3016, allocations: 21.23 kB / 435 MB, free: 4.941 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.3018, allocations: 112.7 kB / 435.1 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.983e-05/0.3019, allocations: 27.62 kB / 435.1 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.397e-05/0.3019, allocations: 45.45 kB / 435.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.302, allocations: 4 kB / 435.2 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.302, allocations: 0 / 435.2 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.302, allocations: 0 / 435.2 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.3034, allocations: 0.9518 MB / 436.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3034, allocations: 0 / 436.1 MB, free: 4.008 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.3037, allocations: 43.97 kB / 436.2 MB, free: 3.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005922/0.3043, allocations: 220.3 kB / 436.4 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.3043, allocations: 9.109 kB / 436.4 MB, free: 3.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.3069, allocations: 2.352 MB / 438.8 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3069, allocations: 0 / 438.8 MB, free: 1.746 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009836/0.3079, allocations: 0.7225 MB / 439.5 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.308, allocations: 142.1 kB / 439.6 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.554e-05/0.3081, allocations: 3.875 kB / 439.6 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.3084, allocations: 23.97 kB / 439.7 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3086, allocations: 39.86 kB / 439.7 MB, free: 1.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.3086, allocations: 27.61 kB / 439.7 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.867e-05/0.3087, allocations: 147.2 kB / 439.9 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005836/0.3093, allocations: 116 kB / 440 MB, free: 0.75 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002092/0.3095, allocations: 135.1 kB / 440.1 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007746/0.3103, allocations: 498.2 kB / 440.6 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3103, allocations: 0 / 440.6 MB, free: 248 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.3108, allocations: 325.5 kB / 440.9 MB, free: 15.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.3111, allocations: 25.95 kB / 440.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.3124, allocations: 0.524 MB / 441.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.313, allocations: 0.8099 MB / 442.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.313, allocations: 4 kB / 442.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of Templates: time 0.01202/0.325, allocations: 6.639 MB / 448.9 MB, free: 8.07 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1)