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.001388/0.001388, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001509/0.001509, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.356/1.356, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 48.5 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1046, allocations: 49.43 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01112/0.1157, allocations: 9.285 MB / 359.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005009/0.1208, allocations: 2.286 MB / 361.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001623/0.1224, allocations: 31.88 kB / 361.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.124, allocations: 329.1 kB / 362.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00279/0.1269, allocations: 495.7 kB / 362.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.1288, allocations: 0.6516 MB / 363.2 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003756/0.1326, allocations: 2.333 MB / 365.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.1342, allocations: 1.12 MB / 366.7 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.1356, allocations: 0.8451 MB / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009928/0.1366, allocations: 0.8871 MB / 368.4 MB, free: 1.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000326/0.137, allocations: 272 kB / 368.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.1375, allocations: 324 kB / 369 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004009/0.1379, allocations: 0.4948 MB / 369.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.164/0.3019, allocations: 0.9718 MB / 370.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00475/0.3067, allocations: 3.305 MB / 373.8 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.3067, allocations: 0.7969 kB / 373.8 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3067, allocations: 1.438 kB / 373.8 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.92e-05/0.3068, allocations: 3.312 kB / 373.8 MB, free: 14 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.004343/0.3112, allocations: 1.916 MB / 375.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3112, allocations: 9.281 kB / 375.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003018/0.3115, allocations: 234 kB / 375.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003467/0.3119, allocations: 179.5 kB / 376.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.3131, allocations: 0.8291 MB / 376.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002685/0.3134, allocations: 235.1 kB / 377.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.3136, allocations: 165.9 kB / 377.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002872/0.3165, allocations: 1.687 MB / 379 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.702e-05/0.3165, allocations: 2.344 kB / 379 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/0.3167, allocations: 66.19 kB / 379.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.3167, allocations: 35.69 kB / 379.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.32, allocations: 1.563 MB / 380.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008356/0.3284, allocations: 5.881 MB / 386.6 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.3303, allocations: 0.9445 MB / 387.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3314, allocations: 0.5237 MB / 388 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.476e-05/0.3315, allocations: 16.7 kB / 388 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.3326, allocations: 0.6557 MB / 388.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.625e-06/0.3326, allocations: 5.25 kB / 388.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03281/0.3655, allocations: 8.922 MB / 397.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.3656, allocations: 302.2 kB / 397.9 MB, free: 1.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.3666, allocations: 0.7878 MB / 398.7 MB, free: 1.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.3667, allocations: 51.67 kB / 398.8 MB, free: 1.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/0.3671, allocations: 0.6596 MB / 399.4 MB, free: 0.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.3674, allocations: 418.9 kB / 399.8 MB, free: 488 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000412/0.3678, allocations: 239.6 kB / 400.1 MB, free: 344 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3679, allocations: 414.7 kB / 400.5 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/0.3699, allocations: 0.8082 MB / 401.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.3721, allocations: 1.129 MB / 402.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.3757, allocations: 1.652 MB / 404 MB, free: 12.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3757, allocations: 6.25 kB / 404.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004615/0.3803, allocations: 2.073 MB / 406.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3803, allocations: 8 kB / 406.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.3804, allocations: 8 kB / 406.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004438/0.3808, allocations: 186.5 kB / 406.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.3825, allocations: 355.8 kB / 406.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004406/0.3869, allocations: 4.802 MB / 411.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002002/0.389, allocations: 159.9 kB / 411.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.3891, allocations: 56 kB / 411.7 MB, free: 4.301 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.0008257/0.3899, allocations: 390.4 kB / 412.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.3902, allocations: 110.7 kB / 412.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.3904, allocations: 130 kB / 412.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.3904, allocations: 12 kB / 412.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.3905, allocations: 0 / 412.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.3905, allocations: 7.969 kB / 412.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008134/0.3986, allocations: 4.422 MB / 416.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-05/0.3987, allocations: 8 kB / 416.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.3999, allocations: 270.7 kB / 417 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006197/0.4005, allocations: 365.5 kB / 417.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.4006, allocations: 35.98 kB / 417.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.4031, allocations: 2.278 MB / 419.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-05/0.4031, allocations: 14.62 kB / 419.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005573/0.4087, allocations: 2.498 MB / 422.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008451/0.4096, allocations: 319.7 kB / 422.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/0.41, allocations: 44 kB / 422.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.4113, allocations: 139.8 kB / 422.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003614/0.4117, allocations: 169.1 kB / 422.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.4118, allocations: 44 kB / 422.9 MB, free: 8.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009198/0.4127, allocations: 0.5342 MB / 423.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4127, allocations: 0 / 423.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001596/0.4144, allocations: 348 kB / 423.8 MB, free: 7.852 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.005489/0.4198, allocations: 3.121 MB / 426.9 MB, free: 4.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004875/0.4247, allocations: 2.098 MB / 429 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/0.4248, allocations: 0 / 429 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/0.427, allocations: 1.045 MB / 430 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.4286, allocations: 191.5 kB / 430.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02398/0.4526, allocations: 12.71 MB / 442.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.4538, allocations: 1.178 MB / 444.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001032/0.4549, allocations: 160.4 kB / 444.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009141/0.4558, allocations: 0.5174 MB / 444.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4558, allocations: 4 kB / 444.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0693/0.5251, allocations: 28.95 MB / 473.7 MB, free: 5.488 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.9, allocations: 7.875 kB / 473.8 MB, free: 5.48 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)