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.0008143/0.0008145, allocations: 92.94 kB / 17.3 MB, free: 6 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.0008976/0.0008976, allocations: 181 kB / 18.21 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.31/1.31, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.00043/0.00043, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08857, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007913/0.09652, allocations: 8.592 MB / 337.7 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004264/0.1008, allocations: 2.252 MB / 339.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/0.1019, allocations: 27.88 kB / 339.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006393/0.1025, allocations: 242.3 kB / 340.2 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00137/0.1039, allocations: 424.8 kB / 340.6 MB, free: 8.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.1051, allocations: 0.5738 MB / 341.2 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002322/0.1074, allocations: 2.161 MB / 343.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.1087, allocations: 0.9959 MB / 344.3 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008931/0.1096, allocations: 0.599 MB / 344.9 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007522/0.1103, allocations: 0.6801 MB / 345.6 MB, free: 3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.1105, allocations: 80 kB / 345.7 MB, free: 2.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002912/0.1108, allocations: 124 kB / 345.8 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002841/0.1111, allocations: 294.7 kB / 346.1 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006369/0.1117, allocations: 0.775 MB / 346.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002318/0.1141, allocations: 3.052 MB / 349.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1141, allocations: 0 / 349.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1141, allocations: 0 / 349.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.244e-05/0.1141, allocations: 0 / 349.9 MB, free: 14.66 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.002952/0.1171, allocations: 1.631 MB / 351.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1171, allocations: 12.03 kB / 351.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002622/0.1174, allocations: 231.9 kB / 351.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.1177, allocations: 178.9 kB / 352 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.1187, allocations: 0.8341 MB / 352.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002585/0.119, allocations: 244.4 kB / 353 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.1192, allocations: 155.9 kB / 353.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/0.1222, allocations: 1.694 MB / 354.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/0.1222, allocations: 7.984 kB / 354.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.1224, allocations: 64 kB / 355 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.671e-05/0.1224, allocations: 43.98 kB / 355 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00326/0.1257, allocations: 1.585 MB / 356.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008506/0.1342, allocations: 5.958 MB / 362.5 MB, free: 1.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.1362, allocations: 0.9637 MB / 363.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009862/0.1372, allocations: 0.5432 MB / 364 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.509e-05/0.1372, allocations: 9 kB / 364.1 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00119/0.1384, allocations: 0.6685 MB / 364.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.515e-06/0.1384, allocations: 4 kB / 364.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03429/0.1727, allocations: 9.867 MB / 374.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1729, allocations: 295.7 kB / 374.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.1739, allocations: 0.7895 MB / 375.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.1741, allocations: 53.7 kB / 375.7 MB, free: 4.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004766/0.1745, allocations: 0.6623 MB / 376.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/0.1749, allocations: 406.2 kB / 376.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.1751, allocations: 121.7 kB / 376.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1753, allocations: 406.7 kB / 377.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001897/0.1772, allocations: 0.8472 MB / 378.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002132/0.1793, allocations: 1.169 MB / 379.3 MB, free: 476 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1452/0.3245, allocations: 1.725 MB / 381 MB, free: 51.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.3246, allocations: 2.312 kB / 381 MB, free: 51.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004926/0.3295, allocations: 2.141 MB / 383.2 MB, free: 50.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.3296, allocations: 8 kB / 383.2 MB, free: 50.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.3296, allocations: 12.05 kB / 383.2 MB, free: 50.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.33, allocations: 181.3 kB / 383.4 MB, free: 50.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/0.3316, allocations: 370.7 kB / 383.7 MB, free: 50.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002947/0.3346, allocations: 4.473 MB / 388.2 MB, free: 46.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.3362, allocations: 202.3 kB / 388.4 MB, free: 46.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.3363, allocations: 50.94 kB / 388.5 MB, free: 46.43 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.0007223/0.3371, allocations: 391.2 kB / 388.8 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.3372, allocations: 104.3 kB / 388.9 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.3375, allocations: 134 kB / 389.1 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.3375, allocations: 15.98 kB / 389.1 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3375, allocations: 1.125 kB / 389.1 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.3376, allocations: 7.375 kB / 389.1 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/0.3451, allocations: 4.542 MB / 393.6 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/0.3451, allocations: 8.656 kB / 393.7 MB, free: 43.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.3462, allocations: 283.6 kB / 393.9 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005371/0.3468, allocations: 368.1 kB / 394.3 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.72e-05/0.3469, allocations: 43.08 kB / 394.3 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.3481, allocations: 2.171 MB / 396.5 MB, free: 41.6 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.3481, allocations: 14.86 kB / 396.5 MB, free: 41.6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004411/0.3526, allocations: 2.605 MB / 399.1 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004559/0.353, allocations: 326.4 kB / 399.4 MB, free: 40.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.3532, allocations: 53.56 kB / 399.5 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.3542, allocations: 179.1 kB / 399.7 MB, free: 40.01 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.3545, allocations: 169.4 kB / 399.8 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.407e-05/0.3546, allocations: 42.88 kB / 399.9 MB, free: 39.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006304/0.3552, allocations: 0.5294 MB / 400.4 MB, free: 39.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3552, allocations: 0 / 400.4 MB, free: 39.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001097/0.3563, allocations: 346.8 kB / 400.7 MB, free: 39.68 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.00439/0.3607, allocations: 3.226 MB / 404 MB, free: 37.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003743/0.3645, allocations: 2.103 MB / 406.1 MB, free: 36.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.3645, allocations: 4 kB / 406.1 MB, free: 36.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.3664, allocations: 1.088 MB / 407.2 MB, free: 35.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.3686, allocations: 192.5 kB / 407.4 MB, free: 35.06 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/0.3901, allocations: 13.69 MB / 421 MB, free: 20.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007347/0.3909, allocations: 1.178 MB / 422.2 MB, free: 19.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009099/0.3918, allocations: 168.4 kB / 422.4 MB, free: 19.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007146/0.3926, allocations: 0.511 MB / 422.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3926, allocations: 0.6562 kB / 422.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0409/0.4335, allocations: 27.45 MB / 450.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.4337, allocations: 263.3 kB / 450.6 MB, free: 7.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.774, allocations: 3.938 kB / 450.6 MB, free: 7.062 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)