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.001338/0.001338, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 55.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01167/0.2748, allocations: 9.396 MB / 418.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005054/0.2799, allocations: 2.438 MB / 420.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.2811, allocations: 31.88 kB / 420.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.2821, allocations: 344.9 kB / 421 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0015/0.2836, allocations: 0.4958 MB / 421.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.285, allocations: 0.6554 MB / 422.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002936/0.2879, allocations: 2.357 MB / 424.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.2897, allocations: 1.119 MB / 425.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001407/0.2911, allocations: 0.8568 MB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.2923, allocations: 0.8909 MB / 427.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004139/0.2927, allocations: 280 kB / 427.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006453/0.2934, allocations: 336 kB / 427.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005676/0.294, allocations: 0.5026 MB / 428.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.2951, allocations: 0.9842 MB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00378/0.2989, allocations: 3.409 MB / 432.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2989, allocations: 4 kB / 432.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2989, allocations: 0 / 432.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.316e-05/0.299, allocations: 0 / 432.8 MB, free: 9.293 MB / 350.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.004188/0.3032, allocations: 1.992 MB / 434.8 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.3032, allocations: 12.03 kB / 434.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003545/0.3036, allocations: 228 kB / 435.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003884/0.304, allocations: 191.8 kB / 435.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.3054, allocations: 0.8502 MB / 436.1 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000313/0.3058, allocations: 248.4 kB / 436.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002772/0.3061, allocations: 156 kB / 436.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003469/0.3095, allocations: 1.671 MB / 438.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.592e-05/0.3096, allocations: 11.95 kB / 438.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/0.3098, allocations: 60 kB / 438.2 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.162e-05/0.3098, allocations: 36 kB / 438.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003577/0.3134, allocations: 1.535 MB / 439.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.3239, allocations: 5.843 MB / 445.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.3261, allocations: 0.929 MB / 446.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.3272, allocations: 0.5112 MB / 447.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.489e-05/0.3273, allocations: 12.98 kB / 447.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.3286, allocations: 0.6411 MB / 447.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.186e-06/0.3286, allocations: 4 kB / 447.8 MB, free: 9.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03517/0.3638, allocations: 8.825 MB / 456.6 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002056/0.364, allocations: 307.7 kB / 456.9 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.3654, allocations: 0.8091 MB / 457.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.3657, allocations: 53.7 kB / 457.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007991/0.3665, allocations: 0.68 MB / 458.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006078/0.3671, allocations: 432.3 kB / 458.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005934/0.3677, allocations: 243.5 kB / 459.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000292/0.368, allocations: 406.7 kB / 459.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/0.3702, allocations: 0.7926 MB / 460.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002704/0.373, allocations: 1.111 MB / 461.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004122/0.3771, allocations: 1.607 MB / 463 MB, free: 10.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.3772, allocations: 0 / 463 MB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005227/0.3824, allocations: 2.038 MB / 465 MB, free: 8.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.3825, allocations: 8 kB / 465 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.3825, allocations: 8 kB / 465 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/0.383, allocations: 214.4 kB / 465.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/0.3848, allocations: 351.5 kB / 465.6 MB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005035/0.3898, allocations: 4.85 MB / 470.4 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.3915, allocations: 175.9 kB / 470.6 MB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.3917, allocations: 47.94 kB / 470.7 MB, free: 2.137 MB / 382.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.0008558/0.3925, allocations: 391.2 kB / 471 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.3928, allocations: 111.3 kB / 471.2 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/0.3931, allocations: 138.1 kB / 471.3 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3931, allocations: 12 kB / 471.3 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.3931, allocations: 0 / 471.3 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.3931, allocations: 7.984 kB / 471.3 MB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00819/0.4013, allocations: 4.354 MB / 475.7 MB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.4014, allocations: 8 kB / 475.7 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.4025, allocations: 259.6 kB / 475.9 MB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005794/0.4031, allocations: 285.8 kB / 476.2 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.492e-05/0.4032, allocations: 36 kB / 476.2 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002121/0.4054, allocations: 2.198 MB / 478.4 MB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/0.4054, allocations: 24 kB / 478.5 MB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004883/0.4103, allocations: 2.393 MB / 480.9 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006734/0.411, allocations: 328.3 kB / 481.2 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.4112, allocations: 47.92 kB / 481.2 MB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.4123, allocations: 147.8 kB / 481.4 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/0.4127, allocations: 164.2 kB / 481.5 MB, free: 6.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.69e-05/0.4128, allocations: 47.98 kB / 481.6 MB, free: 6.684 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008756/0.4137, allocations: 0.542 MB / 482.1 MB, free: 6.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4137, allocations: 0 / 482.1 MB, free: 6.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001371/0.4151, allocations: 340 kB / 482.4 MB, free: 5.812 MB / 398.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.007363/0.4224, allocations: 3.256 MB / 485.7 MB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00463/0.4271, allocations: 1.997 MB / 487.7 MB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/0.4271, allocations: 0 / 487.7 MB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002444/0.4296, allocations: 1.047 MB / 488.7 MB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.4311, allocations: 192 kB / 488.9 MB, free: 15.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02509/0.4562, allocations: 12.07 MB / 0.4893 GB, free: 2.605 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.4575, allocations: 1.179 MB / 0.4904 GB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009052/0.4584, allocations: 184.4 kB / 0.4906 GB, free: 1.211 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009592/0.4594, allocations: 0.5149 MB / 0.4911 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4594, allocations: 0 / 0.4911 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08088/0.5403, allocations: 29.84 MB / 0.5202 GB, free: 3.121 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.35/14.89, allocations: 8.047 kB / 0.5202 GB, free: 3.113 MB / 446.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)