Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.01023/0.01023, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001728/0.001728, allocations: 192.4 kB / 16.67 MB, free: 5.973 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.669/1.669, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001164/0.001164, allocations: 54.48 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1119, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01007/0.122, allocations: 9.173 MB / 382.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005028/0.1271, allocations: 2.314 MB / 384.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.1284, allocations: 35.81 kB / 384.7 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008909/0.1293, allocations: 321 kB / 385 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00198/0.1313, allocations: 495.7 kB / 385.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1328, allocations: 0.6555 MB / 386.2 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/0.1353, allocations: 2.337 MB / 388.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.1369, allocations: 1.119 MB / 389.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.1383, allocations: 0.8452 MB / 390.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.1393, allocations: 0.8831 MB / 391.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002959/0.1396, allocations: 276 kB / 391.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004237/0.1401, allocations: 320 kB / 391.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003925/0.1405, allocations: 0.5065 MB / 392.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008696/0.1413, allocations: 0.9686 MB / 393.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.1445, allocations: 3.345 MB / 396.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1445, allocations: 0 / 396.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1445, allocations: 3.984 kB / 396.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.659e-05/0.1446, allocations: 0 / 396.7 MB, free: 9.598 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.004271/0.1488, allocations: 1.924 MB / 398.7 MB, free: 7.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.1489, allocations: 8.031 kB / 398.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000299/0.1492, allocations: 179 kB / 398.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.1505, allocations: 0.8381 MB / 399.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.1508, allocations: 232.7 kB / 399.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002312/0.151, allocations: 163.8 kB / 400.1 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/0.154, allocations: 1.69 MB / 401.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.952e-05/0.154, allocations: 7.906 kB / 401.8 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.1542, allocations: 64 kB / 401.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.1542, allocations: 36 kB / 401.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003154/0.1574, allocations: 1.558 MB / 403.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008893/0.1663, allocations: 5.821 MB / 409.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.1685, allocations: 0.948 MB / 410.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.1696, allocations: 0.5248 MB / 410.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-05/0.1696, allocations: 9 kB / 410.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.1709, allocations: 0.6567 MB / 411.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.055e-06/0.1709, allocations: 0 / 411.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03355/0.2044, allocations: 8.929 MB / 420.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.2046, allocations: 299.7 kB / 420.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/0.2058, allocations: 0.7933 MB / 421.4 MB, free: 300 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.2059, allocations: 57.73 kB / 421.5 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005681/0.2065, allocations: 0.6546 MB / 422.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003364/0.2069, allocations: 418 kB / 422.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004425/0.2073, allocations: 243.4 kB / 422.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.2075, allocations: 414.7 kB / 423.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001848/0.2094, allocations: 0.8121 MB / 424 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.2116, allocations: 1.126 MB / 425.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003622/0.2152, allocations: 1.642 MB / 426.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.2153, allocations: 4 kB / 426.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004666/0.2199, allocations: 2.072 MB / 428.8 MB, free: 8.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.22, allocations: 8 kB / 428.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.22, allocations: 8 kB / 428.8 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000443/0.2204, allocations: 186.5 kB / 429 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.222, allocations: 351.5 kB / 429.4 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/0.2262, allocations: 4.818 MB / 434.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.2279, allocations: 163.8 kB / 434.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.2281, allocations: 55.98 kB / 434.4 MB, free: 2.598 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.0007929/0.2289, allocations: 391.2 kB / 434.8 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.2291, allocations: 102.7 kB / 434.9 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002703/0.2294, allocations: 130 kB / 435 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.2294, allocations: 12 kB / 435 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.2294, allocations: 0 / 435 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.2294, allocations: 7.969 kB / 435 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007754/0.2372, allocations: 4.412 MB / 439.4 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/0.2372, allocations: 12 kB / 439.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.2383, allocations: 255.6 kB / 439.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005635/0.2389, allocations: 373.6 kB / 440.1 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.271e-05/0.239, allocations: 35.98 kB / 440.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.2407, allocations: 2.267 MB / 442.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/0.2407, allocations: 15.94 kB / 442.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004589/0.2453, allocations: 2.494 MB / 444.9 MB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005643/0.2459, allocations: 323.7 kB / 445.2 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.2461, allocations: 47.98 kB / 445.2 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.2471, allocations: 139.9 kB / 445.4 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.2474, allocations: 168.2 kB / 445.5 MB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-05/0.2475, allocations: 43.98 kB / 445.6 MB, free: 6.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000737/0.2483, allocations: 0.5342 MB / 446.1 MB, free: 6.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2483, allocations: 3.938 kB / 446.1 MB, free: 6.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001264/0.2496, allocations: 348 kB / 446.5 MB, free: 5.984 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.0003346/0.2499, allocations: 190.9 kB / 446.7 MB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004109/0.254, allocations: 2.046 MB / 448.7 MB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/0.254, allocations: 0 / 448.7 MB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002136/0.2562, allocations: 1.06 MB / 449.8 MB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.2575, allocations: 207 kB / 450 MB, free: 2.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2138/0.4713, allocations: 3.065 MB / 453 MB, free: 70.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.4723, allocations: 1.179 MB / 454.2 MB, free: 69.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001046/0.4734, allocations: 167.1 kB / 454.4 MB, free: 69.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.4738, allocations: 80.83 kB / 454.4 MB, free: 69.91 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4738, allocations: 0 / 454.4 MB, free: 69.91 MB / 382.1 MB Notification: Performance of Templates: time 0.0346/0.5084, allocations: 19.03 MB / 473.5 MB, free: 62.51 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)