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.001722/0.001722, allocations: 99.28 kB / 17.58 MB, free: 5.562 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.002318/0.002318, allocations: 192.2 kB / 18.51 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.507/2.507, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.00214/0.00214, allocations: 59.92 kB / 280.8 MB, free: 3.055 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1294, allocations: 46.62 MB / 327.4 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01474/0.1442, allocations: 9.173 MB / 336.6 MB, free: 11.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009062/0.1533, allocations: 2.303 MB / 338.9 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004148/0.1576, allocations: 35.81 kB / 338.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003053/0.1608, allocations: 317.1 kB / 339.2 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004883/0.1657, allocations: 499.7 kB / 339.7 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003165/0.1689, allocations: 0.6555 MB / 340.4 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006674/0.1756, allocations: 2.341 MB / 342.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003869/0.1795, allocations: 1.112 MB / 343.8 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0028/0.1824, allocations: 0.8412 MB / 344.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002446/0.1849, allocations: 0.8871 MB / 345.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.186, allocations: 276 kB / 345.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.1874, allocations: 327.9 kB / 346.1 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.1885, allocations: 0.4987 MB / 346.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002706/0.1912, allocations: 0.9763 MB / 347.6 MB, free: 12 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006876/0.1981, allocations: 3.295 MB / 350.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.852e-05/0.1982, allocations: 7.938 kB / 350.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1982, allocations: 0 / 350.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001018/0.1983, allocations: 0 / 350.9 MB, free: 12.7 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.008829/0.2072, allocations: 1.92 MB / 352.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.02e-05/0.2073, allocations: 8.031 kB / 352.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008673/0.2082, allocations: 231.9 kB / 353.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009316/0.2091, allocations: 178.9 kB / 353.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002661/0.2118, allocations: 0.8341 MB / 354.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004994/0.2123, allocations: 240.4 kB / 354.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004587/0.2128, allocations: 159.9 kB / 354.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006619/0.2195, allocations: 1.678 MB / 356.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.2196, allocations: 11.92 kB / 356.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003216/0.22, allocations: 64 kB / 356.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.494e-05/0.2201, allocations: 40 kB / 356.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007206/0.2273, allocations: 1.554 MB / 357.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02271/0.2501, allocations: 5.891 MB / 363.7 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004348/0.2545, allocations: 0.9403 MB / 364.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002165/0.2567, allocations: 0.5237 MB / 365.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/0.2569, allocations: 16.94 kB / 365.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002546/0.2595, allocations: 0.6606 MB / 365.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 7.965e-06/0.2595, allocations: 0 / 365.8 MB, free: 13.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.06914/0.3287, allocations: 8.918 MB / 374.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003076/0.329, allocations: 303.8 kB / 375.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002996/0.3321, allocations: 0.7856 MB / 375.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004355/0.3326, allocations: 53.7 kB / 375.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.3341, allocations: 0.6584 MB / 376.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009865/0.3351, allocations: 410.2 kB / 377 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001415/0.3365, allocations: 243.4 kB / 377.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0004026/0.337, allocations: 414.7 kB / 377.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004395/0.3414, allocations: 0.8082 MB / 378.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3447/0.6861, allocations: 1.133 MB / 379.5 MB, free: 52.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006524/0.6928, allocations: 1.649 MB / 381.2 MB, free: 51.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-05/0.6929, allocations: 2.094 kB / 381.2 MB, free: 51.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008031/0.7009, allocations: 2.067 MB / 383.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.774e-05/0.701, allocations: 12.61 kB / 383.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/0.7011, allocations: 6.5 kB / 383.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007173/0.7018, allocations: 187 kB / 383.5 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/0.7045, allocations: 351 kB / 383.8 MB, free: 50.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004739/0.7093, allocations: 4.824 MB / 388.6 MB, free: 46.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002533/0.7119, allocations: 165.8 kB / 388.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.7122, allocations: 49.75 kB / 388.8 MB, free: 46.3 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.001344/0.7136, allocations: 382.9 kB / 389.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.714, allocations: 107.2 kB / 389.3 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003763/0.7144, allocations: 134.8 kB / 389.4 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/0.7144, allocations: 11.75 kB / 389.5 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.949e-05/0.7145, allocations: 1.672 kB / 389.5 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/0.7145, allocations: 7.109 kB / 389.5 MB, free: 45.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.7272, allocations: 4.42 MB / 393.9 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.193e-05/0.7274, allocations: 13.28 kB / 393.9 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001866/0.7293, allocations: 261.4 kB / 394.2 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.7303, allocations: 369 kB / 394.5 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.7305, allocations: 39.55 kB / 394.5 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.7327, allocations: 2.282 MB / 396.8 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.739e-05/0.7327, allocations: 14.38 kB / 396.8 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007084/0.7398, allocations: 2.497 MB / 399.3 MB, free: 40.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008667/0.7407, allocations: 318.9 kB / 399.7 MB, free: 39.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.741, allocations: 49.75 kB / 399.7 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.7426, allocations: 138 kB / 399.8 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004948/0.7431, allocations: 165.6 kB / 400 MB, free: 39.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.7432, allocations: 45.23 kB / 400 MB, free: 39.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.7444, allocations: 0.5293 MB / 400.6 MB, free: 39.53 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7444, allocations: 0 / 400.6 MB, free: 39.53 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002066/0.7465, allocations: 345.9 kB / 400.9 MB, free: 39.49 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.006641/0.7531, allocations: 3.124 MB / 404 MB, free: 37.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006618/0.7598, allocations: 2.084 MB / 406.1 MB, free: 36.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-05/0.7599, allocations: 0 / 406.1 MB, free: 36.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.7627, allocations: 1.055 MB / 407.2 MB, free: 35.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/0.7647, allocations: 194.4 kB / 407.4 MB, free: 35.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02813/0.7929, allocations: 12.71 MB / 420.1 MB, free: 21.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007601/0.7937, allocations: 1.175 MB / 421.2 MB, free: 20.47 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001365/0.7951, allocations: 160.4 kB / 421.4 MB, free: 20.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009544/0.796, allocations: 0.511 MB / 421.9 MB, free: 19.8 MB / 318.1 MB Notification: Performance of SimCode: time 1.132e-06/0.796, allocations: 0 / 421.9 MB, free: 19.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09037/0.8864, allocations: 28.95 MB / 450.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.68/20.56, allocations: 11.95 kB / 450.9 MB, free: 6.75 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 & 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)