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.001463/0.001463, allocations: 112.4 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.001553/0.001554, allocations: 183.1 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.321/1.321, 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.001191/0.001191, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08342/0.08462, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.214/0.2987, allocations: 9.182 MB / 383.8 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005108/0.3038, allocations: 2.305 MB / 386.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.3051, allocations: 31.91 kB / 386.2 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007838/0.3059, allocations: 324.2 kB / 386.5 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001253/0.3072, allocations: 0.4926 MB / 387 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.3084, allocations: 0.6519 MB / 387.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002341/0.3108, allocations: 2.35 MB / 390 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/0.3123, allocations: 1.112 MB / 391.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001726/0.314, allocations: 0.85 MB / 391.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3152, allocations: 0.885 MB / 392.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003308/0.3155, allocations: 274.3 kB / 393.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004915/0.316, allocations: 324.4 kB / 393.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.3164, allocations: 0.5094 MB / 393.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008033/0.3172, allocations: 0.9719 MB / 394.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003829/0.3211, allocations: 3.352 MB / 398.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3211, allocations: 1.438 kB / 398.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3211, allocations: 4 kB / 398.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.495e-05/0.3212, allocations: 0 / 398.3 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.003733/0.3249, allocations: 1.966 MB / 400.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.325, allocations: 14.41 kB / 400.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002929/0.3253, allocations: 223.3 kB / 400.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003415/0.3256, allocations: 184 kB / 400.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.327, allocations: 0.8476 MB / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/0.3272, allocations: 240.9 kB / 401.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/0.3275, allocations: 160 kB / 401.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003173/0.3307, allocations: 1.683 MB / 403.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.004e-05/0.3307, allocations: 9.328 kB / 403.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001455/0.3309, allocations: 61.75 kB / 403.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.122e-05/0.3309, allocations: 37.12 kB / 403.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003309/0.3342, allocations: 1.562 MB / 405.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009122/0.3434, allocations: 5.843 MB / 411.1 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.3455, allocations: 0.9449 MB / 412 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.3466, allocations: 0.5274 MB / 412.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.414e-05/0.3467, allocations: 14.45 kB / 412.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001388/0.3481, allocations: 0.6565 MB / 413.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 2.896e-06/0.3481, allocations: 0 / 413.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03513/0.3833, allocations: 8.966 MB / 422.2 MB, free: 8 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/0.3835, allocations: 307.7 kB / 422.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.3851, allocations: 0.7935 MB / 423.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/0.3853, allocations: 53.7 kB / 423.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007179/0.386, allocations: 0.676 MB / 424 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004507/0.3865, allocations: 436.3 kB / 424.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005495/0.387, allocations: 243.5 kB / 424.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.3873, allocations: 410.7 kB / 425.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/0.3893, allocations: 0.8121 MB / 425.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00239/0.3917, allocations: 1.13 MB / 427 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003753/0.3955, allocations: 1.642 MB / 428.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3955, allocations: 0 / 428.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004927/0.4004, allocations: 2.084 MB / 430.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.4005, allocations: 8 kB / 430.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.4005, allocations: 8 kB / 430.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004757/0.401, allocations: 182.5 kB / 430.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.4027, allocations: 347.5 kB / 431.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004295/0.407, allocations: 4.819 MB / 436.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4087, allocations: 163.9 kB / 436.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/0.4089, allocations: 55.98 kB / 436.3 MB, free: 1.121 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.0009897/0.4099, allocations: 383.2 kB / 436.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.4102, allocations: 115.2 kB / 436.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.4105, allocations: 133.9 kB / 436.9 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.4106, allocations: 12 kB / 436.9 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.4106, allocations: 0 / 436.9 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.4106, allocations: 7.969 kB / 436.9 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008358/0.419, allocations: 4.412 MB / 441.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.499e-05/0.419, allocations: 15.98 kB / 441.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.4202, allocations: 259.6 kB / 441.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005924/0.4208, allocations: 369.9 kB / 442 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4209, allocations: 35.98 kB / 442 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001882/0.4228, allocations: 2.271 MB / 444.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-05/0.4229, allocations: 20.06 kB / 444.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004968/0.4278, allocations: 2.498 MB / 446.8 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006956/0.4285, allocations: 328.3 kB / 447.1 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000307/0.4289, allocations: 51.98 kB / 447.2 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.4301, allocations: 131.9 kB / 447.3 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003303/0.4304, allocations: 172.2 kB / 447.5 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.4305, allocations: 47.98 kB / 447.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008905/0.4314, allocations: 0.5264 MB / 448 MB, free: 4.824 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4314, allocations: 4 kB / 448 MB, free: 4.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00152/0.433, allocations: 347.9 kB / 448.4 MB, free: 4.48 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.005425/0.4384, allocations: 3.124 MB / 451.5 MB, free: 1.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004348/0.4428, allocations: 2.038 MB / 453.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/0.4428, allocations: 9.75 kB / 453.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002176/0.445, allocations: 1.055 MB / 454.6 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.4465, allocations: 199.6 kB / 454.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/0.4698, allocations: 12.22 MB / 467 MB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.471, allocations: 1.186 MB / 468.2 MB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009113/0.4719, allocations: 164.4 kB / 468.4 MB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009864/0.4729, allocations: 0.511 MB / 468.9 MB, free: 15.19 MB / 398.1 MB Notification: Performance of SimCode: time 1.412e-06/0.473, allocations: 0 / 468.9 MB, free: 15.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06735/0.5403, allocations: 29.4 MB / 498.3 MB, free: 1.691 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.16, allocations: 15.86 kB / 498.3 MB, free: 1.676 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)