Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001259/0.001259, allocations: 108.7 kB / 17.74 MB, free: 5.336 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.001292/0.001292, allocations: 194.9 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009777/0.0009777, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.206, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005575/0.2116, allocations: 4.979 MB / 406.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.2144, allocations: 1.79 MB / 408.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.2146, allocations: 19.88 kB / 408.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003356/0.215, allocations: 178.4 kB / 408.4 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007895/0.2158, allocations: 411.1 kB / 408.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007781/0.2166, allocations: 0.5069 MB / 409.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.2178, allocations: 1.62 MB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004247/0.2183, allocations: 323.1 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007104/0.219, allocations: 0.6855 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007892/0.2198, allocations: 0.7863 MB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.22, allocations: 128 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003966/0.2204, allocations: 219.8 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003038/0.2207, allocations: 331 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005274/0.2213, allocations: 0.6221 MB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.2225, allocations: 1.508 MB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2226, allocations: 0 / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.2226, allocations: 0 / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.2226, allocations: 7.938 kB / 415.5 MB, free: 10.72 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.003338/0.2259, allocations: 1.52 MB / 417 MB, free: 9.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.226, allocations: 12.03 kB / 417 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000502/0.2265, allocations: 139.5 kB / 417.2 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009276/0.2274, allocations: 0.6084 MB / 417.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.2276, allocations: 179.4 kB / 417.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.2278, allocations: 99.89 kB / 418 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.2302, allocations: 1.255 MB / 419.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/0.2302, allocations: 7.906 kB / 419.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.2303, allocations: 40 kB / 419.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.2304, allocations: 27.94 kB / 419.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002781/0.2331, allocations: 1.343 MB / 420.7 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00603/0.2392, allocations: 3.64 MB / 424.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002098/0.2413, allocations: 1.042 MB / 425.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.2426, allocations: 0.6801 MB / 426.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.09e-05/0.2427, allocations: 17.22 kB / 426.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.2427, allocations: 43.88 kB / 426.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=129): time 2.915e-06/0.2427, allocations: 0 / 426.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=141): time 0.01358/0.2563, allocations: 5.623 MB / 431.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.2564, allocations: 98.41 kB / 431.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006867/0.2571, allocations: 0.5887 MB / 432.4 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.2572, allocations: 61.7 kB / 432.5 MB, free: 9.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.2574, allocations: 337.2 kB / 432.8 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000361/0.2578, allocations: 481.2 kB / 433.3 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.2582, allocations: 263.4 kB / 433.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2584, allocations: 390.8 kB / 433.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.2596, allocations: 0.5818 MB / 434.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.2609, allocations: 0.7232 MB / 435.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.263, allocations: 1.061 MB / 436.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.263, allocations: 0 / 436.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003547/0.2665, allocations: 1.795 MB / 438.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2666, allocations: 8 kB / 438.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2666, allocations: 3.984 kB / 438.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001868/0.2685, allocations: 0.9619 MB / 439.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.2695, allocations: 243.6 kB / 439.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/0.2719, allocations: 2.009 MB / 441.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.273, allocations: 147.9 kB / 441.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.2731, allocations: 51.98 kB / 441.5 MB, free: 36 kB / 350.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.0004419/0.2736, allocations: 291.2 kB / 441.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.2738, allocations: 86.97 kB / 441.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003012/0.2741, allocations: 133.2 kB / 442 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.2741, allocations: 3.984 kB / 442 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2741, allocations: 0 / 442 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004676/0.2746, allocations: 299.8 kB / 442.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.2748, allocations: 36 kB / 442.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.2761, allocations: 171.7 kB / 442.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004065/0.2765, allocations: 201 kB / 442.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0053/0.2818, allocations: 1.9 MB / 444.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004347/0.2861, allocations: 2.258 MB / 446.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001287/0.2874, allocations: 0.6427 MB / 447.5 MB, free: 9.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004975/0.288, allocations: 426.8 kB / 447.9 MB, free: 9.566 MB / 366.1 MB Notification: Performance of Backend: time 4.4e-07/0.288, allocations: 0 / 447.9 MB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002504/0.2905, allocations: 1.1 MB / 449 MB, free: 8.461 MB / 366.1 MB Notification: Performance of SimCode: time 0.003576/0.2941, allocations: 2.885 MB / 451.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of Templates: time 0.03256/0.3266, allocations: 22.17 MB / 474.1 MB, free: 15.44 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)