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.0008675/0.0008676, allocations: 91.14 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000983/0.000983, allocations: 196.7 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 227.7 MB / 246.8 MB, free: 9.637 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001982/0.0001983, allocations: 8 kB / 307.8 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08717, allocations: 51.53 MB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008741/0.09595, allocations: 8.803 MB / 368.2 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004168/0.1002, allocations: 2.368 MB / 370.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.1013, allocations: 35.88 kB / 370.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009944/0.1023, allocations: 266.2 kB / 370.8 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.1039, allocations: 428.8 kB / 371.3 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.1051, allocations: 0.5855 MB / 371.8 MB, free: 436 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1545/0.2596, allocations: 2.167 MB / 374 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.2614, allocations: 0.9925 MB / 375 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.2627, allocations: 0.611 MB / 375.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.2641, allocations: 0.6857 MB / 376.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003873/0.2645, allocations: 80 kB / 376.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005932/0.2651, allocations: 133.5 kB / 376.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003744/0.2655, allocations: 300.9 kB / 376.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.2667, allocations: 0.7855 MB / 377.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.2701, allocations: 3.105 MB / 380.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2701, allocations: 0 / 380.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2701, allocations: 0 / 380.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.2702, allocations: 0.5 kB / 380.7 MB, free: 8.242 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.003736/0.2739, allocations: 1.651 MB / 382.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.274, allocations: 9.656 kB / 382.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004705/0.2744, allocations: 231.3 kB / 382.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000323/0.2748, allocations: 181.7 kB / 382.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.2758, allocations: 0.8422 MB / 383.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.276, allocations: 238.4 kB / 383.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002131/0.2763, allocations: 160.4 kB / 384 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002946/0.2792, allocations: 1.689 MB / 385.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.2793, allocations: 6.875 kB / 385.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.2794, allocations: 61.16 kB / 385.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.782e-05/0.2794, allocations: 37.41 kB / 385.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.2824, allocations: 1.555 MB / 387.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007164/0.2896, allocations: 5.966 MB / 393.3 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/0.2914, allocations: 0.9539 MB / 394.3 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008898/0.2923, allocations: 0.5171 MB / 394.8 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-05/0.2923, allocations: 15.14 kB / 394.8 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/0.2934, allocations: 0.6502 MB / 395.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.414e-06/0.2935, allocations: 0 / 395.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03324/0.3267, allocations: 9.739 MB / 405.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.3269, allocations: 303.8 kB / 405.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.328, allocations: 0.8013 MB / 406.3 MB, free: 8.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001173/0.3282, allocations: 61.62 kB / 406.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005058/0.3287, allocations: 0.66 MB / 407 MB, free: 7.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003362/0.329, allocations: 411.3 kB / 407.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/0.3292, allocations: 121.6 kB / 407.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3294, allocations: 402.7 kB / 407.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.3313, allocations: 0.835 MB / 408.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/0.3334, allocations: 1.147 MB / 409.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0035/0.3369, allocations: 1.677 MB / 411.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3369, allocations: 0 / 411.6 MB, free: 2.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004432/0.3414, allocations: 2.105 MB / 413.7 MB, free: 476 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3414, allocations: 8 kB / 413.7 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.3414, allocations: 8.078 kB / 413.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004011/0.3418, allocations: 217.9 kB / 413.9 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.3434, allocations: 373.4 kB / 414.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.347, allocations: 4.506 MB / 418.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.3485, allocations: 203.9 kB / 419 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.3486, allocations: 51.98 kB / 419 MB, free: 10.71 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.0006996/0.3493, allocations: 395.1 kB / 419.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.3495, allocations: 106.7 kB / 419.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.3498, allocations: 134.1 kB / 419.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3498, allocations: 12 kB / 419.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3498, allocations: 7.938 kB / 419.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3498, allocations: 3.984 kB / 419.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007437/0.3573, allocations: 4.473 MB / 424.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.3573, allocations: 16.03 kB / 424.2 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.3584, allocations: 283.6 kB / 424.4 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000449/0.3588, allocations: 277.5 kB / 424.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.387e-05/0.3589, allocations: 40 kB / 424.7 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.3604, allocations: 2.094 MB / 426.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.3604, allocations: 11.94 kB / 426.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/0.365, allocations: 2.503 MB / 429.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004883/0.3655, allocations: 327.6 kB / 429.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001939/0.3657, allocations: 51.98 kB / 429.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.3668, allocations: 171.8 kB / 429.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.3671, allocations: 176.3 kB / 430.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/0.3672, allocations: 55.97 kB / 430.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007461/0.3679, allocations: 0.542 MB / 430.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3679, allocations: 0 / 430.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001199/0.3692, allocations: 344 kB / 431 MB, free: 14.24 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.005483/0.3746, allocations: 3.347 MB / 434.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003928/0.3786, allocations: 2.067 MB / 436.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.3786, allocations: 4 kB / 436.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.3807, allocations: 1.063 MB / 437.5 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.3827, allocations: 207 kB / 437.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02263/0.4053, allocations: 13.57 MB / 451.2 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.4061, allocations: 1.182 MB / 452.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008584/0.4069, allocations: 168.4 kB / 452.6 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007566/0.4077, allocations: 0.5188 MB / 453.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4077, allocations: 0 / 453.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04577/0.4535, allocations: 27.77 MB / 480.9 MB, free: 11.87 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002504/0.4538, allocations: 287.8 kB / 481.2 MB, free: 11.49 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.753, allocations: 3.75 kB / 481.2 MB, free: 11.49 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)