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.001173/0.001173, allocations: 106.5 kB / 17.73 MB, free: 5.355 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.001168/0.001168, allocations: 187 kB / 18.66 MB, free: 4.434 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.393/1.393, 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.001295/0.001295, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.09087, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.187/0.2779, allocations: 9.183 MB / 383.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004959/0.2829, allocations: 2.307 MB / 386.1 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.2846, allocations: 33 kB / 386.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.2858, allocations: 325.1 kB / 386.5 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002079/0.2878, allocations: 498.8 kB / 387 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.2895, allocations: 0.6495 MB / 387.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003092/0.2926, allocations: 2.335 MB / 390 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001801/0.2944, allocations: 1.115 MB / 391.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001503/0.2959, allocations: 0.8586 MB / 391.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001197/0.2971, allocations: 0.8876 MB / 392.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004051/0.2976, allocations: 276.3 kB / 393.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006685/0.2982, allocations: 323.2 kB / 393.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000403/0.2986, allocations: 0.5017 MB / 393.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009925/0.2996, allocations: 0.9711 MB / 394.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003662/0.3033, allocations: 3.349 MB / 398.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3033, allocations: 1.844 kB / 398.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3034, allocations: 0 / 398.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.576e-05/0.3035, allocations: 4 kB / 398.2 MB, free: 1.406 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.003899/0.3074, allocations: 1.921 MB / 400.2 MB, free: 36 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3074, allocations: 9.844 kB / 400.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003107/0.3077, allocations: 235.8 kB / 400.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.3081, allocations: 179.6 kB / 400.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.3094, allocations: 0.8357 MB / 401.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.3097, allocations: 236.8 kB / 401.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.3099, allocations: 158.6 kB / 401.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003184/0.3131, allocations: 1.687 MB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.748e-05/0.3132, allocations: 6.656 kB / 403.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.3133, allocations: 61.75 kB / 403.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.3134, allocations: 37.12 kB / 403.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003422/0.3168, allocations: 1.566 MB / 405.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01288/0.3297, allocations: 5.827 MB / 411 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/0.3319, allocations: 0.935 MB / 411.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.333, allocations: 0.5284 MB / 412.4 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.361e-05/0.3331, allocations: 9.281 kB / 412.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001384/0.3345, allocations: 0.6573 MB / 413.1 MB, free: 7.184 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 5.691e-06/0.3345, allocations: 5.422 kB / 413.1 MB, free: 7.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03576/0.3703, allocations: 8.927 MB / 422 MB, free: 100 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.3705, allocations: 307.7 kB / 422.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.3717, allocations: 0.7857 MB / 423.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.3719, allocations: 53.7 kB / 423.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005888/0.3725, allocations: 0.6622 MB / 423.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004326/0.373, allocations: 398.2 kB / 424.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000576/0.3736, allocations: 251.4 kB / 424.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.3738, allocations: 406.7 kB / 424.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/0.3758, allocations: 0.816 MB / 425.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/0.3781, allocations: 1.122 MB / 426.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003722/0.3818, allocations: 1.658 MB / 428.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3819, allocations: 0 / 428.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004854/0.3867, allocations: 2.072 MB / 430.5 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.3868, allocations: 8.75 kB / 430.5 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.3868, allocations: 8 kB / 430.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.3872, allocations: 182.5 kB / 430.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.3889, allocations: 351.5 kB / 431.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/0.3932, allocations: 4.822 MB / 435.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.395, allocations: 167.9 kB / 436.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002181/0.3953, allocations: 48 kB / 436.1 MB, free: 1.258 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.0009504/0.3962, allocations: 387.2 kB / 436.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002985/0.3965, allocations: 110.7 kB / 436.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.3969, allocations: 137.9 kB / 436.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.3969, allocations: 12 kB / 436.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.3969, allocations: 4 kB / 436.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.3969, allocations: 3.984 kB / 436.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008689/0.4056, allocations: 4.408 MB / 441.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/0.4057, allocations: 8 kB / 441.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.4069, allocations: 263.6 kB / 441.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006044/0.4075, allocations: 373.8 kB / 441.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.4076, allocations: 36 kB / 441.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/0.4095, allocations: 2.271 MB / 444.1 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.4095, allocations: 16.06 kB / 444.1 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005054/0.4146, allocations: 2.494 MB / 446.6 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007148/0.4153, allocations: 327.7 kB / 446.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.4156, allocations: 43.98 kB / 447 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.4168, allocations: 143.8 kB / 447.1 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003361/0.4172, allocations: 164.2 kB / 447.3 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.4173, allocations: 47.98 kB / 447.3 MB, free: 5.496 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008717/0.4182, allocations: 0.5342 MB / 447.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4182, allocations: 0 / 447.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001425/0.4196, allocations: 348 kB / 448.2 MB, free: 4.625 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.005552/0.4252, allocations: 3.108 MB / 451.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/0.4296, allocations: 2.05 MB / 453.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.4296, allocations: 0 / 453.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.4319, allocations: 1.045 MB / 454.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.4335, allocations: 208.5 kB / 454.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0233/0.4568, allocations: 12.16 MB / 466.7 MB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.458, allocations: 1.182 MB / 467.9 MB, free: 88 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.459, allocations: 168.3 kB / 468.1 MB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000913/0.46, allocations: 0.5149 MB / 468.6 MB, free: 15.4 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.46, allocations: 0 / 468.6 MB, free: 15.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06609/0.5261, allocations: 29.93 MB / 498.5 MB, free: 1.383 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/14.23, allocations: 11.86 kB / 498.5 MB, free: 1.371 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)