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.001166/0.001166, allocations: 104.3 kB / 17.06 MB, free: 6.027 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.001144/0.001144, allocations: 196 kB / 18 MB, free: 5.105 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.263/1.263, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 47.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2758, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009679/0.2855, allocations: 9.275 MB / 409.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004046/0.2896, allocations: 2.287 MB / 411.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.2907, allocations: 27.94 kB / 411.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009832/0.2918, allocations: 329 kB / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001601/0.2934, allocations: 495.7 kB / 412.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.2948, allocations: 0.6516 MB / 413.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002649/0.2975, allocations: 2.345 MB / 415.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001729/0.2992, allocations: 1.125 MB / 416.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.3006, allocations: 0.849 MB / 417.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.302, allocations: 0.8909 MB / 418.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004901/0.3025, allocations: 276 kB / 418.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006491/0.3032, allocations: 328 kB / 419.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005049/0.3037, allocations: 0.4948 MB / 419.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.305, allocations: 0.9764 MB / 420.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003349/0.3084, allocations: 3.353 MB / 423.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3084, allocations: 0 / 423.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3084, allocations: 0 / 423.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.147e-05/0.3085, allocations: 0 / 423.9 MB, free: 0.9961 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.004489/0.313, allocations: 1.92 MB / 425.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.313, allocations: 12.03 kB / 425.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004128/0.3134, allocations: 224 kB / 426.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003663/0.3138, allocations: 178.9 kB / 426.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.3152, allocations: 0.8458 MB / 427.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.3155, allocations: 236.4 kB / 427.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000258/0.3158, allocations: 159.9 kB / 427.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00327/0.319, allocations: 1.682 MB / 429.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-05/0.3191, allocations: 8 kB / 429.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.3193, allocations: 60 kB / 429.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.913e-05/0.3193, allocations: 39.98 kB / 429.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003323/0.3226, allocations: 1.562 MB / 430.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009737/0.3324, allocations: 5.829 MB / 436.6 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.3345, allocations: 0.9364 MB / 437.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3355, allocations: 0.5366 MB / 438.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.06e-05/0.3356, allocations: 9 kB / 438.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.3369, allocations: 0.6606 MB / 438.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.975e-06/0.3369, allocations: 0 / 438.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03398/0.3709, allocations: 8.928 MB / 447.7 MB, free: 8.609 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/0.3711, allocations: 299.7 kB / 448 MB, free: 8.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.3723, allocations: 0.7857 MB / 448.8 MB, free: 7.457 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.3725, allocations: 53.7 kB / 448.8 MB, free: 7.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005653/0.373, allocations: 0.6583 MB / 449.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003835/0.3734, allocations: 414.2 kB / 449.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004962/0.3739, allocations: 243.4 kB / 450.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.3741, allocations: 410.7 kB / 450.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001949/0.3761, allocations: 0.8121 MB / 451.4 MB, free: 4.848 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.3783, allocations: 1.13 MB / 452.5 MB, free: 3.605 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00364/0.3819, allocations: 1.646 MB / 454.1 MB, free: 1.867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.382, allocations: 4 kB / 454.1 MB, free: 1.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004902/0.3869, allocations: 2.076 MB / 456.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.3869, allocations: 8 kB / 456.2 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.3869, allocations: 8 kB / 456.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004174/0.3874, allocations: 186.4 kB / 456.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.389, allocations: 351.5 kB / 456.8 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00415/0.3932, allocations: 4.811 MB / 461.6 MB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.3947, allocations: 159.9 kB / 461.7 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.3949, allocations: 55.97 kB / 461.8 MB, free: 9.773 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.0007489/0.3957, allocations: 387.3 kB / 462.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.3959, allocations: 106.9 kB / 462.3 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/0.3962, allocations: 133.9 kB / 462.4 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.3962, allocations: 12 kB / 462.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.3962, allocations: 0 / 462.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.3962, allocations: 7.969 kB / 462.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008424/0.4046, allocations: 4.412 MB / 466.8 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/0.4047, allocations: 12 kB / 466.8 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.4058, allocations: 263.7 kB / 467.1 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00058/0.4064, allocations: 365.5 kB / 467.5 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.4066, allocations: 39.98 kB / 467.5 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/0.4083, allocations: 2.275 MB / 469.8 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.4083, allocations: 15.94 kB / 469.8 MB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00482/0.4131, allocations: 2.494 MB / 472.3 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/0.4138, allocations: 327.7 kB / 472.6 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.4141, allocations: 47.98 kB / 472.6 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.4152, allocations: 135.9 kB / 472.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003393/0.4155, allocations: 168.2 kB / 472.9 MB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.4157, allocations: 51.98 kB / 473 MB, free: 14.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008011/0.4165, allocations: 0.5342 MB / 473.5 MB, free: 13.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4165, allocations: 0 / 473.5 MB, free: 13.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4179, allocations: 344 kB / 473.9 MB, free: 13.14 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.005375/0.4232, allocations: 3.112 MB / 477 MB, free: 9.875 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004321/0.4276, allocations: 2.051 MB / 479 MB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.4276, allocations: 0 / 479 MB, free: 7.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002181/0.4298, allocations: 1.047 MB / 480.1 MB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.4311, allocations: 199.3 kB / 480.3 MB, free: 6.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02199/0.4531, allocations: 12.17 MB / 492.4 MB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.4542, allocations: 1.186 MB / 493.6 MB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008165/0.455, allocations: 164.4 kB / 493.8 MB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008797/0.4559, allocations: 0.5149 MB / 494.3 MB, free: 7.918 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4559, allocations: 0 / 494.3 MB, free: 7.918 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06735/0.5233, allocations: 29.92 MB / 0.5119 GB, free: 10.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/13.95, allocations: 7.75 kB / 0.5119 GB, free: 10.29 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)