Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001951/0.001951, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.66 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.0926, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006129/0.09876, allocations: 5.153 MB / 364.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.1023, allocations: 2.036 MB / 366.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006224/0.103, allocations: 15.94 kB / 366.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005625/0.1036, allocations: 194.2 kB / 366.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001332/0.105, allocations: 484.8 kB / 366.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1062, allocations: 0.5147 MB / 367.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001707/0.1079, allocations: 1.737 MB / 369 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004358/0.1084, allocations: 323.5 kB / 369.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009273/0.1093, allocations: 0.7283 MB / 370.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009335/0.1103, allocations: 0.8448 MB / 370.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.1105, allocations: 140 kB / 371.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1109, allocations: 232 kB / 371.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003471/0.1113, allocations: 370.9 kB / 371.6 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1559/0.2671, allocations: 0.6583 MB / 372.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002423/0.2696, allocations: 1.62 MB / 373.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2696, allocations: 3.094 kB / 373.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2696, allocations: 0.8438 kB / 373.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.2697, allocations: 0 / 373.9 MB, free: 12.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00362/0.2733, allocations: 1.607 MB / 375.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.2733, allocations: 9.594 kB / 375.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006908/0.274, allocations: 161.8 kB / 375.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.2751, allocations: 0.6275 MB / 376.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/0.2753, allocations: 182.6 kB / 376.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.2756, allocations: 106.2 kB / 376.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.278, allocations: 1.242 MB / 377.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.201e-05/0.278, allocations: 13.39 kB / 377.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.2781, allocations: 42.53 kB / 377.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.2781, allocations: 22.34 kB / 377.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/0.2809, allocations: 1.287 MB / 379.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006241/0.2871, allocations: 3.67 MB / 382.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.2891, allocations: 1.068 MB / 384 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.2903, allocations: 0.6548 MB / 384.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.686e-05/0.2904, allocations: 16.59 kB / 384.6 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.2905, allocations: 45.5 kB / 384.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=136): time 3.386e-06/0.2905, allocations: 0 / 384.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=148): time 0.01277/0.3032, allocations: 5.503 MB / 390.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.3033, allocations: 93.08 kB / 390.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007876/0.3041, allocations: 0.6398 MB / 390.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.3042, allocations: 61.83 kB / 391 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.3044, allocations: 343 kB / 391.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.3047, allocations: 0.4949 MB / 391.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003991/0.3051, allocations: 262.6 kB / 392 MB, free: 4.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.37e-05/0.3051, allocations: 343.6 kB / 392.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.3062, allocations: 0.5436 MB / 392.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.3074, allocations: 0.6802 MB / 393.6 MB, free: 3.707 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.3092, allocations: 0.9868 MB / 394.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3092, allocations: 0 / 394.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003152/0.3124, allocations: 1.727 MB / 396.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3124, allocations: 6.812 kB / 396.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3124, allocations: 2.75 kB / 396.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/0.314, allocations: 0.845 MB / 397.2 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009081/0.315, allocations: 246 kB / 397.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.3169, allocations: 1.961 MB / 399.4 MB, free: 392 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.3181, allocations: 147.5 kB / 399.5 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3182, allocations: 55.78 kB / 399.6 MB, free: 304 kB / 302.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 (126): * Single equations (assignments): 124 * 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,45), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0005032/0.3187, allocations: 279.5 kB / 399.8 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.3189, allocations: 94.38 kB / 399.9 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004519/0.3194, allocations: 159.1 kB / 400.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.3194, allocations: 14.25 kB / 400.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/0.3194, allocations: 2.078 kB / 400.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/0.3194, allocations: 13.12 kB / 400.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006213/0.3257, allocations: 3.265 MB / 403.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3257, allocations: 0 / 403.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.3268, allocations: 241.1 kB / 403.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/0.3286, allocations: 0.7942 MB / 404.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.3287, allocations: 51.92 kB / 404.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.3312, allocations: 1.898 MB / 406.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3312, allocations: 2.625 kB / 406.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005242/0.3364, allocations: 2.462 MB / 408.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.3372, allocations: 307.7 kB / 409.1 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003144/0.3375, allocations: 44 kB / 409.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.3387, allocations: 147.9 kB / 409.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/0.3391, allocations: 212.8 kB / 409.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.3393, allocations: 55.95 kB / 409.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007688/0.3401, allocations: 446.8 kB / 410 MB, free: 6.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3401, allocations: 0.6562 kB / 410 MB, free: 6.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001318/0.3414, allocations: 320 kB / 410.3 MB, free: 6.031 MB / 318.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,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,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 (95): * Single equations (assignments): 93 * 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,7), (4,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001143/0.3426, allocations: 433.3 kB / 410.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003487/0.3461, allocations: 1.464 MB / 412.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3461, allocations: 0 / 412.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001926/0.348, allocations: 0.8295 MB / 413 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.3494, allocations: 213 kB / 413.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008191/0.3576, allocations: 3.159 MB / 416.4 MB, free: 132 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007982/0.3584, allocations: 1.046 MB / 417.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007287/0.3592, allocations: 159.5 kB / 417.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.3595, allocations: 103.4 kB / 417.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3596, allocations: 0 / 417.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of Templates: time 0.03638/0.3959, allocations: 22.21 MB / 439.9 MB, free: 8.746 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)