Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.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.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008034/0.008034, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001611/0.001612, allocations: 193 kB / 16.67 MB, free: 5.934 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.605/1.605, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.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.001192/0.001192, allocations: 50.19 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09729, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01135/0.1087, allocations: 9.165 MB / 382.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007104/0.1158, allocations: 2.318 MB / 384.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002937/0.1189, allocations: 35.88 kB / 384.7 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001817/0.1207, allocations: 317.1 kB / 385 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.1236, allocations: 499.7 kB / 385.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.1258, allocations: 0.6516 MB / 386.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004267/0.13, allocations: 2.341 MB / 388.5 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002438/0.1325, allocations: 1.104 MB / 389.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.1347, allocations: 0.8489 MB / 390.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002115/0.1368, allocations: 0.8832 MB / 391.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008549/0.1377, allocations: 276 kB / 391.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.1387, allocations: 327.9 kB / 391.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007084/0.1394, allocations: 0.5026 MB / 392.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002065/0.1415, allocations: 0.9764 MB / 393.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005693/0.1472, allocations: 3.348 MB / 396.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.232e-05/0.1473, allocations: 4 kB / 396.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1473, allocations: 0 / 396.7 MB, free: 9.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001803/0.1475, allocations: 0 / 396.7 MB, free: 9.605 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.006682/0.1542, allocations: 1.969 MB / 398.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.1543, allocations: 12.03 kB / 398.7 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.1548, allocations: 187.9 kB / 398.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.1564, allocations: 0.8503 MB / 399.8 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.1567, allocations: 228.7 kB / 400 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.157, allocations: 167.9 kB / 400.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003353/0.1603, allocations: 1.682 MB / 401.8 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.104e-05/0.1604, allocations: 7.953 kB / 401.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.1605, allocations: 60 kB / 401.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.1606, allocations: 40 kB / 401.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003405/0.164, allocations: 1.562 MB / 403.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009653/0.1737, allocations: 5.835 MB / 409.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.1757, allocations: 0.937 MB / 410.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009951/0.1767, allocations: 0.5281 MB / 410.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.725e-05/0.1768, allocations: 16.94 kB / 410.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.178, allocations: 0.6567 MB / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.565e-06/0.178, allocations: 0 / 411.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03337/0.2114, allocations: 8.977 MB / 420.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/0.2117, allocations: 299.7 kB / 420.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001168/0.2128, allocations: 0.7935 MB / 421.5 MB, free: 184 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.2129, allocations: 53.7 kB / 421.6 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006118/0.2136, allocations: 0.6761 MB / 422.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003627/0.2139, allocations: 428.3 kB / 422.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004664/0.2144, allocations: 251.5 kB / 422.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.2146, allocations: 414.7 kB / 423.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/0.2165, allocations: 0.8082 MB / 424.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002183/0.2187, allocations: 1.13 MB / 425.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00347/0.2222, allocations: 1.646 MB / 426.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2222, allocations: 4 kB / 426.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004546/0.2268, allocations: 2.069 MB / 429 MB, free: 8.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.2268, allocations: 8 kB / 429 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.2269, allocations: 12.03 kB / 429 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000432/0.2273, allocations: 178.5 kB / 429.2 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.2289, allocations: 355.4 kB / 429.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003891/0.2328, allocations: 4.819 MB / 434.4 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.2344, allocations: 167.8 kB / 434.5 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.2345, allocations: 52 kB / 434.6 MB, free: 2.453 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007648/0.2353, allocations: 387.2 kB / 434.9 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.2355, allocations: 111.2 kB / 435.1 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.2358, allocations: 138 kB / 435.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.2358, allocations: 16 kB / 435.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.2358, allocations: 0 / 435.2 MB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.2358, allocations: 3.984 kB / 435.2 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007564/0.2434, allocations: 4.4 MB / 439.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/0.2435, allocations: 12 kB / 439.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.2446, allocations: 264.4 kB / 439.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005922/0.2452, allocations: 373.5 kB / 440.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.464e-05/0.2453, allocations: 40 kB / 440.3 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001869/0.2471, allocations: 2.283 MB / 442.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/0.2472, allocations: 15.94 kB / 442.6 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004826/0.252, allocations: 2.502 MB / 445.1 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005754/0.2526, allocations: 320.3 kB / 445.4 MB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.2528, allocations: 47.98 kB / 445.4 MB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009966/0.2538, allocations: 139.8 kB / 445.6 MB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003471/0.2541, allocations: 164.2 kB / 445.7 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-05/0.2542, allocations: 43.98 kB / 445.8 MB, free: 6.688 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007672/0.255, allocations: 0.5381 MB / 446.3 MB, free: 6.152 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.255, allocations: 0 / 446.3 MB, free: 6.152 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001255/0.2563, allocations: 347.9 kB / 446.7 MB, free: 5.812 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 110 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003309/0.2566, allocations: 182.8 kB / 446.8 MB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004161/0.2608, allocations: 2.054 MB / 448.9 MB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.2608, allocations: 0.625 kB / 448.9 MB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002162/0.263, allocations: 1.055 MB / 449.9 MB, free: 2.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.2641, allocations: 202.7 kB / 450.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1962/0.4604, allocations: 3.111 MB / 453.3 MB, free: 70.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.4615, allocations: 1.183 MB / 454.4 MB, free: 69.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001099/0.4626, allocations: 166.2 kB / 454.6 MB, free: 69.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004313/0.4631, allocations: 81.47 kB / 454.7 MB, free: 69.63 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4631, allocations: 0 / 454.7 MB, free: 69.63 MB / 382.1 MB Notification: Performance of Templates: time 0.02832/0.4914, allocations: 19.03 MB / 473.7 MB, free: 62.24 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)