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.0009171/0.0009209, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001033/0.001033, allocations: 168.7 kB / 15.95 MB, free: 204 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.43/1.43, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004379/0.000438, allocations: 10.66 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2102, allocations: 47.6 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004255/0.2145, allocations: 4.342 MB / 330.8 MB, free: 13.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002961/0.2175, allocations: 1.71 MB / 332.5 MB, free: 12.58 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003312/0.2178, allocations: 15.5 kB / 332.5 MB, free: 12.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.2181, allocations: 124.9 kB / 332.7 MB, free: 12.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007675/0.2189, allocations: 341.6 kB / 333 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007482/0.2197, allocations: 400.9 kB / 333.4 MB, free: 11.9 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.221, allocations: 1.427 MB / 334.8 MB, free: 11.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004287/0.2214, allocations: 246.1 kB / 335.1 MB, free: 10.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007517/0.2222, allocations: 0.5999 MB / 335.7 MB, free: 10.29 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.2229, allocations: 0.6852 MB / 336.3 MB, free: 9.598 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000135/0.2231, allocations: 64 kB / 336.4 MB, free: 9.535 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003146/0.2234, allocations: 143.9 kB / 336.5 MB, free: 9.395 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002624/0.2237, allocations: 259.1 kB / 336.8 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2239, allocations: 213.1 kB / 337 MB, free: 8.926 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009164/0.2248, allocations: 1.061 MB / 338.1 MB, free: 7.863 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2248, allocations: 0 / 338.1 MB, free: 7.863 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2248, allocations: 0 / 338.1 MB, free: 7.863 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.2248, allocations: 4 kB / 338.1 MB, free: 7.859 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.002747/0.2276, allocations: 1.383 MB / 339.5 MB, free: 6.422 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.2276, allocations: 12.03 kB / 339.5 MB, free: 6.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004307/0.228, allocations: 142.6 kB / 339.6 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008011/0.2289, allocations: 0.5726 MB / 340.2 MB, free: 5.652 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.2292, allocations: 199.1 kB / 340.4 MB, free: 5.441 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.2293, allocations: 103.9 kB / 340.5 MB, free: 5.34 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.2316, allocations: 1.271 MB / 341.7 MB, free: 4.051 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.2317, allocations: 7.906 kB / 341.8 MB, free: 4.043 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.2318, allocations: 40 kB / 341.8 MB, free: 4.004 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.2318, allocations: 23.94 kB / 341.8 MB, free: 3.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.2345, allocations: 1.37 MB / 343.2 MB, free: 2.613 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006008/0.2405, allocations: 3.758 MB / 346.9 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/0.2425, allocations: 1.07 MB / 348 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.2438, allocations: 0.6841 MB / 348.7 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.602e-05/0.2439, allocations: 21.3 kB / 348.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.2439, allocations: 43.88 kB / 348.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.016e-06/0.2439, allocations: 0 / 348.8 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01338/0.2573, allocations: 5.881 MB / 354.6 MB, free: 6.816 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.2575, allocations: 98.41 kB / 354.7 MB, free: 6.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.2585, allocations: 0.5847 MB / 355.3 MB, free: 6.109 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.2586, allocations: 69.7 kB / 355.4 MB, free: 6.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.259, allocations: 337.2 kB / 355.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005475/0.2596, allocations: 485.3 kB / 356.2 MB, free: 5.219 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.13e-05/0.2597, allocations: 31.94 kB / 356.2 MB, free: 5.188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003004/0.26, allocations: 394.7 kB / 356.6 MB, free: 4.793 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.2613, allocations: 0.5818 MB / 357.2 MB, free: 4.211 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.2626, allocations: 0.7193 MB / 357.9 MB, free: 3.469 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001179/0.2638, allocations: 0.5175 MB / 358.4 MB, free: 2.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2638, allocations: 0 / 358.4 MB, free: 2.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00381/0.2677, allocations: 1.853 MB / 360.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.2677, allocations: 8.031 kB / 360.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.2677, allocations: 4 kB / 360.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001883/0.2696, allocations: 0.9656 MB / 361.3 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.2706, allocations: 267.5 kB / 361.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.2731, allocations: 1.994 MB / 363.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.2742, allocations: 203.8 kB / 363.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.2743, allocations: 55.97 kB / 363.8 MB, free: 13.54 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.0004841/0.2748, allocations: 265.5 kB / 364 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.275, allocations: 90.88 kB / 364.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003188/0.2753, allocations: 133.2 kB / 364.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/0.2754, allocations: 12 kB / 364.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.2754, allocations: 7.953 kB / 364.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.2754, allocations: 7.969 kB / 364.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005829/0.2812, allocations: 3.323 MB / 367.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.2812, allocations: 3.953 kB / 367.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.2823, allocations: 263.7 kB / 367.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.284, allocations: 0.907 MB / 368.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.2842, allocations: 47.95 kB / 368.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0022/0.2864, allocations: 1.933 MB / 370.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.2864, allocations: 8 kB / 370.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005004/0.2914, allocations: 2.626 MB / 373.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004495/0.2919, allocations: 295.8 kB / 373.7 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.292, allocations: 36 kB / 373.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.2931, allocations: 223.7 kB / 373.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004143/0.2935, allocations: 216.9 kB / 374.1 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.2936, allocations: 55.94 kB / 374.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005038/0.2941, allocations: 418.8 kB / 374.6 MB, free: 2.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2941, allocations: 4 kB / 374.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008478/0.295, allocations: 316 kB / 374.9 MB, free: 2.195 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.0003247/0.2953, allocations: 193.7 kB / 375.1 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.2983, allocations: 1.523 MB / 376.6 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2983, allocations: 0 / 376.6 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/0.3001, allocations: 0.8561 MB / 377.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009076/0.301, allocations: 158.2 kB / 377.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007854/0.3089, allocations: 3.788 MB / 381.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.3095, allocations: 1.031 MB / 382.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005348/0.31, allocations: 131.2 kB / 382.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.3103, allocations: 75.39 kB / 382.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3103, allocations: 0 / 382.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of Templates: time 0.03013/0.3404, allocations: 19.89 MB / 402.5 MB, free: 6.465 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)