Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001215/0.001215, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 54.78 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08948, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01085/0.1004, allocations: 9.395 MB / 367 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005005/0.1054, allocations: 2.434 MB / 369.4 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.107, allocations: 31.88 kB / 369.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.1081, allocations: 344.9 kB / 369.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.1102, allocations: 0.4958 MB / 370.3 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001328/0.1116, allocations: 0.6515 MB / 370.9 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.188/0.2996, allocations: 2.349 MB / 373.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002795/0.3025, allocations: 1.118 MB / 374.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.3042, allocations: 0.8537 MB / 375.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001276/0.3055, allocations: 0.8932 MB / 376.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004198/0.306, allocations: 279.8 kB / 376.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005764/0.3066, allocations: 332 kB / 376.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003991/0.307, allocations: 0.5085 MB / 377.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009368/0.3079, allocations: 0.9846 MB / 378.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.3118, allocations: 3.36 MB / 381.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3118, allocations: 0.7969 kB / 381.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3118, allocations: 0 / 381.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.588e-05/0.3119, allocations: 0 / 381.6 MB, free: 8.199 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.00429/0.3162, allocations: 1.95 MB / 383.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.3163, allocations: 9.531 kB / 383.6 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002633/0.3166, allocations: 228.3 kB / 383.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000347/0.3169, allocations: 184.8 kB / 384 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.318, allocations: 0.8472 MB / 384.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002656/0.3183, allocations: 237.5 kB / 385 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.3186, allocations: 161.7 kB / 385.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/0.3215, allocations: 1.669 MB / 386.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.583e-05/0.3216, allocations: 5.766 kB / 386.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.3217, allocations: 66.7 kB / 386.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.097e-05/0.3217, allocations: 37.53 kB / 387 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003318/0.3251, allocations: 1.525 MB / 388.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008346/0.3334, allocations: 5.896 MB / 394.4 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.3355, allocations: 0.9254 MB / 395.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3365, allocations: 0.5132 MB / 395.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.842e-05/0.3366, allocations: 9.25 kB / 395.8 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.3378, allocations: 0.6376 MB / 396.5 MB, free: 14.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.554e-06/0.3378, allocations: 1.406 kB / 396.5 MB, free: 14.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03484/0.3727, allocations: 8.796 MB / 405.3 MB, free: 8.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.3728, allocations: 303.3 kB / 405.6 MB, free: 8.355 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.374, allocations: 0.8013 MB / 406.4 MB, free: 7.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3742, allocations: 53.7 kB / 406.4 MB, free: 7.484 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005253/0.3747, allocations: 0.6615 MB / 407.1 MB, free: 6.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/0.375, allocations: 420.5 kB / 407.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.3755, allocations: 246.8 kB / 407.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3757, allocations: 402.7 kB / 408.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/0.3776, allocations: 0.7965 MB / 408.9 MB, free: 4.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002116/0.3797, allocations: 1.102 MB / 410 MB, free: 3.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003486/0.3832, allocations: 1.606 MB / 411.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3832, allocations: 0 / 411.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004712/0.3879, allocations: 2.037 MB / 413.7 MB, free: 64 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.388, allocations: 8 kB / 413.7 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.388, allocations: 4 kB / 413.7 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004605/0.3884, allocations: 218.4 kB / 413.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.3901, allocations: 356.2 kB / 414.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003904/0.394, allocations: 4.849 MB / 419.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.3957, allocations: 163.9 kB / 419.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.3958, allocations: 52 kB / 419.3 MB, free: 10.04 MB / 334.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 (169): * Single equations (assignments): 166 * 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.0007455/0.3966, allocations: 395.5 kB / 419.7 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.3968, allocations: 106.7 kB / 419.8 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.397, allocations: 130.1 kB / 419.9 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3971, allocations: 12 kB / 419.9 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.3971, allocations: 8 kB / 420 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3971, allocations: 7.969 kB / 420 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007549/0.4046, allocations: 4.337 MB / 424.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.4047, allocations: 12 kB / 424.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.4058, allocations: 270.3 kB / 424.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004997/0.4063, allocations: 281.5 kB / 424.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.615e-05/0.4064, allocations: 36 kB / 424.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.4081, allocations: 2.198 MB / 427.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.4081, allocations: 11.56 kB / 427.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004595/0.4127, allocations: 2.393 MB / 429.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.4134, allocations: 327.7 kB / 429.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.4136, allocations: 47.98 kB / 429.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.4147, allocations: 143.8 kB / 430 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/0.415, allocations: 167.1 kB / 430.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.4151, allocations: 47.45 kB / 430.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007664/0.4159, allocations: 0.542 MB / 430.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4159, allocations: 3.938 kB / 430.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001243/0.4171, allocations: 344 kB / 431.1 MB, free: 13.9 MB / 350.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005737/0.4229, allocations: 3.242 MB / 434.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004776/0.4277, allocations: 2.052 MB / 436.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/0.4277, allocations: 4 kB / 436.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002144/0.4298, allocations: 1.028 MB / 437.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.4314, allocations: 214.7 kB / 437.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/0.4528, allocations: 12.58 MB / 450.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007791/0.4536, allocations: 1.179 MB / 451.4 MB, free: 8.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009462/0.4545, allocations: 168.4 kB / 451.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007783/0.4553, allocations: 0.5188 MB / 452.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4553, allocations: 0 / 452.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06019/0.5155, allocations: 29.36 MB / 481.4 MB, free: 11.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.58, allocations: 11.67 kB / 481.4 MB, free: 11.11 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)