Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.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.00105/0.00105, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001455/0.001456, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.0004832/0.0004834, allocations: 16 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2524, allocations: 47.59 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004724/0.2572, allocations: 4.013 MB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003677/0.2609, allocations: 1.766 MB / 332.2 MB, free: 12.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006734/0.2616, allocations: 13.97 kB / 332.2 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.262, allocations: 124.5 kB / 332.4 MB, free: 12.78 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.2633, allocations: 417.3 kB / 332.8 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.2644, allocations: 389.5 kB / 333.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0016/0.266, allocations: 1.005 MB / 334.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004368/0.2665, allocations: 242.3 kB / 334.4 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009355/0.2674, allocations: 0.5884 MB / 335 MB, free: 10.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008187/0.2682, allocations: 0.6851 MB / 335.7 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.2684, allocations: 68 kB / 335.7 MB, free: 10.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004081/0.2688, allocations: 139.9 kB / 335.9 MB, free: 10.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002959/0.2691, allocations: 259.1 kB / 336.1 MB, free: 9.816 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.2693, allocations: 217.1 kB / 336.3 MB, free: 9.598 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.2704, allocations: 1.057 MB / 337.4 MB, free: 8.539 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2705, allocations: 4 kB / 337.4 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2705, allocations: 0 / 337.4 MB, free: 8.535 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.2705, allocations: 0 / 337.4 MB, free: 8.535 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.003168/0.2737, allocations: 1.38 MB / 338.8 MB, free: 7.102 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2737, allocations: 8.031 kB / 338.8 MB, free: 7.094 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.2742, allocations: 150.5 kB / 338.9 MB, free: 6.945 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009219/0.2752, allocations: 0.5726 MB / 339.5 MB, free: 6.328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.2755, allocations: 203 kB / 339.7 MB, free: 6.113 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.2757, allocations: 107.8 kB / 339.8 MB, free: 6.008 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.2779, allocations: 1.251 MB / 341.1 MB, free: 4.738 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/0.278, allocations: 11.91 kB / 341.1 MB, free: 4.727 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.2781, allocations: 40 kB / 341.1 MB, free: 4.688 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.2782, allocations: 24 kB / 341.1 MB, free: 4.664 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.2809, allocations: 1.37 MB / 342.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006538/0.2875, allocations: 3.754 MB / 346.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/0.2897, allocations: 1.074 MB / 347.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.112e-05/0.2898, allocations: 13.31 kB / 347.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.943e-05/0.2899, allocations: 47.88 kB / 347.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 7.153e-06/0.2899, allocations: 0 / 347.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01351/0.3034, allocations: 5.872 MB / 353.3 MB, free: 8.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.3036, allocations: 102.4 kB / 353.4 MB, free: 8.082 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007445/0.3043, allocations: 0.5808 MB / 353.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.3044, allocations: 69.62 kB / 354 MB, free: 7.418 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.3047, allocations: 341.1 kB / 354.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/0.305, allocations: 473.4 kB / 354.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.073e-05/0.3051, allocations: 32 kB / 354.8 MB, free: 6.578 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.3053, allocations: 390.7 kB / 355.2 MB, free: 6.188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.3065, allocations: 0.5818 MB / 355.8 MB, free: 5.605 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.3077, allocations: 0.7193 MB / 356.5 MB, free: 4.863 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.3088, allocations: 0.5175 MB / 357 MB, free: 4.348 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3088, allocations: 0 / 357 MB, free: 4.348 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003671/0.3124, allocations: 1.861 MB / 358.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3125, allocations: 4 kB / 358.9 MB, free: 2.469 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.3125, allocations: 0 / 358.9 MB, free: 2.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.3144, allocations: 0.9617 MB / 359.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.3154, allocations: 259.6 kB / 360.1 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002381/0.3178, allocations: 2.005 MB / 362.1 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.3191, allocations: 211.9 kB / 362.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3192, allocations: 51.91 kB / 362.4 MB, free: 14.93 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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005653/0.3198, allocations: 265.6 kB / 362.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.32, allocations: 90.88 kB / 362.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.3202, allocations: 133.2 kB / 362.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.3202, allocations: 16 kB / 362.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3203, allocations: 3.953 kB / 362.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.3203, allocations: 7.969 kB / 362.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006161/0.3264, allocations: 3.319 MB / 366.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.3265, allocations: 4.094 kB / 366.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.3276, allocations: 263.6 kB / 366.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.3294, allocations: 0.9146 MB / 367.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.3295, allocations: 51.94 kB / 367.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.3319, allocations: 1.929 MB / 369.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3319, allocations: 4.031 kB / 369.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005136/0.337, allocations: 2.641 MB / 372 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006463/0.3377, allocations: 295.8 kB / 372.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.3379, allocations: 40 kB / 372.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.339, allocations: 211.8 kB / 372.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/0.3394, allocations: 224.8 kB / 372.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.3396, allocations: 59.94 kB / 372.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006257/0.3402, allocations: 418.8 kB / 373.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.3402, allocations: 112 / 373.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009365/0.3411, allocations: 323.9 kB / 373.5 MB, free: 3.555 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003817/0.3415, allocations: 193.3 kB / 373.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003143/0.3447, allocations: 1.527 MB / 375.3 MB, free: 1.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3447, allocations: 4.312 kB / 375.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/0.3466, allocations: 0.8557 MB / 376.1 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009164/0.3475, allocations: 142.4 kB / 376.3 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008549/0.356, allocations: 3.776 MB / 380 MB, free: 13.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006363/0.3567, allocations: 1.047 MB / 381.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006893/0.3574, allocations: 139.2 kB / 381.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.3577, allocations: 71.39 kB / 381.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.074e-06/0.3577, allocations: 0 / 381.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of Templates: time 0.03106/0.3887, allocations: 19.84 MB / 401.1 MB, free: 7.875 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) Environment - environmentSimulation: