Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001913/0.001913, allocations: 187 kB / 18.66 MB, free: 4.414 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.303/1.303, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001339/0.001339, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08505, allocations: 46.63 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.1828/0.2679, allocations: 9.166 MB / 383.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005035/0.2729, allocations: 2.312 MB / 386.1 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001851/0.2749, allocations: 28.44 kB / 386.2 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.2762, allocations: 329.6 kB / 386.5 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002451/0.2786, allocations: 498.8 kB / 387 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001887/0.2806, allocations: 0.6486 MB / 387.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003813/0.2844, allocations: 2.34 MB / 390 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.2865, allocations: 1.108 MB / 391.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.2881, allocations: 0.8631 MB / 391.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001898/0.29, allocations: 0.8869 MB / 392.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000795/0.2908, allocations: 276.2 kB / 393.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.292, allocations: 324.6 kB / 393.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007776/0.2928, allocations: 0.5002 MB / 393.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/0.2947, allocations: 0.9717 MB / 394.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004335/0.299, allocations: 3.35 MB / 398.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.299, allocations: 1.359 kB / 398.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.299, allocations: 0 / 398.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000116/0.2992, allocations: 1.062 kB / 398.2 MB, free: 1.438 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.005521/0.3047, allocations: 1.929 MB / 400.2 MB, free: 64 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3047, allocations: 10.28 kB / 400.2 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006115/0.3054, allocations: 222.9 kB / 400.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005876/0.306, allocations: 185.8 kB / 400.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.3077, allocations: 0.8337 MB / 401.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003153/0.3081, allocations: 239.2 kB / 401.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003368/0.3084, allocations: 156.5 kB / 401.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003397/0.3118, allocations: 1.688 MB / 403.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-05/0.3119, allocations: 9.141 kB / 403.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.3121, allocations: 62.34 kB / 403.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/0.3121, allocations: 37.97 kB / 403.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/0.3156, allocations: 1.562 MB / 405.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.3258, allocations: 5.828 MB / 411 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.3279, allocations: 0.9384 MB / 411.9 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.329, allocations: 0.5225 MB / 412.4 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.885e-05/0.329, allocations: 9.625 kB / 412.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.3303, allocations: 0.6616 MB / 413.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 4.028e-06/0.3303, allocations: 0 / 413.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.0327/0.363, allocations: 8.933 MB / 422 MB, free: 160 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001828/0.3632, allocations: 295.7 kB / 422.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/0.3648, allocations: 0.7896 MB / 423.1 MB, free: 15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.365, allocations: 53.7 kB / 423.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006688/0.3657, allocations: 0.6661 MB / 423.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/0.3661, allocations: 402.2 kB / 424.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005542/0.3667, allocations: 243.5 kB / 424.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00025/0.3669, allocations: 410.7 kB / 424.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/0.3688, allocations: 0.8159 MB / 425.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.371, allocations: 1.127 MB / 426.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003323/0.3743, allocations: 1.65 MB / 428.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.3743, allocations: 8 kB / 428.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004598/0.379, allocations: 2.068 MB / 430.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.379, allocations: 8 kB / 430.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.379, allocations: 11.98 kB / 430.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000459/0.3795, allocations: 174.5 kB / 430.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.3812, allocations: 355.5 kB / 431.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004098/0.3853, allocations: 4.826 MB / 435.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.3869, allocations: 159.9 kB / 436.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/0.3871, allocations: 52 kB / 436.1 MB, free: 1.32 MB / 350.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.0008427/0.3879, allocations: 387.2 kB / 436.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002934/0.3882, allocations: 110.7 kB / 436.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.3885, allocations: 130 kB / 436.7 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3885, allocations: 15.94 kB / 436.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3886, allocations: 0 / 436.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.3886, allocations: 7.969 kB / 436.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008105/0.3967, allocations: 4.412 MB / 441.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/0.3967, allocations: 12 kB / 441.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.3979, allocations: 259.6 kB / 441.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005819/0.3985, allocations: 369.8 kB / 441.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.3986, allocations: 39.98 kB / 441.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.4005, allocations: 2.279 MB / 444.1 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/0.4005, allocations: 15.94 kB / 444.1 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004641/0.4051, allocations: 2.494 MB / 446.6 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006611/0.4058, allocations: 327.6 kB / 446.9 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003152/0.4062, allocations: 47.98 kB / 447 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.4074, allocations: 135.9 kB / 447.1 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.4078, allocations: 168.2 kB / 447.3 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.704e-05/0.4079, allocations: 47.98 kB / 447.3 MB, free: 5.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008737/0.4087, allocations: 0.5303 MB / 447.8 MB, free: 5.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4088, allocations: 0 / 447.8 MB, free: 5.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4102, allocations: 352 kB / 448.2 MB, free: 4.68 MB / 366.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.005111/0.4153, allocations: 3.093 MB / 451.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004155/0.4195, allocations: 2.054 MB / 453.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/0.4196, allocations: 4 kB / 453.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.4217, allocations: 1.048 MB / 454.4 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.4233, allocations: 195.3 kB / 454.6 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/0.4462, allocations: 12.17 MB / 466.7 MB, free: 1.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/0.4475, allocations: 1.182 MB / 467.9 MB, free: 148 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008768/0.4484, allocations: 172.4 kB / 468.1 MB, free: 15.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009462/0.4494, allocations: 0.5149 MB / 468.6 MB, free: 15.46 MB / 398.1 MB Notification: Performance of SimCode: time 2.925e-06/0.4494, allocations: 0 / 468.6 MB, free: 15.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06819/0.5176, allocations: 29.92 MB / 498.5 MB, free: 1.445 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.17, allocations: 11.86 kB / 498.5 MB, free: 1.434 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)