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.001158/0.001158, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001176/0.001175, allocations: 190 kB / 18.07 MB, free: 5.414 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.304/1.304, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.00122/0.00122, allocations: 43.94 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08321, allocations: 46.62 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009577/0.09282, allocations: 9.122 MB / 335.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004554/0.09741, allocations: 2.264 MB / 338.1 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007373/0.0982, allocations: 31.88 kB / 338.1 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006936/0.0989, allocations: 250.2 kB / 338.4 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009019/0.09981, allocations: 416.9 kB / 338.8 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009331/0.1008, allocations: 0.5855 MB / 339.4 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001653/0.1024, allocations: 2.153 MB / 341.5 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.1036, allocations: 1.015 MB / 342.5 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007933/0.1044, allocations: 0.6926 MB / 343.2 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006747/0.1051, allocations: 0.7934 MB / 344 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.1053, allocations: 128 kB / 344.1 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003115/0.1056, allocations: 175.9 kB / 344.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.1059, allocations: 366.7 kB / 344.7 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006857/0.1066, allocations: 0.8319 MB / 345.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002165/0.1088, allocations: 3.146 MB / 348.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1088, allocations: 4 kB / 348.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1088, allocations: 7.938 kB / 348.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.1088, allocations: 0 / 348.7 MB, free: 14.69 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.003184/0.112, allocations: 1.928 MB / 350.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1121, allocations: 8.031 kB / 350.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.1123, allocations: 224 kB / 350.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.1126, allocations: 182.9 kB / 351 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009987/0.1136, allocations: 0.8302 MB / 351.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.1138, allocations: 240.4 kB / 352.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000201/0.114, allocations: 155.9 kB / 352.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002731/0.1168, allocations: 1.682 MB / 353.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.1168, allocations: 8 kB / 353.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.117, allocations: 67.98 kB / 354 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.117, allocations: 36 kB / 354 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002969/0.12, allocations: 1.558 MB / 355.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008037/0.128, allocations: 5.891 MB / 361.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.1298, allocations: 0.9364 MB / 362.4 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008993/0.1308, allocations: 0.5275 MB / 362.9 MB, free: 32 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.431e-05/0.1308, allocations: 16.98 kB / 362.9 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.132, allocations: 0.6606 MB / 363.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.495e-06/0.132, allocations: 0 / 363.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03131/0.1633, allocations: 8.918 MB / 372.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.1635, allocations: 299.7 kB / 372.8 MB, free: 5.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.1645, allocations: 0.7934 MB / 373.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.865e-05/0.1646, allocations: 53.7 kB / 373.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004709/0.1651, allocations: 0.6545 MB / 374.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003139/0.1654, allocations: 410.2 kB / 374.7 MB, free: 3.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004433/0.1659, allocations: 247.4 kB / 374.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1661, allocations: 414.7 kB / 375.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.1677, allocations: 0.8082 MB / 376.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.1696, allocations: 1.142 MB / 377.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1466/0.3163, allocations: 1.643 MB / 378.9 MB, free: 52.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.3163, allocations: 1.125 kB / 378.9 MB, free: 52.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004406/0.3208, allocations: 2.069 MB / 381 MB, free: 51.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3208, allocations: 8.219 kB / 381 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.3208, allocations: 10.03 kB / 381 MB, free: 51.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/0.3212, allocations: 174.7 kB / 381.2 MB, free: 51.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.3227, allocations: 352.2 kB / 381.5 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002752/0.3255, allocations: 4.443 MB / 386 MB, free: 47.35 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.3269, allocations: 167.5 kB / 386.1 MB, free: 47.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.327, allocations: 53.45 kB / 386.2 MB, free: 47.32 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.0007211/0.3278, allocations: 392 kB / 386.6 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.328, allocations: 106.5 kB / 386.7 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.3282, allocations: 142.8 kB / 386.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.3282, allocations: 12.28 kB / 386.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3282, allocations: 1.281 kB / 386.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3282, allocations: 5.531 kB / 386.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006953/0.3352, allocations: 4.412 MB / 391.3 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.3352, allocations: 10.53 kB / 391.3 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.3363, allocations: 265 kB / 391.5 MB, free: 44.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005214/0.3368, allocations: 362.8 kB / 391.9 MB, free: 44.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.297e-05/0.3369, allocations: 37.27 kB / 391.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.3382, allocations: 2.174 MB / 394.1 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.3382, allocations: 15.44 kB / 394.1 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003942/0.3422, allocations: 2.502 MB / 396.6 MB, free: 41.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.3425, allocations: 325.5 kB / 396.9 MB, free: 41.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.3427, allocations: 42.03 kB / 397 MB, free: 41.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009196/0.3436, allocations: 139.6 kB / 397.1 MB, free: 40.99 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.3439, allocations: 166.9 kB / 397.3 MB, free: 40.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.401e-05/0.344, allocations: 53.06 kB / 397.3 MB, free: 40.92 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006157/0.3446, allocations: 0.5354 MB / 397.9 MB, free: 40.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3446, allocations: 0 / 397.9 MB, free: 40.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001153/0.3458, allocations: 346.2 kB / 398.2 MB, free: 40.64 MB / 318.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.004056/0.3499, allocations: 3.1 MB / 401.3 MB, free: 38.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003238/0.3531, allocations: 2.026 MB / 403.3 MB, free: 37.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.3531, allocations: 1.531 kB / 403.3 MB, free: 37.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.3549, allocations: 1.052 MB / 404.4 MB, free: 37.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3559, allocations: 194.3 kB / 404.6 MB, free: 37.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/0.3741, allocations: 13.36 MB / 417.9 MB, free: 23.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.3747, allocations: 1.182 MB / 419.1 MB, free: 22.1 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000867/0.3756, allocations: 156.4 kB / 419.3 MB, free: 21.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/0.3762, allocations: 0.5149 MB / 419.8 MB, free: 21.43 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3763, allocations: 4 kB / 419.8 MB, free: 21.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03981/0.4161, allocations: 27.86 MB / 447.6 MB, free: 9.504 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.4163, allocations: 251.9 kB / 447.9 MB, free: 9.242 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/2.763, allocations: 0 / 447.9 MB, free: 9.242 MB / 334.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)