Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_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.001089/0.001089, allocations: 102.7 kB / 16.51 MB, free: 6.645 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.001138/0.001138, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 39.44 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08793, allocations: 49.44 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01062/0.09858, allocations: 9.203 MB / 358.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004253/0.1029, allocations: 2.259 MB / 361 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.1042, allocations: 31.88 kB / 361 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.1053, allocations: 246.3 kB / 361.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.1069, allocations: 424.8 kB / 361.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.1081, allocations: 0.5816 MB / 362.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002402/0.1105, allocations: 2.149 MB / 364.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.1121, allocations: 1.011 MB / 365.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.1132, allocations: 0.6926 MB / 366.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.1144, allocations: 0.8011 MB / 366.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003954/0.1148, allocations: 128 kB / 367 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005379/0.1153, allocations: 179.9 kB / 367.2 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003843/0.1157, allocations: 358.7 kB / 367.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.1168, allocations: 0.8358 MB / 368.4 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1583/0.2751, allocations: 3.146 MB / 371.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.2751, allocations: 0.5938 kB / 371.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2752, allocations: 0 / 371.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.882e-05/0.2753, allocations: 0 / 371.5 MB, free: 14.38 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.004974/0.2802, allocations: 1.929 MB / 373.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.2803, allocations: 10.44 kB / 373.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000298/0.2806, allocations: 228.2 kB / 373.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003686/0.281, allocations: 179.8 kB / 373.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.2822, allocations: 0.8327 MB / 374.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000299/0.2825, allocations: 232.1 kB / 374.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/0.2828, allocations: 161.9 kB / 375.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003124/0.2859, allocations: 1.683 MB / 376.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.476e-05/0.2859, allocations: 10.05 kB / 376.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.2861, allocations: 60.41 kB / 376.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.663e-05/0.2861, allocations: 37.41 kB / 376.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00327/0.2894, allocations: 1.559 MB / 378.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008237/0.2977, allocations: 5.891 MB / 384.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.2994, allocations: 0.9354 MB / 385.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009057/0.3004, allocations: 0.5343 MB / 385.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.451e-05/0.3004, allocations: 11.06 kB / 385.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.3015, allocations: 0.657 MB / 386.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.414e-06/0.3015, allocations: 0 / 386.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03033/0.3319, allocations: 8.922 MB / 395.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.332, allocations: 302 kB / 395.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008602/0.3328, allocations: 0.7906 MB / 396.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.566e-05/0.3329, allocations: 51.8 kB / 396.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/0.3333, allocations: 0.6619 MB / 397.2 MB, free: 2.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.3335, allocations: 411.6 kB / 397.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/0.3339, allocations: 245.2 kB / 397.8 MB, free: 1.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.334, allocations: 410.7 kB / 398.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.3356, allocations: 0.815 MB / 399 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.3373, allocations: 1.126 MB / 400.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/0.3406, allocations: 1.654 MB / 401.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.3406, allocations: 4 kB / 401.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004221/0.3448, allocations: 2.079 MB / 403.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3449, allocations: 8 kB / 403.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.3449, allocations: 4 kB / 403.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.3453, allocations: 178.2 kB / 404.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.3469, allocations: 354.4 kB / 404.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00385/0.3507, allocations: 4.436 MB / 408.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.3522, allocations: 171.9 kB / 409 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.3524, allocations: 52 kB / 409.1 MB, free: 6.09 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.0006903/0.3531, allocations: 386.1 kB / 409.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.3532, allocations: 102.8 kB / 409.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002476/0.3535, allocations: 134 kB / 409.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3535, allocations: 12 kB / 409.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.3535, allocations: 0 / 409.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.3536, allocations: 7.969 kB / 409.7 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007324/0.3609, allocations: 4.418 MB / 414.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.3609, allocations: 11.94 kB / 414.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.362, allocations: 269 kB / 414.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005357/0.3626, allocations: 364.7 kB / 414.8 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.434e-05/0.3627, allocations: 43.98 kB / 414.8 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.3643, allocations: 2.168 MB / 417 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.3643, allocations: 13.91 kB / 417 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004486/0.3688, allocations: 2.498 MB / 419.5 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005146/0.3693, allocations: 327.6 kB / 419.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.3695, allocations: 40 kB / 419.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009825/0.3705, allocations: 143.8 kB / 420 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/0.3708, allocations: 164.4 kB / 420.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-05/0.3709, allocations: 43.98 kB / 420.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006828/0.3716, allocations: 0.5342 MB / 420.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3716, allocations: 0 / 420.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00116/0.3728, allocations: 348 kB / 421.1 MB, free: 9.746 MB / 334.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.004841/0.3776, allocations: 3.124 MB / 424.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.3815, allocations: 2.025 MB / 426.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3815, allocations: 0 / 426.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.3836, allocations: 1.051 MB / 427.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.3848, allocations: 198.5 kB / 427.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02461/0.4095, allocations: 13.36 MB / 440.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009639/0.4105, allocations: 1.175 MB / 442 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009996/0.4115, allocations: 164.4 kB / 442.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/0.4124, allocations: 0.5149 MB / 442.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4124, allocations: 0 / 442.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04824/0.4606, allocations: 27.83 MB / 470.5 MB, free: 7.934 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002314/0.4609, allocations: 254.3 kB / 470.8 MB, free: 7.676 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.467/2.928, allocations: 4.656 kB / 470.8 MB, free: 7.672 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)