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.001313/0.001313, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.001272/0.001272, allocations: 182 kB / 17.56 MB, free: 6.203 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.438/1.438, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002661, allocations: 4 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 50.41 MB / 352 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.00956/0.1105, allocations: 8.681 MB / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004985/0.1155, allocations: 2.248 MB / 362.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.1171, allocations: 27.88 kB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.1183, allocations: 250.2 kB / 363.2 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001912/0.1202, allocations: 420.9 kB / 363.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1218, allocations: 0.5815 MB / 364.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003423/0.1252, allocations: 2.153 MB / 366.3 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.1273, allocations: 0.9958 MB / 367.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.1287, allocations: 0.5989 MB / 367.9 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.1302, allocations: 0.6841 MB / 368.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003675/0.1306, allocations: 80 kB / 368.7 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005988/0.1312, allocations: 124 kB / 368.8 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004215/0.1316, allocations: 290.7 kB / 369.1 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.133, allocations: 0.7711 MB / 369.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2002/0.3331, allocations: 3.051 MB / 372.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3332, allocations: 0 / 372.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.848e-06/0.3332, allocations: 4.547 kB / 372.9 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.124e-05/0.3333, allocations: 0 / 372.9 MB, free: 13.78 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.004171/0.3375, allocations: 1.626 MB / 374.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.3376, allocations: 9.562 kB / 374.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004549/0.338, allocations: 230.3 kB / 374.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003747/0.3384, allocations: 179.9 kB / 374.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.3398, allocations: 0.8317 MB / 375.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000307/0.3401, allocations: 242.1 kB / 376 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003159/0.3404, allocations: 157.3 kB / 376.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00398/0.3444, allocations: 1.695 MB / 377.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.342e-05/0.3445, allocations: 7.5 kB / 377.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/0.3447, allocations: 67.73 kB / 377.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.3447, allocations: 36.28 kB / 377.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003697/0.3484, allocations: 1.585 MB / 379.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009221/0.3576, allocations: 5.956 MB / 385.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.3598, allocations: 0.9597 MB / 386.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.3608, allocations: 0.5467 MB / 387 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.3609, allocations: 13.5 kB / 387 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.3621, allocations: 0.668 MB / 387.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.675e-06/0.3621, allocations: 1.781 kB / 387.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03454/0.3967, allocations: 9.86 MB / 397.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.016e-05/0.3968, allocations: 311.1 kB / 397.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000976/0.3978, allocations: 0.7856 MB / 398.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001706/0.398, allocations: 53.7 kB / 398.7 MB, free: 1.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000359/0.3984, allocations: 0.6615 MB / 399.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/0.3986, allocations: 406.7 kB / 399.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.3988, allocations: 117.7 kB / 399.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3989, allocations: 410.7 kB / 400.3 MB, free: 288 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.401, allocations: 0.8488 MB / 401.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/0.4033, allocations: 1.169 MB / 402.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003869/0.4072, allocations: 1.726 MB / 404 MB, free: 12.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4072, allocations: 0 / 404 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004925/0.4121, allocations: 2.144 MB / 406.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.4122, allocations: 8 kB / 406.1 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.4122, allocations: 8.781 kB / 406.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004098/0.4126, allocations: 182.3 kB / 406.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.4144, allocations: 374.2 kB / 406.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/0.4186, allocations: 4.466 MB / 411.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.4203, allocations: 211.7 kB / 411.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4204, allocations: 48 kB / 411.4 MB, free: 4.598 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.000851/0.4213, allocations: 396.4 kB / 411.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.4215, allocations: 102.8 kB / 411.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.4218, allocations: 130.1 kB / 412 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4218, allocations: 15.98 kB / 412.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.4218, allocations: 4 kB / 412.1 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.4219, allocations: 7.969 kB / 412.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008615/0.4305, allocations: 4.535 MB / 416.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.4305, allocations: 12.06 kB / 416.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.4318, allocations: 281.4 kB / 416.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006064/0.4324, allocations: 360.1 kB / 417.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.4325, allocations: 41.41 kB / 417.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001855/0.4344, allocations: 2.18 MB / 419.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/0.4344, allocations: 10.81 kB / 419.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005393/0.4398, allocations: 2.609 MB / 422.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/0.4405, allocations: 323.7 kB / 422.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.4407, allocations: 42.62 kB / 422.4 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.4418, allocations: 179.8 kB / 422.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000391/0.4422, allocations: 172.5 kB / 422.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.59e-05/0.4423, allocations: 40 kB / 422.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008228/0.4431, allocations: 0.5342 MB / 423.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4431, allocations: 0 / 423.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00131/0.4445, allocations: 348 kB / 423.7 MB, free: 7.961 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.005499/0.45, allocations: 3.238 MB / 426.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004587/0.4546, allocations: 2.103 MB / 429 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.4546, allocations: 0.625 kB / 429 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002335/0.4569, allocations: 1.091 MB / 430.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.4592, allocations: 193.1 kB / 430.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/0.4868, allocations: 13.69 MB / 444 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/0.488, allocations: 1.182 MB / 445.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.4891, allocations: 164.4 kB / 445.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000919/0.4901, allocations: 0.5149 MB / 445.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4901, allocations: 0 / 445.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05451/0.5446, allocations: 27.44 MB / 473.3 MB, free: 5.992 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002063/0.5448, allocations: 255.5 kB / 473.5 MB, free: 5.727 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/3.215, allocations: 2.188 kB / 473.5 MB, free: 5.727 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)