Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 110.6 kB / 18.41 MB, free: 4.648 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.001096/0.001096, allocations: 186 kB / 19.34 MB, free: 3.727 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.263/1.263, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.002168/0.002168, allocations: 59.91 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09091/0.09309, allocations: 46.61 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004045/0.09717, allocations: 3.035 MB / 378.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.09886, allocations: 0.9707 MB / 379.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.09908, allocations: 8 kB / 379.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.09933, allocations: 71.31 kB / 379.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.09962, allocations: 142.8 kB / 380 MB, free: 348 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005138/0.1001, allocations: 215.6 kB / 380.3 MB, free: 132 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1465/0.2467, allocations: 0.6275 MB / 380.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.247, allocations: 137.3 kB / 381 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004914/0.2475, allocations: 277.5 kB / 381.3 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004412/0.248, allocations: 304.9 kB / 381.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.2481, allocations: 47.44 kB / 381.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000248/0.2484, allocations: 103 kB / 381.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.2485, allocations: 125.6 kB / 381.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.2488, allocations: 249.2 kB / 382.1 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008061/0.2496, allocations: 0.594 MB / 382.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2496, allocations: 0.625 kB / 382.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2496, allocations: 0 / 382.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.2496, allocations: 2.938 kB / 382.7 MB, free: 9.52 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00149/0.2511, allocations: 0.7995 MB / 383.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2512, allocations: 8.875 kB / 383.5 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.2513, allocations: 50.27 kB / 383.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.2517, allocations: 332.6 kB / 383.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.2518, allocations: 27.84 kB / 383.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.923e-05/0.2519, allocations: 45.77 kB / 384 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008668/0.2528, allocations: 469.3 kB / 384.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.2528, allocations: 10.66 kB / 384.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.2528, allocations: 17.72 kB / 384.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2529, allocations: 12.81 kB / 384.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009326/0.2538, allocations: 487.8 kB / 384.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.2557, allocations: 1.11 MB / 386 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007553/0.2565, allocations: 385.9 kB / 386.4 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.257, allocations: 270.5 kB / 386.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.257, allocations: 4.5 kB / 386.7 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.2571, allocations: 38.66 kB / 386.7 MB, free: 7.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 1.964e-06/0.2571, allocations: 4 kB / 386.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004754/0.2618, allocations: 2.344 MB / 389.1 MB, free: 6.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.118e-05/0.2619, allocations: 57.56 kB / 389.1 MB, free: 6.656 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.2622, allocations: 286.7 kB / 389.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.642e-05/0.2622, allocations: 40.19 kB / 389.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.2623, allocations: 189.9 kB / 389.6 MB, free: 6.297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.2624, allocations: 201.9 kB / 389.8 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.2626, allocations: 114.8 kB / 389.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.695e-05/0.2627, allocations: 346.5 kB / 390.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.2631, allocations: 242.8 kB / 390.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004752/0.2636, allocations: 289.7 kB / 390.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007358/0.2644, allocations: 413.2 kB / 391.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2644, allocations: 2.75 kB / 391.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00154/0.2659, allocations: 0.7908 MB / 392 MB, free: 5.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.266, allocations: 9.781 kB / 392 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.266, allocations: 0 / 392 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.2668, allocations: 0.4943 MB / 392.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.2672, allocations: 91.61 kB / 392.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.2682, allocations: 1.409 MB / 394 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004857/0.2687, allocations: 75.12 kB / 394.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.157e-05/0.2688, allocations: 21.58 kB / 394.1 MB, free: 3.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * 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,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.269, allocations: 181.2 kB / 394.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.39e-05/0.2691, allocations: 44.19 kB / 394.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.2692, allocations: 58.77 kB / 394.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2692, allocations: 4.25 kB / 394.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2692, allocations: 2.297 kB / 394.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.2694, allocations: 162.9 kB / 394.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/0.2695, allocations: 18.61 kB / 394.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004606/0.27, allocations: 68.67 kB / 394.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.2702, allocations: 93.05 kB / 394.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001859/0.2721, allocations: 0.773 MB / 395.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001439/0.2735, allocations: 0.9659 MB / 396.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004512/0.274, allocations: 244.2 kB / 396.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2742, allocations: 203 kB / 396.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of Backend: time 7.92e-07/0.2742, allocations: 0 / 396.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.2754, allocations: 496.7 kB / 397.4 MB, free: 2.172 MB / 318.1 MB Notification: Performance of SimCode: time 0.001517/0.2769, allocations: 1.566 MB / 398.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of Templates: time 0.01532/0.2923, allocations: 9.499 MB / 408.4 MB, free: 13.14 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)