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.006882/0.006882, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.001161/0.001161, allocations: 191 kB / 16.67 MB, free: 5.969 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.588/1.588, allocations: 205.1 MB / 222.5 MB, free: 4.48 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.002017/0.002017, allocations: 50.11 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1675, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.00823/0.1758, allocations: 4.993 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0043/0.1802, allocations: 1.759 MB / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.1813, allocations: 15.94 kB / 379.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006992/0.1821, allocations: 182.4 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001722/0.1839, allocations: 401.1 kB / 380.5 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.1854, allocations: 0.5147 MB / 381 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002221/0.1876, allocations: 1.616 MB / 382.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005666/0.1882, allocations: 319.2 kB / 383 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.1893, allocations: 0.6855 MB / 383.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009348/0.1902, allocations: 0.7786 MB / 384.4 MB, free: 6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.1904, allocations: 128 kB / 384.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004989/0.191, allocations: 235.8 kB / 384.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003964/0.1914, allocations: 327 kB / 385.1 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007124/0.1921, allocations: 0.6182 MB / 385.7 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002071/0.1942, allocations: 1.499 MB / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1942, allocations: 0 / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1942, allocations: 0 / 387.2 MB, free: 3.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.1942, allocations: 0 / 387.2 MB, free: 3.199 MB / 318.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.003743/0.198, allocations: 1.531 MB / 388.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.198, allocations: 11.97 kB / 388.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/0.1986, allocations: 139.6 kB / 388.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.1999, allocations: 0.6046 MB / 389.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.2001, allocations: 175.4 kB / 389.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.2003, allocations: 107.8 kB / 389.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.2027, allocations: 1.251 MB / 391 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.283e-05/0.2028, allocations: 15.81 kB / 391 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.2029, allocations: 39.98 kB / 391.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.106e-05/0.203, allocations: 24 kB / 391.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.2058, allocations: 1.335 MB / 392.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006597/0.2124, allocations: 3.647 MB / 396.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.2148, allocations: 1.042 MB / 397.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.2162, allocations: 0.6643 MB / 397.8 MB, free: 8.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.418e-05/0.2163, allocations: 21.3 kB / 397.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.2163, allocations: 47.81 kB / 397.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 3.376e-06/0.2163, allocations: 4 kB / 397.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01473/0.231, allocations: 5.623 MB / 403.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.2312, allocations: 98.36 kB / 403.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008989/0.2321, allocations: 0.5925 MB / 404.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.2322, allocations: 65.69 kB / 404.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003651/0.2326, allocations: 333.3 kB / 404.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004735/0.2331, allocations: 485.3 kB / 405 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/0.2336, allocations: 259.4 kB / 405.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.2338, allocations: 394.7 kB / 405.7 MB, free: 208 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.235, allocations: 0.5818 MB / 406.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.2363, allocations: 0.7154 MB / 407 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/0.2385, allocations: 1.065 MB / 408 MB, free: 13.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2385, allocations: 0 / 408 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004082/0.2426, allocations: 1.794 MB / 409.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.2426, allocations: 12.19 kB / 409.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.2427, allocations: 3.938 kB / 409.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0019/0.2446, allocations: 0.9618 MB / 410.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.2456, allocations: 247.6 kB / 411 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002496/0.2481, allocations: 2.005 MB / 413.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.2495, allocations: 155.9 kB / 413.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.2496, allocations: 51.98 kB / 413.3 MB, free: 8.496 MB / 350.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.0006993/0.2503, allocations: 265.7 kB / 413.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.2506, allocations: 90.88 kB / 413.6 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.251, allocations: 133.2 kB / 413.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/0.251, allocations: 16 kB / 413.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/0.251, allocations: 7.938 kB / 413.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.2511, allocations: 7.969 kB / 413.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006831/0.2579, allocations: 3.254 MB / 417 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.2579, allocations: 0 / 417 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.2591, allocations: 235.6 kB / 417.2 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001889/0.261, allocations: 0.911 MB / 418.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.2611, allocations: 43.95 kB / 418.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002488/0.2636, allocations: 1.948 MB / 420.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2636, allocations: 4.031 kB / 420.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005568/0.2692, allocations: 2.572 MB / 422.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007358/0.27, allocations: 291.9 kB / 423 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.2702, allocations: 40 kB / 423.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.2714, allocations: 147.8 kB / 423.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004851/0.2719, allocations: 205 kB / 423.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.272, allocations: 55.89 kB / 423.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006147/0.2726, allocations: 418.8 kB / 423.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.2726, allocations: 0 / 423.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001007/0.2736, allocations: 328 kB / 424.2 MB, free: 13.36 MB / 366.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.0003875/0.274, allocations: 193.2 kB / 424.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003246/0.2773, allocations: 1.508 MB / 425.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2773, allocations: 0 / 425.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.2791, allocations: 0.8478 MB / 426.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.2802, allocations: 174.7 kB / 426.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008727/0.289, allocations: 3.06 MB / 430 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006727/0.2897, allocations: 1.031 MB / 431 MB, free: 6.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006634/0.2904, allocations: 131.2 kB / 431.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.2906, allocations: 83.39 kB / 431.2 MB, free: 6.273 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.2907, allocations: 0 / 431.2 MB, free: 6.273 MB / 366.1 MB Notification: Performance of Templates: time 0.2577/0.5484, allocations: 22.36 MB / 453.6 MB, free: 74.56 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (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)