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.001569/0.001569, allocations: 109.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001829/0.001829, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 57.34 kB / 306.6 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09531/0.09669, allocations: 50.53 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01153/0.1083, allocations: 9.327 MB / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005092/0.1134, allocations: 2.395 MB / 368.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.115, allocations: 31.88 kB / 368.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.1163, allocations: 262.2 kB / 369.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002035/0.1184, allocations: 428.8 kB / 369.5 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.12, allocations: 0.5855 MB / 370.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.187/0.3069, allocations: 2.348 MB / 372.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.3087, allocations: 1.122 MB / 373.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.31, allocations: 0.8603 MB / 374.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009033/0.3109, allocations: 0.8979 MB / 375.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002884/0.3112, allocations: 279.6 kB / 375.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004556/0.3117, allocations: 338.1 kB / 375.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.3121, allocations: 0.5041 MB / 376.4 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000777/0.3129, allocations: 0.991 MB / 377.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003444/0.3163, allocations: 3.354 MB / 380.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3163, allocations: 2.875 kB / 380.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3163, allocations: 0.5 kB / 380.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.984e-05/0.3164, allocations: 6 kB / 380.8 MB, free: 8.414 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.003388/0.3198, allocations: 1.949 MB / 382.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.3198, allocations: 13.34 kB / 382.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002441/0.3201, allocations: 226.7 kB / 383 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002718/0.3204, allocations: 180.8 kB / 383.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.3214, allocations: 0.8429 MB / 384 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.3217, allocations: 237.7 kB / 384.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.3219, allocations: 164.9 kB / 384.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.3248, allocations: 1.674 MB / 386.1 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.613e-05/0.3249, allocations: 6.281 kB / 386.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.325, allocations: 61.03 kB / 386.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.325, allocations: 42.05 kB / 386.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003011/0.3281, allocations: 1.531 MB / 387.7 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007571/0.3356, allocations: 5.886 MB / 393.6 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.3376, allocations: 0.9367 MB / 394.5 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.3386, allocations: 0.5163 MB / 395 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.042e-05/0.3387, allocations: 9.688 kB / 395.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001254/0.34, allocations: 0.6405 MB / 395.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 5.18e-06/0.34, allocations: 3.984 kB / 395.7 MB, free: 15.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03266/0.3727, allocations: 8.788 MB / 404.5 MB, free: 9.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002658/0.373, allocations: 295.7 kB / 404.8 MB, free: 8.949 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.3743, allocations: 0.8052 MB / 405.6 MB, free: 8.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.3745, allocations: 53.7 kB / 405.6 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005613/0.375, allocations: 0.6643 MB / 406.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.3754, allocations: 420.7 kB / 406.7 MB, free: 6.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005489/0.376, allocations: 243.5 kB / 406.9 MB, free: 6.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000224/0.3762, allocations: 402.7 kB / 407.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.3781, allocations: 0.7965 MB / 408.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002104/0.3802, allocations: 1.102 MB / 409.2 MB, free: 4.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/0.3837, allocations: 1.61 MB / 410.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3837, allocations: 0 / 410.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004844/0.3886, allocations: 2.037 MB / 412.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.3886, allocations: 8 kB / 412.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/0.3887, allocations: 7.938 kB / 412.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004923/0.3892, allocations: 218.4 kB / 413.1 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.3908, allocations: 352.9 kB / 413.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004241/0.3951, allocations: 4.842 MB / 418.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.3966, allocations: 167.9 kB / 418.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.3968, allocations: 52 kB / 418.5 MB, free: 10.63 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.0007579/0.3975, allocations: 391.2 kB / 418.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.3978, allocations: 106.7 kB / 419 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003051/0.3981, allocations: 134.1 kB / 419.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3981, allocations: 12 kB / 419.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.3982, allocations: 8 kB / 419.2 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.3982, allocations: 7.969 kB / 419.2 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008181/0.4064, allocations: 4.341 MB / 423.5 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/0.4064, allocations: 12 kB / 423.5 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.4075, allocations: 262 kB / 423.8 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005755/0.4081, allocations: 289.8 kB / 424.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.4082, allocations: 39.98 kB / 424.1 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/0.41, allocations: 2.198 MB / 426.3 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/0.41, allocations: 11.28 kB / 426.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.4147, allocations: 2.387 MB / 428.7 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005946/0.4153, allocations: 327.7 kB / 429 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.4156, allocations: 43.98 kB / 429.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.4167, allocations: 147.2 kB / 429.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/0.417, allocations: 170.8 kB / 429.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.92e-05/0.4172, allocations: 40 kB / 429.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008277/0.418, allocations: 0.5459 MB / 429.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.418, allocations: 0 / 429.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001319/0.4193, allocations: 348 kB / 430.3 MB, free: 14.48 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.005643/0.425, allocations: 3.239 MB / 433.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004602/0.4296, allocations: 2.051 MB / 435.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.4296, allocations: 11.41 kB / 435.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/0.4318, allocations: 1.028 MB / 436.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.4331, allocations: 207.1 kB / 436.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02465/0.4577, allocations: 13.23 MB / 450 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.4588, allocations: 1.179 MB / 451.2 MB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000966/0.4598, allocations: 172.4 kB / 451.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000847/0.4607, allocations: 0.5188 MB / 451.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of SimCode: time 5.62e-07/0.4607, allocations: 0 / 451.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05863/0.5193, allocations: 29.09 MB / 481 MB, free: 11.37 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002848/0.5196, allocations: 284.4 kB / 481.3 MB, free: 10.99 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/3.038, allocations: 0 / 481.3 MB, free: 10.99 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)