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.009345/0.009345, allocations: 104.3 kB / 15.74 MB, free: 6.441 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.002266/0.002266, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.62/1.62, 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.001229/0.001229, allocations: 50.77 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1176, 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.005974/0.1236, allocations: 5.004 MB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.1271, allocations: 1.759 MB / 379.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.1275, allocations: 15.94 kB / 379.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004317/0.128, allocations: 178.4 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009504/0.129, allocations: 409.1 kB / 380.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009775/0.13, allocations: 0.5069 MB / 381 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.1314, allocations: 1.623 MB / 382.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00049/0.1319, allocations: 315.3 kB / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008679/0.1328, allocations: 0.6855 MB / 383.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008268/0.1336, allocations: 0.7903 MB / 384.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.1338, allocations: 128 kB / 384.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004021/0.1342, allocations: 223.8 kB / 384.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003355/0.1346, allocations: 335 kB / 385.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005551/0.1351, allocations: 0.6182 MB / 385.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.1365, allocations: 1.495 MB / 387.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.1365, allocations: 0 / 387.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1365, allocations: 0 / 387.2 MB, free: 3.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.1365, allocations: 0 / 387.2 MB, free: 3.184 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.003256/0.1398, allocations: 1.535 MB / 388.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1399, allocations: 11.97 kB / 388.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004872/0.1404, allocations: 143.6 kB / 388.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009292/0.1413, allocations: 0.6046 MB / 389.5 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.1415, allocations: 179.3 kB / 389.7 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001775/0.1417, allocations: 107.8 kB / 389.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.144, allocations: 1.251 MB / 391 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.121e-05/0.1441, allocations: 11.81 kB / 391.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.1442, allocations: 40 kB / 391.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.1442, allocations: 24 kB / 391.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.1469, allocations: 1.335 MB / 392.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006806/0.1537, allocations: 3.644 MB / 396.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.1559, allocations: 1.046 MB / 397.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.1572, allocations: 0.6654 MB / 397.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.1573, allocations: 21.3 kB / 397.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.1574, allocations: 51.81 kB / 397.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 4.588e-06/0.1574, allocations: 4 kB / 397.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01468/0.1721, allocations: 5.62 MB / 403.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.1722, allocations: 98.36 kB / 403.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009326/0.1732, allocations: 0.5964 MB / 404.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.1733, allocations: 65.69 kB / 404.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.1737, allocations: 329.3 kB / 404.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004487/0.1741, allocations: 485.3 kB / 405.1 MB, free: 0.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004583/0.1746, allocations: 263.4 kB / 405.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002441/0.1748, allocations: 394.7 kB / 405.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.1761, allocations: 0.5779 MB / 406.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.1774, allocations: 0.7193 MB / 407 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.1794, allocations: 1.058 MB / 408 MB, free: 13.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1794, allocations: 4 kB / 408.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003923/0.1834, allocations: 1.798 MB / 409.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.1834, allocations: 8 kB / 409.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.1834, allocations: 0 / 409.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/0.1854, allocations: 0.9579 MB / 410.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009972/0.1864, allocations: 251.6 kB / 411.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002674/0.1891, allocations: 2.001 MB / 413.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.1903, allocations: 151.9 kB / 413.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.1904, allocations: 55.97 kB / 413.3 MB, free: 8.48 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.0005183/0.1909, allocations: 261.6 kB / 413.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.1911, allocations: 90.88 kB / 413.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.1914, allocations: 137.2 kB / 413.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.1914, allocations: 12 kB / 413.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.1915, allocations: 3.938 kB / 413.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.72e-05/0.1915, allocations: 7.969 kB / 413.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006052/0.1976, allocations: 3.258 MB / 417 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1976, allocations: 3.938 kB / 417 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.1987, allocations: 243.7 kB / 417.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/0.2005, allocations: 0.911 MB / 418.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.2006, allocations: 47.95 kB / 418.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.2031, allocations: 1.948 MB / 420.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2031, allocations: 0 / 420.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005228/0.2084, allocations: 2.576 MB / 422.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005169/0.2089, allocations: 287.9 kB / 423 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.2091, allocations: 44 kB / 423.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.2101, allocations: 151.8 kB / 423.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004204/0.2105, allocations: 193 kB / 423.4 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.2107, allocations: 59.89 kB / 423.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005435/0.2112, allocations: 422.8 kB / 423.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2112, allocations: 0 / 423.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009084/0.2121, allocations: 320 kB / 424.2 MB, free: 13.34 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.0003477/0.2125, allocations: 201.2 kB / 424.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003164/0.2157, allocations: 1.508 MB / 425.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.2157, allocations: 0 / 425.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/0.2175, allocations: 0.8442 MB / 426.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.2186, allocations: 170.4 kB / 426.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008081/0.2267, allocations: 3.071 MB / 430 MB, free: 7.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.2273, allocations: 1.023 MB / 431 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.2278, allocations: 135.2 kB / 431.1 MB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002657/0.2281, allocations: 83.39 kB / 431.2 MB, free: 6.246 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2281, allocations: 4 kB / 431.2 MB, free: 6.242 MB / 366.1 MB Notification: Performance of Templates: time 0.2846/0.5127, allocations: 22.35 MB / 453.6 MB, free: 74.7 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)