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.00123/0.00123, allocations: 93.52 kB / 16.3 MB, free: 6.133 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.001362/0.001362, allocations: 179 kB / 17.2 MB, free: 6.016 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.363/1.363, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002779, allocations: 4.531 kB / 300.8 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 50.4 MB / 351.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008133/0.1201, allocations: 7.459 MB / 358.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004905/0.1251, allocations: 2.315 MB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.1262, allocations: 31.88 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007107/0.127, allocations: 222.4 kB / 361.3 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.1283, allocations: 0.5141 MB / 361.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009728/0.1293, allocations: 359.5 kB / 362.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.1312, allocations: 1.416 MB / 363.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.1323, allocations: 0.8171 MB / 364.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009937/0.1333, allocations: 0.5799 MB / 364.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007453/0.1341, allocations: 0.6455 MB / 365.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.1342, allocations: 80 kB / 365.7 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.1345, allocations: 123.9 kB / 365.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.1348, allocations: 279 kB / 366.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003145/0.1351, allocations: 340.9 kB / 366.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002162/0.1373, allocations: 2.672 MB / 369.1 MB, free: 1.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1373, allocations: 4 kB / 369.1 MB, free: 1.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1373, allocations: 0 / 369.1 MB, free: 1.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.236e-05/0.1374, allocations: 0 / 369.1 MB, free: 1.988 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.003412/0.1408, allocations: 1.631 MB / 370.7 MB, free: 308 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.581e-05/0.1408, allocations: 12.03 kB / 370.7 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003041/0.1411, allocations: 219.8 kB / 370.9 MB, free: 64 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2475/0.3887, allocations: 180.6 kB / 371.1 MB, free: 23.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.3905, allocations: 0.8062 MB / 371.9 MB, free: 22.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003096/0.3908, allocations: 240.2 kB / 372.1 MB, free: 22.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.391, allocations: 160 kB / 372.3 MB, free: 22.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003726/0.3948, allocations: 1.672 MB / 374 MB, free: 22.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.861e-05/0.3948, allocations: 7.203 kB / 374 MB, free: 22.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.395, allocations: 65.41 kB / 374 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-05/0.3951, allocations: 38 kB / 374.1 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.3986, allocations: 1.577 MB / 375.6 MB, free: 21.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.4088, allocations: 5.962 MB / 381.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.4109, allocations: 0.9579 MB / 382.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.903e-05/0.411, allocations: 10.36 kB / 382.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.4122, allocations: 0.6633 MB / 383.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.925e-06/0.4122, allocations: 0 / 383.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03546/0.4477, allocations: 9.851 MB / 393.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/0.4478, allocations: 299.7 kB / 393.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.4489, allocations: 0.7814 MB / 394.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.449, allocations: 53.7 kB / 394.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004352/0.4494, allocations: 0.6601 MB / 394.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002755/0.4497, allocations: 407.8 kB / 395.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-05/0.4498, allocations: 32 kB / 395.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4499, allocations: 406.7 kB / 395.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/0.4516, allocations: 0.8433 MB / 396.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.4534, allocations: 1.158 MB / 397.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.455, allocations: 0.8258 MB / 398.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.455, allocations: 4 kB / 398.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003947/0.459, allocations: 2.131 MB / 400.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.459, allocations: 8 kB / 400.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.459, allocations: 8.562 kB / 400.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003531/0.4594, allocations: 185.4 kB / 400.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.4609, allocations: 367.5 kB / 401.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/0.4636, allocations: 4.485 MB / 405.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.4653, allocations: 204.3 kB / 405.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.4654, allocations: 51.94 kB / 406 MB, free: 15.75 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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008464/0.4663, allocations: 395.2 kB / 406.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.4664, allocations: 98.78 kB / 406.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.4667, allocations: 137.8 kB / 406.6 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.4667, allocations: 12 kB / 406.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.4667, allocations: 0 / 406.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.4667, allocations: 7.969 kB / 406.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007935/0.4747, allocations: 4.541 MB / 411.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.4747, allocations: 8.219 kB / 411.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4758, allocations: 283.6 kB / 411.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005625/0.4764, allocations: 365.5 kB / 411.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.864e-05/0.4765, allocations: 39.98 kB / 411.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.4782, allocations: 2.193 MB / 414 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/0.4782, allocations: 11.94 kB / 414 MB, free: 7.348 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/0.4834, allocations: 3.079 MB / 417.1 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.484, allocations: 323.7 kB / 417.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.4842, allocations: 44 kB / 417.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.4853, allocations: 179.8 kB / 417.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.4856, allocations: 176.2 kB / 417.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.443e-05/0.4857, allocations: 51.94 kB / 417.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007757/0.4865, allocations: 0.5303 MB / 418.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4865, allocations: 0 / 418.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001313/0.4878, allocations: 346.6 kB / 418.7 MB, free: 2.238 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006377/0.4942, allocations: 6.511 MB / 425.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004157/0.4984, allocations: 2.087 MB / 427.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/0.4984, allocations: 5.812 kB / 427.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002101/0.5005, allocations: 1.094 MB / 428.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.5016, allocations: 169.6 kB / 428.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.5201, allocations: 13.4 MB / 442 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008292/0.5209, allocations: 1.217 MB / 443.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009164/0.5219, allocations: 164.4 kB / 443.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007353/0.5226, allocations: 0.5149 MB / 443.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.213e-06/0.5226, allocations: 0 / 443.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04587/0.5685, allocations: 27.12 MB / 471 MB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.5687, allocations: 220.9 kB / 471.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/3.07, allocations: 3.625 kB / 471.2 MB, free: 13.21 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat does not exist to compare? outputFormat=mat