Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001265/0.001265, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 64.05 kB / 307.1 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.08782, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009892/0.09775, allocations: 9.391 MB / 367 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004455/0.1023, allocations: 2.434 MB / 369.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.1036, allocations: 31.88 kB / 369.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.1047, allocations: 344.9 kB / 369.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00177/0.1065, allocations: 0.4919 MB / 370.3 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.1079, allocations: 0.6593 MB / 370.9 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1315/0.2394, allocations: 2.356 MB / 373.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.2411, allocations: 1.114 MB / 374.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001146/0.2423, allocations: 0.8617 MB / 375.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.2433, allocations: 0.8903 MB / 376.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002857/0.2436, allocations: 278.8 kB / 376.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004101/0.244, allocations: 328.3 kB / 376.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.2443, allocations: 0.5111 MB / 377.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006315/0.245, allocations: 0.9822 MB / 378.2 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002463/0.2474, allocations: 3.358 MB / 381.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2474, allocations: 0 / 381.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2475, allocations: 0 / 381.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.2475, allocations: 1.125 kB / 381.6 MB, free: 8.168 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002913/0.2504, allocations: 1.956 MB / 383.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2505, allocations: 10 kB / 383.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002153/0.2507, allocations: 225.1 kB / 383.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.2509, allocations: 180.2 kB / 384 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008422/0.2518, allocations: 0.8481 MB / 384.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.252, allocations: 232.9 kB / 385 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.2522, allocations: 165.9 kB / 385.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.2547, allocations: 1.672 MB / 386.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.022e-05/0.2547, allocations: 6.391 kB / 386.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.2548, allocations: 61.81 kB / 386.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.563e-05/0.2549, allocations: 36.94 kB / 387 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.2576, allocations: 1.53 MB / 388.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006396/0.264, allocations: 5.891 MB / 394.4 MB, free: 116 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.2658, allocations: 0.9275 MB / 395.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009033/0.2667, allocations: 0.5132 MB / 395.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.192e-05/0.2668, allocations: 9.25 kB / 395.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.2678, allocations: 0.6391 MB / 396.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/0.2679, allocations: 0 / 396.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03019/0.298, allocations: 8.8 MB / 405.3 MB, free: 8.664 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.2982, allocations: 295.7 kB / 405.6 MB, free: 8.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009291/0.2991, allocations: 0.8013 MB / 406.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.2992, allocations: 53.7 kB / 406.4 MB, free: 7.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003942/0.2996, allocations: 0.662 MB / 407.1 MB, free: 6.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.2999, allocations: 420.2 kB / 407.5 MB, free: 6.355 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/0.3004, allocations: 246.5 kB / 407.7 MB, free: 6.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3005, allocations: 410.7 kB / 408.1 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.3022, allocations: 0.7887 MB / 408.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001903/0.3042, allocations: 1.106 MB / 410 MB, free: 3.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003175/0.3073, allocations: 1.606 MB / 411.6 MB, free: 2.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3074, allocations: 0 / 411.6 MB, free: 2.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004057/0.3114, allocations: 2.038 MB / 413.7 MB, free: 12 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3114, allocations: 8 kB / 413.7 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/0.3115, allocations: 8.047 kB / 413.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003785/0.3119, allocations: 221.8 kB / 413.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.3134, allocations: 348.8 kB / 414.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.3169, allocations: 4.834 MB / 419.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3182, allocations: 171.4 kB / 419.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3183, allocations: 52 kB / 419.3 MB, free: 9.996 MB / 334.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 (169): * Single equations (assignments): 166 * 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.0005119/0.3188, allocations: 396.4 kB / 419.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.319, allocations: 106.7 kB / 419.8 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.3192, allocations: 138.1 kB / 419.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.3192, allocations: 12 kB / 419.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3192, allocations: 4 kB / 420 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.3193, allocations: 11.97 kB / 420 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006718/0.326, allocations: 4.338 MB / 424.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.326, allocations: 12 kB / 424.3 MB, free: 4.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.327, allocations: 265.8 kB / 424.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.3275, allocations: 285 kB / 424.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-05/0.3276, allocations: 40 kB / 424.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.329, allocations: 2.194 MB / 427.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.3291, allocations: 11.47 kB / 427.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004124/0.3332, allocations: 2.39 MB / 429.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003872/0.3336, allocations: 323.7 kB / 429.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.3338, allocations: 47.98 kB / 429.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009718/0.3347, allocations: 143.8 kB / 430 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.335, allocations: 178.5 kB / 430.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-05/0.3351, allocations: 40 kB / 430.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006085/0.3357, allocations: 0.542 MB / 430.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3357, allocations: 4 kB / 430.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009268/0.3366, allocations: 344 kB / 431.1 MB, free: 13.85 MB / 350.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005064/0.3417, allocations: 3.241 MB / 434.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.3457, allocations: 2.047 MB / 436.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3457, allocations: 4 kB / 436.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.3476, allocations: 1.028 MB / 437.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009965/0.3486, allocations: 212.6 kB / 437.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/0.3675, allocations: 12.59 MB / 450.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006784/0.3682, allocations: 1.182 MB / 451.4 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007549/0.3689, allocations: 168.4 kB / 451.5 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007185/0.3696, allocations: 0.5188 MB / 452.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3697, allocations: 0 / 452.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.516/3.886, allocations: 29.35 MB / 481.4 MB, free: 11.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.68/20.57, allocations: 17.8 kB / 481.4 MB, free: 11.06 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)