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.001449/0.001449, allocations: 115.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 202.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.341/1.341, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2034, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005946/0.2094, allocations: 5.159 MB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002938/0.2123, allocations: 2.024 MB / 417.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.2126, allocations: 19.88 kB / 417.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.213, allocations: 198.3 kB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00082/0.2138, allocations: 476.6 kB / 417.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.2147, allocations: 0.5147 MB / 418.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001378/0.2161, allocations: 1.737 MB / 420.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004106/0.2165, allocations: 327.5 kB / 420.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007499/0.2173, allocations: 0.7439 MB / 421.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008432/0.2181, allocations: 0.837 MB / 422 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002209/0.2183, allocations: 140 kB / 422.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.2188, allocations: 243.9 kB / 422.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003338/0.2192, allocations: 370.9 kB / 422.7 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005688/0.2197, allocations: 0.6532 MB / 423.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.2212, allocations: 1.627 MB / 425 MB, free: 2.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2212, allocations: 4 kB / 425 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2212, allocations: 4 kB / 425 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2212, allocations: 0 / 425 MB, free: 2.473 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.003273/0.2245, allocations: 1.635 MB / 426.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.2245, allocations: 12.03 kB / 426.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006479/0.2252, allocations: 168.1 kB / 426.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000907/0.2261, allocations: 0.6322 MB / 427.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.2263, allocations: 183.4 kB / 427.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/0.2265, allocations: 108 kB / 427.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00228/0.2288, allocations: 1.247 MB / 429 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.732e-05/0.2289, allocations: 7.953 kB / 429 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.229, allocations: 40 kB / 429 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.229, allocations: 24 kB / 429 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002853/0.2319, allocations: 1.284 MB / 430.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006122/0.238, allocations: 3.695 MB / 434 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.2402, allocations: 1.062 MB / 435.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.2415, allocations: 0.6489 MB / 435.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.223e-05/0.2416, allocations: 21.23 kB / 435.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.2417, allocations: 48.44 kB / 435.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 2.365e-06/0.2417, allocations: 0 / 435.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.01329/0.255, allocations: 5.51 MB / 441.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.255, allocations: 94.42 kB / 441.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007528/0.2558, allocations: 0.6318 MB / 442 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.2559, allocations: 65.69 kB / 442.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.2562, allocations: 354.1 kB / 442.4 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003791/0.2565, allocations: 0.5153 MB / 442.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004312/0.257, allocations: 259.5 kB / 443.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2571, allocations: 345.9 kB / 443.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.2583, allocations: 0.5427 MB / 444.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.2597, allocations: 0.6841 MB / 444.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002097/0.2618, allocations: 0.9912 MB / 445.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.2618, allocations: 0 / 445.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003579/0.2654, allocations: 1.726 MB / 447.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2654, allocations: 4 kB / 447.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2654, allocations: 4 kB / 447.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.2673, allocations: 0.8434 MB / 448.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.2683, allocations: 247.6 kB / 448.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002395/0.2707, allocations: 1.962 MB / 450.5 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.2717, allocations: 151.9 kB / 450.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.2719, allocations: 51.98 kB / 450.7 MB, free: 8.066 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.0004057/0.2723, allocations: 281.4 kB / 451 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/0.2725, allocations: 103.3 kB / 451.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002993/0.2728, allocations: 141.9 kB / 451.2 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.2728, allocations: 11.97 kB / 451.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2728, allocations: 96 / 451.3 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004265/0.2733, allocations: 316.2 kB / 451.6 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.2735, allocations: 47.94 kB / 451.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.2747, allocations: 175.8 kB / 451.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004226/0.2751, allocations: 201 kB / 452 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005374/0.2805, allocations: 1.881 MB / 453.9 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004372/0.2849, allocations: 2.189 MB / 456.1 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001331/0.2862, allocations: 0.627 MB / 456.7 MB, free: 2.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005541/0.2868, allocations: 446.8 kB / 457.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of Backend: time 5.51e-07/0.2868, allocations: 0 / 457.1 MB, free: 1.625 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.2903, allocations: 1.507 MB / 458.6 MB, free: 304 kB / 366.1 MB Notification: Performance of SimCode: time 0.003633/0.294, allocations: 3.08 MB / 461.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of Templates: time 0.03352/0.3275, allocations: 22.83 MB / 484.5 MB, free: 6.418 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)