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.001326/0.001326, allocations: 112.6 kB / 17.07 MB, free: 5.984 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.001371/0.001371, allocations: 193.4 kB / 18 MB, free: 5.074 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 47.94 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2694, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01077/0.2802, allocations: 9.265 MB / 409.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004868/0.2851, allocations: 2.29 MB / 411.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.2865, allocations: 31.88 kB / 411.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009194/0.2875, allocations: 333 kB / 412.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001527/0.289, allocations: 491.7 kB / 412.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.2903, allocations: 0.6516 MB / 413.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002681/0.293, allocations: 2.352 MB / 415.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00155/0.2946, allocations: 1.111 MB / 416.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.2958, allocations: 0.8451 MB / 417.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.2969, allocations: 0.8871 MB / 418.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003276/0.2973, allocations: 276 kB / 418.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004759/0.2977, allocations: 331.9 kB / 419.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004339/0.2982, allocations: 0.4987 MB / 419.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009222/0.2991, allocations: 0.9725 MB / 420.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003431/0.3026, allocations: 3.351 MB / 423.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3026, allocations: 0 / 423.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3026, allocations: 0 / 423.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.707e-05/0.3026, allocations: 0 / 423.9 MB, free: 1.059 MB / 334.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.003784/0.3064, allocations: 1.969 MB / 425.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3065, allocations: 8.031 kB / 425.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002796/0.3068, allocations: 224 kB / 426.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002991/0.3071, allocations: 187.8 kB / 426.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.3084, allocations: 0.8581 MB / 427.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002906/0.3087, allocations: 240.4 kB / 427.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.3089, allocations: 156 kB / 427.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003068/0.312, allocations: 1.686 MB / 429.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.474e-05/0.312, allocations: 3.984 kB / 429.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.3122, allocations: 64 kB / 429.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-05/0.3122, allocations: 36 kB / 429.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.3155, allocations: 1.562 MB / 430.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008985/0.3245, allocations: 5.839 MB / 436.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002024/0.3266, allocations: 0.9402 MB / 437.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.3276, allocations: 0.5288 MB / 438.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.773e-05/0.3277, allocations: 13 kB / 438.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001292/0.329, allocations: 0.6567 MB / 438.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 4.869e-06/0.329, allocations: 0 / 438.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03404/0.3631, allocations: 8.968 MB / 447.8 MB, free: 8.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.3633, allocations: 303.7 kB / 448.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/0.3644, allocations: 0.7896 MB / 448.9 MB, free: 7.406 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.3645, allocations: 57.73 kB / 449 MB, free: 7.344 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005696/0.3651, allocations: 0.6761 MB / 449.6 MB, free: 6.656 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/0.3655, allocations: 428.4 kB / 450.1 MB, free: 6.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004832/0.366, allocations: 251.5 kB / 450.3 MB, free: 5.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.3662, allocations: 406.7 kB / 450.7 MB, free: 5.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.3682, allocations: 0.8121 MB / 451.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/0.3704, allocations: 1.13 MB / 452.6 MB, free: 3.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00374/0.3742, allocations: 1.646 MB / 454.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3742, allocations: 0 / 454.3 MB, free: 1.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004816/0.379, allocations: 2.08 MB / 456.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.3791, allocations: 8 kB / 456.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.3791, allocations: 8 kB / 456.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.3795, allocations: 174.5 kB / 456.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.3812, allocations: 363.4 kB / 456.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/0.3855, allocations: 4.807 MB / 461.7 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.387, allocations: 175.8 kB / 461.9 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.3872, allocations: 48 kB / 461.9 MB, free: 9.688 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 (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.0007139/0.3879, allocations: 387.2 kB / 462.3 MB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.3881, allocations: 115.3 kB / 462.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.3884, allocations: 130 kB / 462.6 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3884, allocations: 12 kB / 462.6 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.3884, allocations: 4 kB / 462.6 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.3884, allocations: 7.969 kB / 462.6 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007928/0.3964, allocations: 4.417 MB / 467 MB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.3964, allocations: 8 kB / 467 MB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.3975, allocations: 259.6 kB / 467.3 MB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005925/0.3981, allocations: 377.5 kB / 467.6 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.432e-05/0.3982, allocations: 35.98 kB / 467.7 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/0.4002, allocations: 2.275 MB / 469.9 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.32e-05/0.4002, allocations: 11.94 kB / 469.9 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.4052, allocations: 2.502 MB / 472.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005818/0.4058, allocations: 324.3 kB / 472.8 MB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/0.406, allocations: 44 kB / 472.8 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.407, allocations: 147.8 kB / 473 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003368/0.4074, allocations: 176.2 kB / 473.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.367e-05/0.4075, allocations: 43.98 kB / 473.2 MB, free: 13.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007924/0.4083, allocations: 0.5303 MB / 473.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4083, allocations: 0 / 473.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001158/0.4094, allocations: 343.9 kB / 474 MB, free: 13.04 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005429/0.4149, allocations: 3.12 MB / 477.2 MB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004294/0.4192, allocations: 2.039 MB / 479.2 MB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.4192, allocations: 7.938 kB / 479.2 MB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/0.4215, allocations: 1.059 MB / 480.3 MB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.4226, allocations: 204.8 kB / 480.5 MB, free: 6.418 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/0.4446, allocations: 12.21 MB / 492.7 MB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009413/0.4456, allocations: 1.182 MB / 493.9 MB, free: 8.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007991/0.4464, allocations: 168.4 kB / 494 MB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008307/0.4473, allocations: 0.5149 MB / 494.5 MB, free: 7.746 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4473, allocations: 0 / 494.5 MB, free: 7.746 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07053/0.5178, allocations: 29.4 MB / 0.5117 GB, free: 10.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.73, allocations: 15.02 kB / 0.5117 GB, free: 10.63 MB / 446.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)