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.007564/0.007564, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001348/0.001348, allocations: 193.2 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.544/1.544, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001284/0.001284, allocations: 54.38 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1204, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006588/0.1271, allocations: 5.004 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003802/0.1309, allocations: 1.763 MB / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003808/0.1313, allocations: 15.94 kB / 379.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005638/0.1319, allocations: 178.4 kB / 380.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001118/0.133, allocations: 397.1 kB / 380.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009905/0.134, allocations: 0.5108 MB / 381 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.1357, allocations: 1.616 MB / 382.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005387/0.1363, allocations: 327.2 kB / 383 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.1373, allocations: 0.6777 MB / 383.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.1383, allocations: 0.7825 MB / 384.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002219/0.1385, allocations: 124 kB / 384.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000527/0.1391, allocations: 227.8 kB / 384.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004044/0.1395, allocations: 331 kB / 385.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006613/0.1402, allocations: 0.6143 MB / 385.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.1419, allocations: 1.51 MB / 387.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.869e-05/0.1419, allocations: 3.984 kB / 387.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1419, allocations: 4 kB / 387.2 MB, free: 3.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.245e-05/0.1419, allocations: 0 / 387.2 MB, free: 3.203 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.00355/0.1455, allocations: 1.55 MB / 388.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.1456, allocations: 15.97 kB / 388.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005463/0.1461, allocations: 152.1 kB / 388.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.1471, allocations: 0.605 MB / 389.5 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.1474, allocations: 179.4 kB / 389.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.1476, allocations: 103.9 kB / 389.8 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.1499, allocations: 1.263 MB / 391.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/0.1499, allocations: 11.94 kB / 391.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.15, allocations: 40 kB / 391.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.1501, allocations: 24 kB / 391.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002689/0.1527, allocations: 1.331 MB / 392.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006038/0.1588, allocations: 3.656 MB / 396.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002094/0.1609, allocations: 1.042 MB / 397.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.1622, allocations: 0.6682 MB / 397.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.346e-05/0.1623, allocations: 17.3 kB / 397.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1624, allocations: 51.86 kB / 397.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 2.936e-06/0.1624, allocations: 3.938 kB / 397.9 MB, free: 8.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.0135/0.1759, allocations: 5.641 MB / 403.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.176, allocations: 94.42 kB / 403.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008199/0.1768, allocations: 0.5965 MB / 404.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.177, allocations: 65.69 kB / 404.3 MB, free: 1.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.1773, allocations: 338 kB / 404.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004212/0.1777, allocations: 0.4959 MB / 405.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004501/0.1781, allocations: 259.5 kB / 405.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002406/0.1784, allocations: 394.7 kB / 405.8 MB, free: 120 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.1796, allocations: 0.5818 MB / 406.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.1809, allocations: 0.727 MB / 407.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/0.1829, allocations: 1.058 MB / 408.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.1829, allocations: 0 / 408.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003527/0.1865, allocations: 1.795 MB / 409.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.1865, allocations: 8 kB / 409.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.1865, allocations: 0 / 409.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001911/0.1885, allocations: 0.9736 MB / 410.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000967/0.1894, allocations: 239.7 kB / 411.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.1918, allocations: 2.009 MB / 413.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.193, allocations: 147.9 kB / 413.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.1931, allocations: 51.98 kB / 413.4 MB, free: 8.414 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.0006333/0.1938, allocations: 265.6 kB / 413.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.194, allocations: 99.39 kB / 413.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003154/0.1943, allocations: 133.2 kB / 413.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.1943, allocations: 12 kB / 413.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-05/0.1944, allocations: 7.938 kB / 413.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.1944, allocations: 7.969 kB / 413.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006115/0.2005, allocations: 3.258 MB / 417.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.2005, allocations: 4 kB / 417.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.2016, allocations: 235.7 kB / 417.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.2034, allocations: 0.9071 MB / 418.3 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.2035, allocations: 51.94 kB / 418.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.2059, allocations: 1.948 MB / 420.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.2059, allocations: 4.031 kB / 420.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005068/0.2109, allocations: 2.589 MB / 422.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/0.2115, allocations: 292.3 kB / 423.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.2117, allocations: 40 kB / 423.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.2127, allocations: 151.8 kB / 423.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/0.2131, allocations: 193 kB / 423.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.2132, allocations: 55.89 kB / 423.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005114/0.2138, allocations: 422.8 kB / 424 MB, free: 13.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2138, allocations: 0 / 424 MB, free: 13.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008959/0.2147, allocations: 323.9 kB / 424.3 MB, free: 13.26 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.0004071/0.2151, allocations: 201.2 kB / 424.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.2183, allocations: 1.508 MB / 426 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2183, allocations: 0 / 426 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/0.2201, allocations: 0.8443 MB / 426.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.2211, allocations: 174.3 kB / 427 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007961/0.2291, allocations: 3.1 MB / 430.1 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006211/0.2298, allocations: 1.027 MB / 431.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005729/0.2304, allocations: 131.2 kB / 431.3 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/0.2306, allocations: 79.39 kB / 431.4 MB, free: 6.129 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.2306, allocations: 0 / 431.4 MB, free: 6.129 MB / 366.1 MB Notification: Performance of Templates: time 0.2701/0.5008, allocations: 22.36 MB / 453.7 MB, free: 74.59 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)