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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.545/1.545, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 55.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.284, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003899/0.288, allocations: 2.72 MB / 328 MB, free: 15.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.2904, allocations: 1.13 MB / 329.2 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002015/0.2906, allocations: 5.344 kB / 329.2 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.2909, allocations: 69.67 kB / 329.2 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000671/0.2916, allocations: 197.6 kB / 329.4 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.2921, allocations: 240.7 kB / 329.7 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006542/0.2927, allocations: 0.6382 MB / 330.3 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.293, allocations: 130.8 kB / 330.4 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.2934, allocations: 282.3 kB / 330.7 MB, free: 13.84 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004554/0.2939, allocations: 348.1 kB / 331 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.294, allocations: 55.56 kB / 331.1 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002753/0.2943, allocations: 141.1 kB / 331.2 MB, free: 13.56 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001892/0.2945, allocations: 139.7 kB / 331.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.2948, allocations: 249.8 kB / 331.6 MB, free: 13.27 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007802/0.2956, allocations: 0.6362 MB / 332.2 MB, free: 12.81 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2956, allocations: 0 / 332.2 MB, free: 12.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2956, allocations: 1.5 kB / 332.2 MB, free: 12.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2956, allocations: 0 / 332.2 MB, free: 12.81 MB / 270.1 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.001876/0.2975, allocations: 0.7959 MB / 333 MB, free: 12.14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.2976, allocations: 19.89 kB / 333.1 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004563/0.298, allocations: 60.36 kB / 333.1 MB, free: 12.06 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.2987, allocations: 362.5 kB / 333.5 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.2989, allocations: 96.95 kB / 333.6 MB, free: 11.56 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-05/0.299, allocations: 44.28 kB / 333.6 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.3002, allocations: 0.5645 MB / 334.2 MB, free: 10.94 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3002, allocations: 0 / 334.2 MB, free: 10.94 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/0.3003, allocations: 16 kB / 334.2 MB, free: 10.93 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3003, allocations: 16 kB / 334.2 MB, free: 10.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.3018, allocations: 0.6324 MB / 334.8 MB, free: 10.28 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002818/0.3046, allocations: 1.295 MB / 336.1 MB, free: 8.926 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3059, allocations: 0.5326 MB / 336.7 MB, free: 8.387 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006973/0.3066, allocations: 326.4 kB / 337 MB, free: 8.062 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.647e-05/0.3067, allocations: 16.67 kB / 337 MB, free: 8.047 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.3067, allocations: 43.06 kB / 337 MB, free: 7.992 MB / 270.1 MB Notification: Performance of pre-optimization done (n=61): time 2.405e-06/0.3067, allocations: 0 / 337 MB, free: 7.992 MB / 270.1 MB Notification: Performance of matching and sorting (n=69): time 0.006987/0.3137, allocations: 2.856 MB / 339.9 MB, free: 5.016 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.3138, allocations: 89.61 kB / 340 MB, free: 4.91 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004798/0.3143, allocations: 338.9 kB / 340.3 MB, free: 4.566 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.274e-05/0.3144, allocations: 45.69 kB / 340.4 MB, free: 4.516 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3145, allocations: 153.6 kB / 340.5 MB, free: 4.363 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.3147, allocations: 236.8 kB / 340.7 MB, free: 4.129 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.3149, allocations: 118.2 kB / 340.9 MB, free: 4.008 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3151, allocations: 350.8 kB / 341.2 MB, free: 3.656 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/0.3156, allocations: 293.2 kB / 341.5 MB, free: 3.371 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/0.3163, allocations: 350.5 kB / 341.8 MB, free: 3.016 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.3173, allocations: 0.5187 MB / 342.4 MB, free: 2.488 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3173, allocations: 0 / 342.4 MB, free: 2.488 MB / 270.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001728/0.3191, allocations: 0.8929 MB / 343.2 MB, free: 1.586 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.3191, allocations: 7.938 kB / 343.3 MB, free: 1.578 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3191, allocations: 3.938 kB / 343.3 MB, free: 1.574 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.3202, allocations: 473.6 kB / 343.7 MB, free: 1.109 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003521/0.3206, allocations: 87.88 kB / 343.8 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.3219, allocations: 1.079 MB / 344.9 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.3224, allocations: 55.92 kB / 344.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.3225, allocations: 28.06 kB / 345 MB, free: 15.84 MB / 286.1 MB 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.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002613/0.3227, allocations: 177.7 kB / 345.1 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3229, allocations: 39.53 kB / 345.2 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001505/0.323, allocations: 67.77 kB / 345.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.323, allocations: 8 kB / 345.3 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.323, allocations: 0 / 345.3 MB, free: 15.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.3231, allocations: 3.984 kB / 345.3 MB, free: 15.53 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/0.3262, allocations: 1.758 MB / 347 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.3262, allocations: 0 / 347 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.3266, allocations: 83.91 kB / 347.1 MB, free: 13.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009413/0.3276, allocations: 452.4 kB / 347.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.823e-05/0.3276, allocations: 19.98 kB / 347.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.3289, allocations: 1.048 MB / 348.6 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3289, allocations: 0 / 348.6 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.3313, allocations: 1.305 MB / 349.9 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.3316, allocations: 180.6 kB / 350.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.657e-05/0.3317, allocations: 20 kB / 350.1 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004525/0.3322, allocations: 52 kB / 350.2 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.3324, allocations: 92.36 kB / 350.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.641e-05/0.3324, allocations: 23.98 kB / 350.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.3327, allocations: 241.9 kB / 350.5 MB, free: 10.14 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3327, allocations: 0 / 350.5 MB, free: 10.14 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005206/0.3333, allocations: 148 kB / 350.7 MB, free: 10 MB / 286.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002596/0.3335, allocations: 155 kB / 350.8 MB, free: 9.84 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001668/0.3352, allocations: 0.7431 MB / 351.5 MB, free: 9.098 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3352, allocations: 0 / 351.5 MB, free: 9.098 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008029/0.336, allocations: 396 kB / 351.9 MB, free: 8.707 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.3366, allocations: 57.61 kB / 352 MB, free: 8.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.3391, allocations: 1.112 MB / 353.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.3396, allocations: 0.8251 MB / 353.9 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002306/0.3398, allocations: 63.34 kB / 354 MB, free: 6.598 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.34, allocations: 47.34 kB / 354 MB, free: 6.551 MB / 286.1 MB Notification: Performance of SimCode: time 3.21e-07/0.34, allocations: 0 / 354 MB, free: 6.551 MB / 286.1 MB Notification: Performance of Templates: time 0.01609/0.3561, allocations: 9.927 MB / 364 MB, free: 12.62 MB / 302.1 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)