Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 192.3 kB / 16.14 MB, free: 6.707 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.673/1.673, allocations: 205.1 MB / 222 MB, free: 4.754 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.00138/0.00138, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3032, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007473/0.3107, allocations: 5.001 MB / 329.7 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00527/0.316, allocations: 1.759 MB / 331.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.3172, allocations: 19.34 kB / 331.5 MB, free: 12.53 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005285/0.3178, allocations: 130.3 kB / 331.6 MB, free: 12.43 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001473/0.3193, allocations: 350.2 kB / 331.9 MB, free: 12.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.3207, allocations: 469.2 kB / 332.4 MB, free: 11.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.3232, allocations: 1.535 MB / 333.9 MB, free: 10.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005808/0.3238, allocations: 280.9 kB / 334.2 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.3249, allocations: 0.6267 MB / 334.8 MB, free: 9.969 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009241/0.3259, allocations: 0.7395 MB / 335.6 MB, free: 9.227 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.3261, allocations: 76 kB / 335.6 MB, free: 9.152 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004959/0.3266, allocations: 167.8 kB / 335.8 MB, free: 8.988 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003375/0.3269, allocations: 283 kB / 336.1 MB, free: 8.711 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006004/0.3275, allocations: 0.5674 MB / 336.6 MB, free: 8.141 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.3289, allocations: 1.426 MB / 338.1 MB, free: 6.711 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.391e-06/0.3289, allocations: 0 / 338.1 MB, free: 6.711 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3289, allocations: 0 / 338.1 MB, free: 6.711 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.3289, allocations: 0 / 338.1 MB, free: 6.711 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.003705/0.3326, allocations: 1.528 MB / 339.6 MB, free: 5.129 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.3327, allocations: 12.02 kB / 339.6 MB, free: 5.117 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005819/0.3333, allocations: 135.5 kB / 339.7 MB, free: 4.984 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009627/0.3343, allocations: 0.6045 MB / 340.3 MB, free: 4.336 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/0.3346, allocations: 195.4 kB / 340.5 MB, free: 4.129 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/0.3349, allocations: 103.9 kB / 340.6 MB, free: 4.027 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.3373, allocations: 1.259 MB / 341.9 MB, free: 2.75 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.3373, allocations: 3.906 kB / 341.9 MB, free: 2.746 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.3374, allocations: 44 kB / 341.9 MB, free: 2.703 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.3375, allocations: 20 kB / 342 MB, free: 2.684 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002863/0.3403, allocations: 1.335 MB / 343.3 MB, free: 1.352 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006394/0.3467, allocations: 3.66 MB / 347 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.3488, allocations: 1.039 MB / 348 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.3501, allocations: 0.6645 MB / 348.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.85e-05/0.3502, allocations: 25.3 kB / 348.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.3502, allocations: 51.81 kB / 348.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.186e-06/0.3502, allocations: 0 / 348.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01312/0.3634, allocations: 5.62 MB / 354.4 MB, free: 5.949 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.3635, allocations: 94.42 kB / 354.4 MB, free: 5.836 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008271/0.3643, allocations: 0.6003 MB / 355 MB, free: 5.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.3644, allocations: 57.7 kB / 355.1 MB, free: 5.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003035/0.3648, allocations: 337.2 kB / 355.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003938/0.3652, allocations: 485.2 kB / 355.9 MB, free: 4.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004474/0.3656, allocations: 263.5 kB / 356.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3658, allocations: 386.8 kB / 356.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.3671, allocations: 0.5856 MB / 357.1 MB, free: 3.117 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.3684, allocations: 0.7193 MB / 357.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.3705, allocations: 1.061 MB / 358.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3705, allocations: 4 kB / 358.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003568/0.3741, allocations: 1.791 MB / 360.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.3741, allocations: 4 kB / 360.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.3741, allocations: 11.92 kB / 360.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/0.3762, allocations: 0.954 MB / 361.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3772, allocations: 255.6 kB / 361.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.3799, allocations: 2.005 MB / 363.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.3811, allocations: 152 kB / 364.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.3812, allocations: 51.98 kB / 364.1 MB, free: 12 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(4,40), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005503/0.3817, allocations: 265.6 kB / 364.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.382, allocations: 94.97 kB / 364.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.3823, allocations: 133.2 kB / 364.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.3823, allocations: 12 kB / 364.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-05/0.3824, allocations: 0 / 364.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.3824, allocations: 11.97 kB / 364.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006199/0.3886, allocations: 3.288 MB / 367.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3886, allocations: 0 / 367.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.3897, allocations: 243.6 kB / 368.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.3916, allocations: 0.9147 MB / 369.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.3917, allocations: 43.95 kB / 369.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/0.3941, allocations: 1.948 MB / 371.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3942, allocations: 0 / 371.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005226/0.3994, allocations: 2.567 MB / 373.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005905/0.4, allocations: 291.8 kB / 373.9 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/0.4003, allocations: 36 kB / 373.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.4014, allocations: 159.8 kB / 374.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004823/0.4019, allocations: 193 kB / 374.3 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.402, allocations: 59.88 kB / 374.4 MB, free: 1.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006216/0.4027, allocations: 422.8 kB / 374.8 MB, free: 1.156 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4027, allocations: 0 / 374.8 MB, free: 1.156 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00116/0.4038, allocations: 320 kB / 375.1 MB, free: 0.8438 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (4,38)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004557/0.4043, allocations: 197.3 kB / 375.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.4082, allocations: 1.504 MB / 376.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.4082, allocations: 0 / 376.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.4104, allocations: 0.8322 MB / 377.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.4117, allocations: 162.5 kB / 377.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009015/0.4208, allocations: 3.515 MB / 381.3 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007196/0.4215, allocations: 1.027 MB / 382.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008224/0.4224, allocations: 131.2 kB / 382.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/0.4227, allocations: 75.39 kB / 382.5 MB, free: 9.344 MB / 318.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4228, allocations: 4 kB / 382.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Templates: time 0.03961/0.4624, allocations: 20.72 MB / 403.2 MB, free: 4.594 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)