Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003342/0.003343, allocations: 180.6 kB / 7.454 MB, free: 2.508 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.36/1.36, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.00181/0.00181, allocations: 103.9 kB / 217.7 MB, free: 8.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.233e-06/7.414e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.08941, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2654/0.3549, allocations: 71.8 MB / 372.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.3552, allocations: 67.97 kB / 372.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.03545/0.3907, allocations: 11.57 MB / 383.9 MB, free: 3.039 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.3907, allocations: 12 kB / 384 MB, free: 3.027 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001682/0.3924, allocations: 0.7304 MB / 384.7 MB, free: 2.281 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3925, allocations: 8.031 kB / 384.7 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.3929, allocations: 71.41 kB / 384.8 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006177/0.3936, allocations: 331.9 kB / 385.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3937, allocations: 80.17 kB / 385.2 MB, free: 1.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3938, allocations: 27.91 kB / 385.2 MB, free: 1.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00102/0.3949, allocations: 0.5635 MB / 385.8 MB, free: 1.352 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008646/0.3957, allocations: 482 kB / 386.2 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.3958, allocations: 3.312 kB / 386.2 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.497e-05/0.3958, allocations: 3.906 kB / 386.2 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3959, allocations: 15.94 kB / 386.3 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.3987, allocations: 1.157 MB / 387.4 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.3993, allocations: 367.9 kB / 387.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.3998, allocations: 283.5 kB / 388 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.3998, allocations: 12.42 kB / 388.1 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.3999, allocations: 40.88 kB / 388.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 4.248e-06/0.3999, allocations: 0 / 388.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.004342/0.4042, allocations: 1.888 MB / 390 MB, free: 13.94 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.4043, allocations: 85.77 kB / 390.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.4046, allocations: 232.3 kB / 390.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.4047, allocations: 36.81 kB / 390.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.968e-05/0.4048, allocations: 139.3 kB / 390.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/0.405, allocations: 228.6 kB / 390.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.405, allocations: 0 / 390.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4052, allocations: 355 kB / 391 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004036/0.4056, allocations: 248.8 kB / 391.3 MB, free: 12.78 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.406, allocations: 298.3 kB / 391.6 MB, free: 12.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000584/0.4066, allocations: 230.5 kB / 391.8 MB, free: 12.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4066, allocations: 4 kB / 391.8 MB, free: 12.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001599/0.4083, allocations: 0.7801 MB / 392.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4083, allocations: 4 kB / 392.6 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4083, allocations: 4 kB / 392.6 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.4095, allocations: 0.5024 MB / 393.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.41, allocations: 90.75 kB / 393.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.4115, allocations: 1.145 MB / 394.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005938/0.4121, allocations: 83.92 kB / 394.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.4122, allocations: 26.5 kB / 394.4 MB, free: 10.3 MB / 282.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): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002886/0.4125, allocations: 122.2 kB / 394.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.4126, allocations: 39.44 kB / 394.6 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.4128, allocations: 61.41 kB / 394.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.4128, allocations: 8 kB / 394.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4128, allocations: 0 / 394.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.4128, allocations: 3.984 kB / 394.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003266/0.4161, allocations: 1.653 MB / 396.3 MB, free: 8.781 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4161, allocations: 0 / 396.3 MB, free: 8.781 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/0.4165, allocations: 91.62 kB / 396.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.4176, allocations: 489.4 kB / 396.9 MB, free: 8.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.4176, allocations: 11.92 kB / 396.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.419, allocations: 1.097 MB / 398 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.419, allocations: 3.938 kB / 398 MB, free: 7.375 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002129/0.4212, allocations: 1.22 MB / 399.2 MB, free: 6.461 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003443/0.4215, allocations: 181.8 kB / 399.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4217, allocations: 11.73 kB / 399.4 MB, free: 6.281 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.4223, allocations: 67.91 kB / 399.5 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.4225, allocations: 99.27 kB / 399.6 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.4226, allocations: 31.28 kB / 399.6 MB, free: 6.105 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001978/0.4228, allocations: 185.5 kB / 399.8 MB, free: 5.957 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006779/0.4235, allocations: 136 kB / 399.9 MB, free: 5.824 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (39): * Single equations (assignments): 38 * 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.000398/0.4239, allocations: 163.7 kB / 400.1 MB, free: 5.656 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.4251, allocations: 0.5991 MB / 400.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4251, allocations: 0 / 400.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006782/0.4258, allocations: 328.6 kB / 401 MB, free: 5.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.4263, allocations: 27.16 kB / 401 MB, free: 5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.4283, allocations: 0.7249 MB / 401.7 MB, free: 4.352 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007493/0.4291, allocations: 0.8865 MB / 402.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4291, allocations: 0 / 402.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of Templates: time 0.01804/0.4471, allocations: 8.695 MB / 411.3 MB, free: 10.76 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1)