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.00125/0.001254, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001366/0.001366, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.185/1.185, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001296/0.001296, allocations: 55.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06899/0.0703, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008418/0.07875, allocations: 9.177 MB / 336.6 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002677/0.08144, allocations: 2.299 MB / 338.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.08186, allocations: 35.81 kB / 338.9 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005379/0.08241, allocations: 325.1 kB / 339.2 MB, free: 8.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000756/0.08317, allocations: 499.7 kB / 339.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007794/0.08396, allocations: 0.6516 MB / 340.4 MB, free: 7.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.08548, allocations: 2.333 MB / 342.7 MB, free: 4.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.0866, allocations: 1.119 MB / 343.8 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006696/0.08728, allocations: 0.8373 MB / 344.7 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000691/0.08798, allocations: 0.8871 MB / 345.5 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002387/0.08822, allocations: 276 kB / 345.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003388/0.08857, allocations: 328 kB / 346.1 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003184/0.08889, allocations: 0.4987 MB / 346.6 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006274/0.08953, allocations: 0.9764 MB / 347.6 MB, free: 28 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00199/0.09152, allocations: 3.295 MB / 350.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.09154, allocations: 0 / 350.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.09155, allocations: 4 kB / 350.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.09157, allocations: 4 kB / 350.9 MB, free: 12.71 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.002772/0.09434, allocations: 1.912 MB / 352.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.09438, allocations: 12.03 kB / 352.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000217/0.09461, allocations: 231.9 kB / 353.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002273/0.09484, allocations: 178.9 kB / 353.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009051/0.09575, allocations: 0.838 MB / 354.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.09599, allocations: 240.4 kB / 354.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.09619, allocations: 155.9 kB / 354.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002477/0.09867, allocations: 1.682 MB / 356.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.504e-05/0.09872, allocations: 7.938 kB / 356.1 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001225/0.09884, allocations: 64 kB / 356.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.09887, allocations: 36 kB / 356.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002804/0.1017, allocations: 1.562 MB / 357.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007/0.1087, allocations: 5.888 MB / 363.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.1104, allocations: 0.9402 MB / 364.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000909/0.1114, allocations: 0.5315 MB / 365.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.1114, allocations: 9 kB / 365.2 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.1125, allocations: 0.6606 MB / 365.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.184e-06/0.1125, allocations: 4 kB / 365.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03063/0.1431, allocations: 8.916 MB / 374.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1432, allocations: 299.7 kB / 375 MB, free: 3.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000892/0.1441, allocations: 0.7895 MB / 375.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.305e-05/0.1443, allocations: 53.7 kB / 375.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000449/0.1447, allocations: 0.6584 MB / 376.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.145, allocations: 410.1 kB / 376.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004216/0.1454, allocations: 247.4 kB / 377.2 MB, free: 1.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1456, allocations: 414.7 kB / 377.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.1474, allocations: 0.8121 MB / 378.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1256/0.273, allocations: 1.131 MB / 379.5 MB, free: 52.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003378/0.2764, allocations: 1.65 MB / 381.2 MB, free: 51.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.2764, allocations: 5.672 kB / 381.2 MB, free: 51.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00418/0.2806, allocations: 2.066 MB / 383.3 MB, free: 51.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.2806, allocations: 8.688 kB / 383.3 MB, free: 51.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.2807, allocations: 6.781 kB / 383.3 MB, free: 51.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/0.281, allocations: 188.2 kB / 383.5 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.2826, allocations: 346.3 kB / 383.8 MB, free: 51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002783/0.2854, allocations: 4.822 MB / 388.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.2868, allocations: 166.7 kB / 388.8 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.2869, allocations: 47.03 kB / 388.8 MB, free: 46.34 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.0005919/0.2875, allocations: 390.8 kB / 389.2 MB, free: 46.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.2877, allocations: 108.4 kB / 389.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000211/0.2879, allocations: 129.8 kB / 389.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.2879, allocations: 12.72 kB / 389.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2879, allocations: 1.812 kB / 389.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.2879, allocations: 5.906 kB / 389.5 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006752/0.2947, allocations: 4.42 MB / 393.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.2947, allocations: 10.56 kB / 393.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.2958, allocations: 267.8 kB / 394.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005002/0.2963, allocations: 369.5 kB / 394.5 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.126e-05/0.2964, allocations: 34.42 kB / 394.5 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.2975, allocations: 2.279 MB / 396.8 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/0.2975, allocations: 15 kB / 396.8 MB, free: 41.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00398/0.3015, allocations: 2.502 MB / 399.3 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003843/0.3019, allocations: 319.3 kB / 399.7 MB, free: 39.9 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.3021, allocations: 42 kB / 399.7 MB, free: 39.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009513/0.303, allocations: 140.9 kB / 399.8 MB, free: 39.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.3033, allocations: 166.1 kB / 400 MB, free: 39.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.187e-05/0.3034, allocations: 45.58 kB / 400 MB, free: 39.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005884/0.304, allocations: 0.537 MB / 400.6 MB, free: 39.56 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.304, allocations: 3.828 kB / 400.6 MB, free: 39.56 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009956/0.305, allocations: 345.2 kB / 400.9 MB, free: 39.52 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.003929/0.3089, allocations: 3.107 MB / 404 MB, free: 37.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003659/0.3126, allocations: 2.085 MB / 406.1 MB, free: 36.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3126, allocations: 4.125 kB / 406.1 MB, free: 36.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.3142, allocations: 1.049 MB / 407.2 MB, free: 35.24 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009428/0.3152, allocations: 192.1 kB / 407.4 MB, free: 35.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.3308, allocations: 12.71 MB / 420.1 MB, free: 21.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.3313, allocations: 1.182 MB / 421.2 MB, free: 20.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007358/0.332, allocations: 160.4 kB / 421.4 MB, free: 20.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005873/0.3326, allocations: 0.511 MB / 421.9 MB, free: 19.82 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3326, allocations: 0 / 421.9 MB, free: 19.82 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.208/1.54, allocations: 28.96 MB / 450.9 MB, free: 6.781 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/15.97, allocations: 7.953 kB / 450.9 MB, free: 6.773 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)