Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001145/0.001145, allocations: 103.1 kB / 17.06 MB, free: 6.027 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.001272/0.001272, allocations: 195 kB / 18 MB, free: 5.105 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.598/1.598, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001359/0.001359, allocations: 47.92 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1068, allocations: 46.61 MB / 374.5 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.2456/0.3524, allocations: 5.002 MB / 379.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004725/0.3572, allocations: 1.763 MB / 381.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.3583, allocations: 16.31 kB / 381.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007636/0.3591, allocations: 172.6 kB / 381.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002121/0.3613, allocations: 405.8 kB / 381.8 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.363, allocations: 0.5153 MB / 382.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002851/0.3658, allocations: 1.616 MB / 384 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006547/0.3665, allocations: 320.4 kB / 384.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.3681, allocations: 0.6899 MB / 385 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001602/0.3697, allocations: 0.7793 MB / 385.7 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004868/0.3702, allocations: 126.3 kB / 385.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000939/0.3712, allocations: 227.6 kB / 386.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005337/0.3717, allocations: 334.7 kB / 386.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009801/0.3727, allocations: 0.6187 MB / 387 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002235/0.375, allocations: 1.508 MB / 388.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.375, allocations: 0 / 388.5 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.375, allocations: 4 kB / 388.5 MB, free: 7.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.375, allocations: 1.156 kB / 388.5 MB, free: 7.18 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.004099/0.3791, allocations: 1.524 MB / 390.1 MB, free: 6.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.354e-05/0.3792, allocations: 14.11 kB / 390.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007007/0.3799, allocations: 134.3 kB / 390.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.3811, allocations: 0.6051 MB / 390.8 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.3813, allocations: 178 kB / 391 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.3815, allocations: 101.1 kB / 391.1 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002435/0.384, allocations: 1.258 MB / 392.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.384, allocations: 13.45 kB / 392.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.3841, allocations: 41.48 kB / 392.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.3842, allocations: 22 kB / 392.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002999/0.3872, allocations: 1.336 MB / 393.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006579/0.3938, allocations: 3.633 MB / 397.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002053/0.3958, allocations: 1.043 MB / 398.4 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.3971, allocations: 0.6781 MB / 399.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.688e-05/0.3972, allocations: 19.84 kB / 399.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.3972, allocations: 45.41 kB / 399.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=129): time 3.437e-06/0.3972, allocations: 0 / 399.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01424/0.4115, allocations: 5.63 MB / 404.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.4116, allocations: 95.61 kB / 404.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009217/0.4125, allocations: 0.5922 MB / 405.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.4127, allocations: 64.59 kB / 405.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.4129, allocations: 340.2 kB / 405.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.4133, allocations: 477.1 kB / 406.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.4138, allocations: 259.7 kB / 406.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4139, allocations: 399.7 kB / 407 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.415, allocations: 0.5811 MB / 407.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.4163, allocations: 0.7263 MB / 408.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002027/0.4183, allocations: 1.058 MB / 409.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.4184, allocations: 0 / 409.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003705/0.4221, allocations: 1.803 MB / 411.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.4221, allocations: 4 kB / 411.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4221, allocations: 4 kB / 411.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/0.424, allocations: 0.9618 MB / 412.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.4251, allocations: 251.6 kB / 412.4 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00243/0.4275, allocations: 2 MB / 414.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.4288, allocations: 151.9 kB / 414.5 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.4289, allocations: 51.98 kB / 414.6 MB, free: 6.77 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.0006341/0.4295, allocations: 269.7 kB / 414.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.4297, allocations: 90.88 kB / 414.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000231/0.43, allocations: 137.2 kB / 415.1 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.43, allocations: 12 kB / 415.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.33e-05/0.43, allocations: 0 / 415.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.43, allocations: 7.969 kB / 415.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006036/0.4361, allocations: 3.253 MB / 418.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.4361, allocations: 0 / 418.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.4372, allocations: 239.7 kB / 418.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.4389, allocations: 0.9142 MB / 419.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.4391, allocations: 51.94 kB / 419.5 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.4414, allocations: 1.934 MB / 421.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4414, allocations: 3.938 kB / 421.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005087/0.4465, allocations: 2.583 MB / 424.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006999/0.4472, allocations: 287.9 kB / 424.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.4474, allocations: 40.88 kB / 424.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009963/0.4484, allocations: 155.8 kB / 424.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.4489, allocations: 189 kB / 424.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.449, allocations: 63.88 kB / 424.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005213/0.4495, allocations: 422.8 kB / 425.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4495, allocations: 0 / 425.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001021/0.4505, allocations: 320 kB / 425.5 MB, free: 11.68 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.000344/0.4509, allocations: 201.3 kB / 425.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003143/0.454, allocations: 1.507 MB / 427.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4541, allocations: 4 kB / 427.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.4558, allocations: 0.8442 MB / 428.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.4568, allocations: 173.1 kB / 428.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00809/0.4649, allocations: 3.066 MB / 431.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.4655, allocations: 1.027 MB / 432.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006208/0.4661, allocations: 135.2 kB / 432.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.4664, allocations: 83.39 kB / 432.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4664, allocations: 4 kB / 432.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of Templates: time 0.03646/0.5029, allocations: 23.23 MB / 455.8 MB, free: 13.34 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)