Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_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.001322/0.001322, allocations: 108.8 kB / 17.73 MB, free: 5.34 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.001342/0.001342, allocations: 190.9 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/0.08888, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.1715/0.2605, allocations: 9.178 MB / 383.8 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004592/0.2651, allocations: 2.309 MB / 386.1 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.2666, allocations: 32 kB / 386.2 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000946/0.2676, allocations: 321.1 kB / 386.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.2693, allocations: 494.7 kB / 387 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2707, allocations: 0.6541 MB / 387.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002455/0.2731, allocations: 2.344 MB / 390 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.2745, allocations: 1.111 MB / 391.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.2759, allocations: 0.8443 MB / 391.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.2771, allocations: 0.883 MB / 392.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004376/0.2775, allocations: 278.1 kB / 393.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006131/0.2782, allocations: 323.8 kB / 393.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003604/0.2785, allocations: 0.504 MB / 393.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008796/0.2794, allocations: 0.9695 MB / 394.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003343/0.2828, allocations: 3.359 MB / 398.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.2828, allocations: 0 / 398.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2828, allocations: 0 / 398.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.94e-05/0.2829, allocations: 1.406 kB / 398.2 MB, free: 1.648 MB / 318.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.003814/0.2867, allocations: 1.971 MB / 400.2 MB, free: 200 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.2868, allocations: 9.156 kB / 400.2 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002514/0.287, allocations: 223 kB / 400.4 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/0.2874, allocations: 188.5 kB / 400.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.2888, allocations: 0.8506 MB / 401.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.2892, allocations: 235.8 kB / 401.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.2894, allocations: 161.1 kB / 401.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003154/0.2926, allocations: 1.686 MB / 403.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/0.2926, allocations: 14.67 kB / 403.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001497/0.2928, allocations: 61.44 kB / 403.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.795e-05/0.2928, allocations: 36.78 kB / 403.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003501/0.2963, allocations: 1.558 MB / 405.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.3065, allocations: 5.838 MB / 411 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.3086, allocations: 0.9377 MB / 412 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.3097, allocations: 0.5309 MB / 412.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.845e-05/0.3098, allocations: 13.53 kB / 412.5 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.311, allocations: 0.6623 MB / 413.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 2.455e-06/0.3111, allocations: 0 / 413.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03452/0.3456, allocations: 8.964 MB / 422.1 MB, free: 140 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002089/0.3458, allocations: 299.7 kB / 422.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.3471, allocations: 0.7896 MB / 423.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.3473, allocations: 53.7 kB / 423.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006192/0.348, allocations: 0.681 MB / 424 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004363/0.3484, allocations: 428.4 kB / 424.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004975/0.3489, allocations: 247.5 kB / 424.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002422/0.3492, allocations: 406.7 kB / 425 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.3511, allocations: 0.8121 MB / 425.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/0.3534, allocations: 1.13 MB / 427 MB, free: 11.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003822/0.3573, allocations: 1.65 MB / 428.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3573, allocations: 4 kB / 428.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005004/0.3623, allocations: 2.077 MB / 430.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.3624, allocations: 11.98 kB / 430.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3624, allocations: 4 kB / 430.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/0.3629, allocations: 190.3 kB / 430.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.3646, allocations: 355.5 kB / 431.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004708/0.3693, allocations: 4.811 MB / 436.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.3711, allocations: 171.8 kB / 436.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.3712, allocations: 48 kB / 436.3 MB, free: 1.254 MB / 350.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.0008339/0.3721, allocations: 399.2 kB / 436.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.3723, allocations: 111.3 kB / 436.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002756/0.3726, allocations: 130 kB / 436.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.3726, allocations: 15.94 kB / 436.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.3726, allocations: 0 / 436.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.3726, allocations: 11.97 kB / 436.9 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008611/0.3813, allocations: 4.401 MB / 441.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.3813, allocations: 12.03 kB / 441.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.3825, allocations: 263.6 kB / 441.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000618/0.3831, allocations: 365.5 kB / 441.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.3832, allocations: 39.98 kB / 442 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.3856, allocations: 2.275 MB / 444.3 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/0.3856, allocations: 15.94 kB / 444.3 MB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005361/0.391, allocations: 2.498 MB / 446.8 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006712/0.3916, allocations: 332.2 kB / 447.1 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001968/0.3919, allocations: 47.98 kB / 447.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.3929, allocations: 135.9 kB / 447.3 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.3933, allocations: 168.2 kB / 447.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.493e-05/0.3934, allocations: 51.98 kB / 447.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00082/0.3942, allocations: 0.5264 MB / 448 MB, free: 4.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3942, allocations: 0 / 448 MB, free: 4.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001357/0.3956, allocations: 351.9 kB / 448.4 MB, free: 4.605 MB / 366.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.005743/0.4014, allocations: 3.124 MB / 451.5 MB, free: 1.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004669/0.406, allocations: 2.039 MB / 453.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.4061, allocations: 4 kB / 453.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002423/0.4085, allocations: 1.059 MB / 454.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.4099, allocations: 185.8 kB / 454.8 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02455/0.4344, allocations: 12.21 MB / 467 MB, free: 1.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009549/0.4354, allocations: 1.182 MB / 468.2 MB, free: 4 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008745/0.4363, allocations: 168.4 kB / 468.3 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009027/0.4372, allocations: 0.5149 MB / 468.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4372, allocations: 0 / 468.9 MB, free: 15.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07124/0.5085, allocations: 29.41 MB / 498.3 MB, free: 1.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.29, allocations: 15.92 kB / 498.3 MB, free: 1.805 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)