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.00114/0.00114, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001153/0.001153, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.31/1.31, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001377/0.001378, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08916/0.09055, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2076/0.2982, allocations: 9.181 MB / 383.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005162/0.3034, allocations: 2.303 MB / 386.1 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001888/0.3054, allocations: 33.12 kB / 386.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.3067, allocations: 324.1 kB / 386.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.309, allocations: 498.6 kB / 387 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.3107, allocations: 0.6525 MB / 387.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.3139, allocations: 2.344 MB / 390 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001762/0.3157, allocations: 1.105 MB / 391.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.3173, allocations: 0.8434 MB / 391.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.3185, allocations: 0.8867 MB / 392.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000377/0.3189, allocations: 275.1 kB / 393.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005479/0.3194, allocations: 328.6 kB / 393.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003546/0.3198, allocations: 0.4998 MB / 393.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007775/0.3206, allocations: 0.9685 MB / 394.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003575/0.3242, allocations: 3.35 MB / 398.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3242, allocations: 0 / 398.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3242, allocations: 1.094 kB / 398.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.414e-05/0.3243, allocations: 1.547 kB / 398.2 MB, free: 1.426 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.00413/0.3284, allocations: 1.932 MB / 400.1 MB, free: 48 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3285, allocations: 12.45 kB / 400.2 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003023/0.3288, allocations: 223 kB / 400.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.3292, allocations: 180.4 kB / 400.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.3305, allocations: 0.8395 MB / 401.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002768/0.3308, allocations: 237.7 kB / 401.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.331, allocations: 160.7 kB / 401.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.3341, allocations: 1.685 MB / 403.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.958e-05/0.3341, allocations: 10.66 kB / 403.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000145/0.3343, allocations: 65.75 kB / 403.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.362e-05/0.3343, allocations: 37.12 kB / 403.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003274/0.3376, allocations: 1.561 MB / 405.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008949/0.3466, allocations: 5.828 MB / 411 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/0.3486, allocations: 0.9346 MB / 411.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.3497, allocations: 0.5267 MB / 412.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.977e-05/0.3498, allocations: 13.75 kB / 412.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.351, allocations: 0.6607 MB / 413.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 3.055e-06/0.351, allocations: 0 / 413.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03548/0.3865, allocations: 8.926 MB / 422 MB, free: 128 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.3867, allocations: 303.7 kB / 422.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.3881, allocations: 0.7857 MB / 423.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.3882, allocations: 57.73 kB / 423.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005934/0.3889, allocations: 0.6632 MB / 423.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.3892, allocations: 406.2 kB / 424.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000526/0.3898, allocations: 247.4 kB / 424.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.39, allocations: 410.7 kB / 424.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.3919, allocations: 0.8082 MB / 425.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.3941, allocations: 1.13 MB / 426.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003586/0.3977, allocations: 1.65 MB / 428.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.3978, allocations: 4 kB / 428.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004724/0.4025, allocations: 2.068 MB / 430.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.4025, allocations: 8 kB / 430.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.4026, allocations: 8 kB / 430.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004421/0.403, allocations: 182.4 kB / 430.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.4047, allocations: 359.4 kB / 431.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.4087, allocations: 4.814 MB / 435.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.4104, allocations: 163.9 kB / 436 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.4106, allocations: 52 kB / 436.1 MB, free: 1.285 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.0008594/0.4114, allocations: 395.3 kB / 436.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.4117, allocations: 106.7 kB / 436.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/0.4121, allocations: 137.9 kB / 436.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4121, allocations: 12 kB / 436.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4121, allocations: 0 / 436.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4122, allocations: 7.969 kB / 436.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008374/0.4205, allocations: 4.408 MB / 441.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-05/0.4206, allocations: 12 kB / 441.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.4217, allocations: 259.6 kB / 441.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006103/0.4224, allocations: 365.6 kB / 441.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.4225, allocations: 39.98 kB / 441.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.4245, allocations: 2.275 MB / 444.1 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/0.4245, allocations: 15.94 kB / 444.1 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005062/0.4296, allocations: 2.49 MB / 446.6 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/0.4303, allocations: 327.6 kB / 446.9 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/0.4307, allocations: 44 kB / 447 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.4319, allocations: 139.8 kB / 447.1 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003439/0.4322, allocations: 172.2 kB / 447.3 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.4323, allocations: 44 kB / 447.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009128/0.4333, allocations: 0.5303 MB / 447.8 MB, free: 4.992 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4333, allocations: 0 / 447.8 MB, free: 4.992 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001712/0.435, allocations: 348 kB / 448.2 MB, free: 4.652 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.005403/0.4404, allocations: 3.109 MB / 451.3 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004309/0.4447, allocations: 2.047 MB / 453.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.4448, allocations: 4 kB / 453.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.447, allocations: 1.051 MB / 454.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.4484, allocations: 199.3 kB / 454.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/0.4718, allocations: 12.17 MB / 466.7 MB, free: 1.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.4729, allocations: 1.178 MB / 467.9 MB, free: 112 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009043/0.4738, allocations: 176.3 kB / 468.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008541/0.4747, allocations: 0.511 MB / 468.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4747, allocations: 0 / 468.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06502/0.5397, allocations: 29.4 MB / 498 MB, free: 1.926 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.17, allocations: 19.84 kB / 498 MB, free: 1.906 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00064 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)