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.007629/0.007629, allocations: 104.1 kB / 15.74 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.00172/0.00172, allocations: 198.4 kB / 16.68 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.596/1.596, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.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.001319/0.001319, allocations: 51.92 kB / 326.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1225, allocations: 46.61 MB / 373.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.2582/0.3808, allocations: 5.009 MB / 378.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003622/0.3845, allocations: 1.769 MB / 379.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005468/0.3851, allocations: 14.94 kB / 379.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004612/0.3856, allocations: 171.8 kB / 380.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.3866, allocations: 405.5 kB / 380.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.3879, allocations: 0.5089 MB / 381 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002398/0.3903, allocations: 1.619 MB / 382.6 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005187/0.3908, allocations: 319.8 kB / 382.9 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.392, allocations: 0.6756 MB / 383.6 MB, free: 8.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009984/0.393, allocations: 0.7849 MB / 384.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002176/0.3933, allocations: 127.1 kB / 384.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005205/0.3938, allocations: 227 kB / 384.8 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003725/0.3942, allocations: 333.3 kB / 385.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006867/0.3949, allocations: 0.6166 MB / 385.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.3968, allocations: 1.509 MB / 387.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.3968, allocations: 1.062 kB / 387.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3968, allocations: 4 kB / 387.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.3968, allocations: 0 / 387.2 MB, free: 7.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.003674/0.4005, allocations: 1.525 MB / 388.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.4006, allocations: 13.59 kB / 388.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005356/0.4011, allocations: 134.6 kB / 388.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.4022, allocations: 0.6079 MB / 389.5 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/0.4024, allocations: 177.7 kB / 389.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.4026, allocations: 104.8 kB / 389.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003089/0.4057, allocations: 1.254 MB / 391 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.4058, allocations: 15.22 kB / 391 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.4059, allocations: 40.53 kB / 391.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.406, allocations: 22.84 kB / 391.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003115/0.4091, allocations: 1.337 MB / 392.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00652/0.4156, allocations: 3.629 MB / 396.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.4178, allocations: 1.046 MB / 397.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.4191, allocations: 0.675 MB / 397.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.364e-05/0.4192, allocations: 18.83 kB / 397.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.4192, allocations: 43.91 kB / 397.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=129): time 3.597e-06/0.4192, allocations: 1.156 kB / 397.8 MB, free: 1.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.0149/0.4341, allocations: 5.631 MB / 403.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.4342, allocations: 96.7 kB / 403.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009318/0.4352, allocations: 0.5911 MB / 404.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.4354, allocations: 65.78 kB / 404.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.4357, allocations: 338.2 kB / 404.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004863/0.4362, allocations: 480.2 kB / 405 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004963/0.4367, allocations: 262.1 kB / 405.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.4369, allocations: 396.1 kB / 405.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.4382, allocations: 0.5847 MB / 406.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.4397, allocations: 0.7221 MB / 407 MB, free: 12.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.4418, allocations: 1.057 MB / 408 MB, free: 11.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.4418, allocations: 0 / 408 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00386/0.4457, allocations: 1.804 MB / 409.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.4457, allocations: 4 kB / 409.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4458, allocations: 0 / 409.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002014/0.4478, allocations: 0.9663 MB / 410.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.4489, allocations: 239.7 kB / 411 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002662/0.4515, allocations: 2.004 MB / 413 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.4531, allocations: 160 kB / 413.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.4533, allocations: 47.92 kB / 413.2 MB, free: 6.789 MB / 334.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.001032/0.4544, allocations: 273.6 kB / 413.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004919/0.4549, allocations: 94.86 kB / 413.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003707/0.4553, allocations: 129.3 kB / 413.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.4553, allocations: 19.98 kB / 413.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.472e-05/0.4553, allocations: 0.875 kB / 413.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.4553, allocations: 3.984 kB / 413.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007635/0.463, allocations: 3.254 MB / 417 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.463, allocations: 3.984 kB / 417 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.4643, allocations: 239.7 kB / 417.2 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.4663, allocations: 0.9031 MB / 418.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/0.4665, allocations: 53.94 kB / 418.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.4693, allocations: 1.938 MB / 420.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4693, allocations: 0 / 420.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006339/0.4757, allocations: 2.58 MB / 422.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009787/0.4767, allocations: 291.9 kB / 423 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/0.4771, allocations: 36 kB / 423 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.4784, allocations: 151.8 kB / 423.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005067/0.479, allocations: 200.9 kB / 423.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.4791, allocations: 59.88 kB / 423.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007279/0.4798, allocations: 418.8 kB / 423.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4799, allocations: 0 / 423.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001589/0.4814, allocations: 320 kB / 424.2 MB, free: 11.7 MB / 350.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.000519/0.482, allocations: 204.4 kB / 424.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003923/0.4859, allocations: 1.504 MB / 425.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4859, allocations: 0 / 425.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.4882, allocations: 0.8481 MB / 426.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.49, allocations: 173.5 kB / 426.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009557/0.4995, allocations: 3.074 MB / 430 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009467/0.5006, allocations: 1.023 MB / 431 MB, free: 4.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000972/0.5016, allocations: 131.2 kB / 431.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003908/0.502, allocations: 83.39 kB / 431.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of SimCode: time 1.332e-06/0.502, allocations: 0 / 431.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of Templates: time 0.04169/0.5437, allocations: 22.38 MB / 453.6 MB, free: 14.22 MB / 382.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)