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.001625/0.001625, allocations: 114.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001967/0.001967, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 60.08 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2018, allocations: 50.54 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005998/0.2078, allocations: 5.164 MB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.2109, allocations: 2.024 MB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.2112, allocations: 19.94 kB / 417.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.2116, allocations: 198.3 kB / 417.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008222/0.2125, allocations: 469 kB / 417.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008513/0.2133, allocations: 0.5186 MB / 418.3 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.2147, allocations: 1.737 MB / 420 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.2152, allocations: 319.5 kB / 420.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007678/0.216, allocations: 0.7401 MB / 421.1 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008401/0.2168, allocations: 0.8448 MB / 421.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000218/0.217, allocations: 136 kB / 422.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004172/0.2175, allocations: 243.9 kB / 422.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.2178, allocations: 370.9 kB / 422.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000582/0.2184, allocations: 0.6532 MB / 423.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00138/0.2198, allocations: 1.629 MB / 425 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2198, allocations: 0 / 425 MB, free: 2.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2198, allocations: 0 / 425 MB, free: 2.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2198, allocations: 0 / 425 MB, free: 2.5 MB / 334.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.003341/0.2232, allocations: 1.605 MB / 426.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.2232, allocations: 12.02 kB / 426.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006798/0.2239, allocations: 159.4 kB / 426.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009349/0.2249, allocations: 0.6278 MB / 427.4 MB, free: 16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.2251, allocations: 179.4 kB / 427.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.2253, allocations: 111.9 kB / 427.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/0.2275, allocations: 1.235 MB / 428.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.231e-05/0.2276, allocations: 15.89 kB / 428.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.2277, allocations: 44 kB / 428.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.2278, allocations: 24 kB / 429 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.2308, allocations: 1.284 MB / 430.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006301/0.2371, allocations: 3.675 MB / 433.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.2393, allocations: 1.07 MB / 435 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.2406, allocations: 0.6411 MB / 435.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.822e-05/0.2407, allocations: 25.3 kB / 435.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.2408, allocations: 48.42 kB / 435.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 2.875e-06/0.2408, allocations: 4 kB / 435.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.01349/0.2543, allocations: 5.492 MB / 441.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.2544, allocations: 94.42 kB / 441.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007767/0.2551, allocations: 0.6317 MB / 441.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.2553, allocations: 69.69 kB / 442 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.2556, allocations: 341.5 kB / 442.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003937/0.256, allocations: 493 kB / 442.8 MB, free: 128 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000439/0.2564, allocations: 271.5 kB / 443.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.2565, allocations: 345.9 kB / 443.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.2577, allocations: 0.5388 MB / 443.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.259, allocations: 0.688 MB / 444.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.2612, allocations: 0.9951 MB / 445.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2612, allocations: 0 / 445.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003691/0.2649, allocations: 1.718 MB / 447.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.2649, allocations: 11.94 kB / 447.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2649, allocations: 0 / 447.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001925/0.2668, allocations: 0.8435 MB / 448.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.2679, allocations: 251.6 kB / 448.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.2704, allocations: 1.958 MB / 450.4 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.2716, allocations: 159.8 kB / 450.6 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.2717, allocations: 51.98 kB / 450.6 MB, free: 8.184 MB / 366.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.0004654/0.2722, allocations: 277.4 kB / 450.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.2724, allocations: 106.9 kB / 451 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/0.2727, allocations: 145.8 kB / 451.1 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.2728, allocations: 3.984 kB / 451.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.2728, allocations: 3.984 kB / 451.1 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005221/0.2733, allocations: 311.7 kB / 451.4 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002042/0.2735, allocations: 39.94 kB / 451.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.2748, allocations: 175.8 kB / 451.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004436/0.2753, allocations: 205 kB / 451.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005548/0.2808, allocations: 1.889 MB / 453.7 MB, free: 5.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004439/0.2853, allocations: 2.169 MB / 455.9 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0013/0.2866, allocations: 0.627 MB / 456.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005772/0.2872, allocations: 446.8 kB / 457 MB, free: 1.762 MB / 366.1 MB Notification: Performance of Backend: time 4.81e-07/0.2872, allocations: 4 kB / 457 MB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003622/0.2908, allocations: 1.501 MB / 458.5 MB, free: 448 kB / 366.1 MB Notification: Performance of SimCode: time 0.003856/0.2947, allocations: 3.047 MB / 461.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of Templates: time 0.03355/0.3283, allocations: 22.83 MB / 484.4 MB, free: 6.598 MB / 398.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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)