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.001643/0.001643, allocations: 110.5 kB / 16.62 MB, free: 6.961 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.001834/0.001834, allocations: 190 kB / 17.54 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.333/1.333, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 39.25 kB / 300.3 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09896, allocations: 49.44 MB / 349.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01136/0.1104, allocations: 9.21 MB / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004704/0.1151, allocations: 2.251 MB / 361.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001762/0.1169, allocations: 31.88 kB / 361.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.1181, allocations: 250.2 kB / 361.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001989/0.1201, allocations: 416.9 kB / 361.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.1216, allocations: 0.5894 MB / 362.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003057/0.1247, allocations: 2.333 MB / 364.8 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.1264, allocations: 1.119 MB / 365.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.1278, allocations: 0.8528 MB / 366.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.1291, allocations: 0.8871 MB / 367.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005139/0.1296, allocations: 276 kB / 367.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005993/0.1302, allocations: 324 kB / 368.2 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003885/0.1306, allocations: 0.4987 MB / 368.7 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008249/0.1315, allocations: 0.9803 MB / 369.7 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1549/0.2863, allocations: 3.302 MB / 373 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.2864, allocations: 1.688 kB / 373 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2864, allocations: 0 / 373 MB, free: 15.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001187/0.2865, allocations: 1.25 kB / 373 MB, free: 15.72 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.004926/0.2915, allocations: 1.921 MB / 374.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.2915, allocations: 10.44 kB / 374.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003355/0.2919, allocations: 228.5 kB / 375.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003569/0.2923, allocations: 181.6 kB / 375.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.2935, allocations: 0.8306 MB / 376.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.2937, allocations: 235.1 kB / 376.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000231/0.294, allocations: 160.8 kB / 376.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003029/0.297, allocations: 1.687 MB / 378.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.855e-05/0.2971, allocations: 6.656 kB / 378.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.2972, allocations: 61.38 kB / 378.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.047e-05/0.2973, allocations: 38.73 kB / 378.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00324/0.3005, allocations: 1.558 MB / 379.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007899/0.3084, allocations: 5.882 MB / 385.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.3103, allocations: 0.9427 MB / 386.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009273/0.3112, allocations: 0.5245 MB / 387.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.33e-05/0.3113, allocations: 9.062 kB / 387.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.3124, allocations: 0.6571 MB / 387.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.806e-06/0.3124, allocations: 0 / 387.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03128/0.3437, allocations: 8.926 MB / 396.8 MB, free: 4.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.3438, allocations: 298.6 kB / 397.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.3449, allocations: 0.7893 MB / 397.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.345, allocations: 53.7 kB / 398 MB, free: 3.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.3454, allocations: 0.6614 MB / 398.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.3457, allocations: 410 kB / 399 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000432/0.3462, allocations: 243.5 kB / 399.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3463, allocations: 414.7 kB / 399.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/0.3479, allocations: 0.8051 MB / 400.5 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00197/0.3499, allocations: 1.135 MB / 401.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00343/0.3533, allocations: 1.656 MB / 403.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.3533, allocations: 4 kB / 403.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004597/0.3579, allocations: 2.07 MB / 405.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.358, allocations: 10.81 kB / 405.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.358, allocations: 4 kB / 405.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.3584, allocations: 189.3 kB / 405.5 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.3601, allocations: 355.3 kB / 405.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004395/0.3645, allocations: 4.806 MB / 410.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.366, allocations: 165.4 kB / 410.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.3662, allocations: 52 kB / 410.9 MB, free: 5.609 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.001014/0.3672, allocations: 389.8 kB / 411.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.3674, allocations: 106.7 kB / 411.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.3677, allocations: 134 kB / 411.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.3677, allocations: 12 kB / 411.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.343e-05/0.3677, allocations: 2.516 kB / 411.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.3678, allocations: 11.97 kB / 411.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007934/0.3757, allocations: 4.413 MB / 416 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.3757, allocations: 8 kB / 416 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.3768, allocations: 264 kB / 416.2 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006076/0.3775, allocations: 368.4 kB / 416.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.41e-05/0.3776, allocations: 35.98 kB / 416.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.3795, allocations: 2.285 MB / 418.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/0.3795, allocations: 17.72 kB / 418.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004903/0.3844, allocations: 2.493 MB / 421.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006019/0.3851, allocations: 319.7 kB / 421.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001797/0.3852, allocations: 48.75 kB / 421.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.3863, allocations: 139.8 kB / 421.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/0.3866, allocations: 167.9 kB / 422.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.593e-05/0.3867, allocations: 45.58 kB / 422.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007641/0.3875, allocations: 0.5303 MB / 422.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.3875, allocations: 0 / 422.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001396/0.3889, allocations: 350.3 kB / 423 MB, free: 9.152 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.005279/0.3942, allocations: 3.12 MB / 426.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00473/0.3989, allocations: 2.091 MB / 428.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.399, allocations: 3.125 kB / 428.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.4011, allocations: 1.044 MB / 429.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.4025, allocations: 197.1 kB / 429.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02536/0.4279, allocations: 13.35 MB / 442.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008932/0.4288, allocations: 1.175 MB / 444 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001038/0.4299, allocations: 172.4 kB / 444.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008748/0.4308, allocations: 0.5188 MB / 444.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4308, allocations: 0 / 444.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06112/0.4919, allocations: 28.65 MB / 473.3 MB, free: 6.488 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.4922, allocations: 252.4 kB / 473.6 MB, free: 6.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.511/3.003, allocations: 0 / 473.6 MB, free: 6.227 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)