Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="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_3.2.3_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_3.2.3_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.001523/0.001524, allocations: 114.5 kB / 18.41 MB, free: 4.562 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.001807/0.001807, allocations: 186.2 kB / 19.34 MB, free: 3.645 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.273/1.273, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001262/0.001262, allocations: 55.94 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07144/0.07271, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.1451/0.2178, allocations: 5.001 MB / 380.8 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.2209, allocations: 1.767 MB / 382.6 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005528/0.2214, allocations: 14.94 kB / 382.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004161/0.2219, allocations: 176 kB / 382.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.223, allocations: 408 kB / 383.2 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.224, allocations: 0.5151 MB / 383.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.2254, allocations: 1.62 MB / 385.3 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003915/0.2258, allocations: 320.3 kB / 385.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007016/0.2265, allocations: 0.6894 MB / 386.3 MB, free: 8.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007151/0.2273, allocations: 0.7832 MB / 387.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.2275, allocations: 126.4 kB / 387.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003808/0.2278, allocations: 223.9 kB / 387.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.2281, allocations: 333 kB / 387.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004896/0.2286, allocations: 0.6208 MB / 388.4 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.2299, allocations: 1.505 MB / 389.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2299, allocations: 0 / 389.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2299, allocations: 4.938 kB / 389.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.93e-05/0.2299, allocations: 3.938 kB / 389.9 MB, free: 6.895 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.003198/0.2331, allocations: 1.526 MB / 391.4 MB, free: 6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.2332, allocations: 13.03 kB / 391.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004793/0.2337, allocations: 134.8 kB / 391.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008339/0.2345, allocations: 0.6066 MB / 392.2 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.2347, allocations: 178.2 kB / 392.3 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.2349, allocations: 100 kB / 392.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002338/0.2372, allocations: 1.256 MB / 393.7 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.033e-05/0.2373, allocations: 13.59 kB / 393.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.2374, allocations: 39.66 kB / 393.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.2374, allocations: 22.84 kB / 393.8 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00278/0.2402, allocations: 1.339 MB / 395.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005552/0.2458, allocations: 3.629 MB / 398.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.2477, allocations: 1.047 MB / 399.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.249, allocations: 0.6734 MB / 400.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.259e-05/0.2491, allocations: 16.73 kB / 400.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.2491, allocations: 45.5 kB / 400.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=129): time 2.575e-06/0.2491, allocations: 0 / 400.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01345/0.2626, allocations: 5.638 MB / 406.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.2626, allocations: 95.95 kB / 406.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.2634, allocations: 0.5921 MB / 406.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.2635, allocations: 64.38 kB / 406.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.2637, allocations: 331.5 kB / 407.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003807/0.2641, allocations: 485.8 kB / 407.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004475/0.2646, allocations: 260 kB / 408 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.2648, allocations: 395.2 kB / 408.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.2659, allocations: 0.5859 MB / 408.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.2673, allocations: 0.7189 MB / 409.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.2693, allocations: 1.06 MB / 410.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2694, allocations: 1.375 kB / 410.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003622/0.273, allocations: 1.796 MB / 412.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.273, allocations: 8 kB / 412.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.273, allocations: 3.938 kB / 412.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001874/0.2749, allocations: 0.9687 MB / 413.5 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.276, allocations: 244.5 kB / 413.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/0.2784, allocations: 2.001 MB / 415.7 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.2796, allocations: 147.9 kB / 415.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.2797, allocations: 51.98 kB / 415.9 MB, free: 6.59 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.0004294/0.2802, allocations: 269.5 kB / 416.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/0.2804, allocations: 94.88 kB / 416.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.2807, allocations: 133.2 kB / 416.4 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.2807, allocations: 7.969 kB / 416.4 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2807, allocations: 2.75 kB / 416.4 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/0.2811, allocations: 288 kB / 416.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/0.2813, allocations: 43.98 kB / 416.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.2826, allocations: 179.7 kB / 416.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003908/0.283, allocations: 193 kB / 417.1 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005307/0.2884, allocations: 1.905 MB / 419 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004376/0.2928, allocations: 2.258 MB / 421.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001322/0.2941, allocations: 0.6388 MB / 421.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004841/0.2946, allocations: 430.8 kB / 422.3 MB, free: 152 kB / 334.1 MB Notification: Performance of Backend: time 5.71e-07/0.2946, allocations: 0 / 422.3 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002491/0.2971, allocations: 1.098 MB / 423.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of SimCode: time 0.003542/0.3006, allocations: 2.89 MB / 426.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of Templates: time 0.03107/0.3317, allocations: 22.16 MB / 448.5 MB, free: 5.949 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)