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.001133/0.001133, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001121/0.001121, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.342/1.342, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001305/0.001305, allocations: 52.14 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09333, allocations: 46.63 MB / 326.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.0104/0.1038, allocations: 9.106 MB / 336 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005142/0.1089, allocations: 2.264 MB / 338.3 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.1109, allocations: 27.94 kB / 338.3 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.1125, allocations: 254.2 kB / 338.5 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002391/0.1149, allocations: 412.9 kB / 338.9 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002047/0.117, allocations: 0.5854 MB / 339.5 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00395/0.1209, allocations: 2.349 MB / 341.9 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002057/0.123, allocations: 1.116 MB / 343 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001518/0.1245, allocations: 0.845 MB / 343.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00138/0.1259, allocations: 0.891 MB / 344.7 MB, free: 2.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006027/0.1266, allocations: 272 kB / 345 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007305/0.1273, allocations: 327.9 kB / 345.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006431/0.128, allocations: 0.4948 MB / 345.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.1295, allocations: 0.9842 MB / 346.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003248/0.1327, allocations: 3.291 MB / 350.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1328, allocations: 0 / 350.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1328, allocations: 0 / 350.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.813e-05/0.1329, allocations: 7.938 kB / 350.1 MB, free: 13.34 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.00475/0.1376, allocations: 1.924 MB / 352 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1377, allocations: 12.02 kB / 352 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005419/0.1382, allocations: 228 kB / 352.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.1386, allocations: 178.9 kB / 352.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.1398, allocations: 0.838 MB / 353.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.1401, allocations: 240.4 kB / 353.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/0.1404, allocations: 155.9 kB / 353.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.1433, allocations: 1.686 MB / 355.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.13e-05/0.1433, allocations: 4 kB / 355.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.1435, allocations: 60 kB / 355.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.76e-05/0.1435, allocations: 40 kB / 355.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.1465, allocations: 1.562 MB / 357 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008235/0.1548, allocations: 5.891 MB / 362.9 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001892/0.1567, allocations: 0.9402 MB / 363.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009795/0.1577, allocations: 0.5315 MB / 364.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.22e-05/0.1577, allocations: 9 kB / 364.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.1589, allocations: 0.6567 MB / 365 MB, free: 13.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.635e-06/0.1589, allocations: 3.938 kB / 365 MB, free: 13.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03248/0.1914, allocations: 8.919 MB / 374 MB, free: 4.906 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.1916, allocations: 303.7 kB / 374.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.1926, allocations: 0.7895 MB / 375 MB, free: 3.742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.1927, allocations: 53.7 kB / 375.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004898/0.1932, allocations: 0.6584 MB / 375.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.1936, allocations: 406.2 kB / 376.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004521/0.194, allocations: 247.4 kB / 376.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1942, allocations: 414.7 kB / 376.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/0.196, allocations: 0.8082 MB / 377.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1687/0.3648, allocations: 1.133 MB / 378.7 MB, free: 52.17 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.3687, allocations: 1.644 MB / 380.4 MB, free: 51.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.3687, allocations: 2.25 kB / 380.4 MB, free: 51.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004628/0.3734, allocations: 2.071 MB / 382.4 MB, free: 51.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.3734, allocations: 7.375 kB / 382.5 MB, free: 51.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.3734, allocations: 11.03 kB / 382.5 MB, free: 51.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004072/0.3739, allocations: 183 kB / 382.6 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.3755, allocations: 352.8 kB / 383 MB, free: 51.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.3786, allocations: 4.812 MB / 387.8 MB, free: 46.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.3804, allocations: 166 kB / 388 MB, free: 46.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.3805, allocations: 50.81 kB / 388 MB, free: 46.44 MB / 318.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.0007885/0.3813, allocations: 390.7 kB / 388.4 MB, free: 46.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.3815, allocations: 111.9 kB / 388.5 MB, free: 46.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.3818, allocations: 133.5 kB / 388.6 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.3818, allocations: 11.94 kB / 388.6 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3818, allocations: 1.094 kB / 388.6 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.3818, allocations: 7.453 kB / 388.7 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007796/0.3896, allocations: 4.419 MB / 393.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/0.3897, allocations: 10.56 kB / 393.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.3908, allocations: 262.1 kB / 393.3 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006029/0.3914, allocations: 366.1 kB / 393.7 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.583e-05/0.3915, allocations: 41.42 kB / 393.7 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.3929, allocations: 2.283 MB / 396 MB, free: 41.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/0.393, allocations: 15.78 kB / 396 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004316/0.3973, allocations: 2.489 MB / 398.5 MB, free: 40.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005874/0.3979, allocations: 327.4 kB / 398.8 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.3981, allocations: 42 kB / 398.9 MB, free: 39.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009621/0.399, allocations: 138.7 kB / 399 MB, free: 39.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/0.3994, allocations: 169.6 kB / 399.2 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.3995, allocations: 48.83 kB / 399.2 MB, free: 39.9 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007116/0.4002, allocations: 0.5333 MB / 399.8 MB, free: 39.67 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4002, allocations: 0 / 399.8 MB, free: 39.67 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001296/0.4015, allocations: 351.7 kB / 400.1 MB, free: 39.63 MB / 318.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.004193/0.4057, allocations: 3.103 MB / 403.2 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004137/0.4099, allocations: 2.087 MB / 405.3 MB, free: 36.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/0.4099, allocations: 3.531 kB / 405.3 MB, free: 36.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.4118, allocations: 1.055 MB / 406.4 MB, free: 35.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.413, allocations: 197.5 kB / 406.6 MB, free: 35.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02052/0.4335, allocations: 13.35 MB / 419.9 MB, free: 21.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007053/0.4343, allocations: 1.175 MB / 421.1 MB, free: 20.31 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009017/0.4352, allocations: 164.4 kB / 421.2 MB, free: 20.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/0.4359, allocations: 0.5188 MB / 421.8 MB, free: 19.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4359, allocations: 0 / 421.8 MB, free: 19.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05219/0.4881, allocations: 28.67 MB / 450.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.4884, allocations: 252.3 kB / 450.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.482/2.97, allocations: 0 / 450.7 MB, free: 6.633 MB / 334.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)