Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008527/0.0008528, allocations: 103.2 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008493/0.0008493, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.3 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002467, allocations: 8 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009086/0.1274, allocations: 8.235 MB / 366.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005107/0.1326, allocations: 2.318 MB / 368.9 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.1338, allocations: 31.88 kB / 368.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007652/0.1346, allocations: 250.2 kB / 369.1 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.1357, allocations: 412.8 kB / 369.5 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009475/0.1367, allocations: 359.5 kB / 369.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.1388, allocations: 2.083 MB / 372 MB, free: 248 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2453/0.3841, allocations: 0.8194 MB / 372.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.3858, allocations: 0.5896 MB / 373.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.3868, allocations: 0.6534 MB / 374 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.387, allocations: 81.59 kB / 374.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003912/0.3874, allocations: 123.9 kB / 374.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003861/0.3878, allocations: 284.2 kB / 374.5 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.3884, allocations: 348.4 kB / 374.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003655/0.392, allocations: 2.716 MB / 377.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3921, allocations: 1.219 kB / 377.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3921, allocations: 0 / 377.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.589e-05/0.3922, allocations: 0 / 377.6 MB, free: 9.355 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.004078/0.3963, allocations: 1.659 MB / 379.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.3963, allocations: 10.41 kB / 379.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003757/0.3967, allocations: 228.8 kB / 379.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/0.3971, allocations: 181 kB / 379.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.3984, allocations: 0.8134 MB / 380.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002718/0.3987, allocations: 241.7 kB / 380.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002528/0.3989, allocations: 162.9 kB / 380.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00335/0.4023, allocations: 1.665 MB / 382.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.4024, allocations: 9.75 kB / 382.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/0.4025, allocations: 63.12 kB / 382.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-05/0.4026, allocations: 37.03 kB / 382.6 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003515/0.4061, allocations: 1.535 MB / 384.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009669/0.4158, allocations: 5.954 MB / 390.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.4178, allocations: 0.936 MB / 391.1 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009871/0.4188, allocations: 0.5131 MB / 391.6 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.558e-05/0.4189, allocations: 13.48 kB / 391.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.4201, allocations: 0.6575 MB / 392.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.535e-06/0.4201, allocations: 0 / 392.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.03129/0.4514, allocations: 9.69 MB / 401.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.4516, allocations: 295.7 kB / 402.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.4529, allocations: 0.7896 MB / 403 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.453, allocations: 53.7 kB / 403.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006492/0.4537, allocations: 0.6638 MB / 403.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.4541, allocations: 415.9 kB / 404.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.953e-05/0.4542, allocations: 28 kB / 404.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.4544, allocations: 406.8 kB / 404.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001758/0.4561, allocations: 0.816 MB / 405.4 MB, free: 10.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001986/0.4581, allocations: 1.141 MB / 406.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.4598, allocations: 0.8011 MB / 407.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.4598, allocations: 4 kB / 407.3 MB, free: 8.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004323/0.4642, allocations: 2.077 MB / 409.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.4642, allocations: 10.5 kB / 409.4 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.4642, allocations: 8 kB / 409.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.4647, allocations: 182.4 kB / 409.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.4663, allocations: 371.3 kB / 410 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003683/0.47, allocations: 4.466 MB / 414.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.4717, allocations: 207.5 kB / 414.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.4718, allocations: 59.98 kB / 414.7 MB, free: 0.832 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 (169): * Single equations (assignments): 166 * 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.0009963/0.4728, allocations: 392.7 kB / 415.1 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.473, allocations: 110.7 kB / 415.2 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.4733, allocations: 126 kB / 415.3 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.4733, allocations: 12 kB / 415.3 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/0.4734, allocations: 4 kB / 415.3 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.4734, allocations: 7.969 kB / 415.3 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007733/0.4811, allocations: 4.454 MB / 419.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.4812, allocations: 16.17 kB / 419.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.4823, allocations: 285.8 kB / 420.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000466/0.4827, allocations: 237.6 kB / 420.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.804e-05/0.4828, allocations: 40 kB / 420.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.4844, allocations: 2.083 MB / 422.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/0.4844, allocations: 15.47 kB / 422.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004552/0.489, allocations: 2.482 MB / 424.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006751/0.4897, allocations: 323.6 kB / 425.2 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003115/0.49, allocations: 55.94 kB / 425.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.4912, allocations: 171.9 kB / 425.5 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003744/0.4916, allocations: 194.7 kB / 425.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.229e-05/0.4917, allocations: 43.98 kB / 425.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001022/0.4927, allocations: 0.5342 MB / 426.2 MB, free: 4.922 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4927, allocations: 4 kB / 426.2 MB, free: 4.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001677/0.4944, allocations: 336 kB / 426.6 MB, free: 4.59 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 (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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005794/0.5002, allocations: 3.33 MB / 429.9 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.5045, allocations: 2.046 MB / 431.9 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.5045, allocations: 4.062 kB / 431.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002164/0.5067, allocations: 1.063 MB / 433 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.5084, allocations: 200.5 kB / 433.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/0.5303, allocations: 8.959 MB / 442.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.5319, allocations: 1.19 MB / 443.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001475/0.5334, allocations: 164.5 kB / 443.5 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/0.5346, allocations: 0.5188 MB / 444 MB, free: 2.609 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5346, allocations: 0 / 444 MB, free: 2.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05722/0.5918, allocations: 27.34 MB / 471.4 MB, free: 7.594 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/0.5921, allocations: 275.9 kB / 471.6 MB, free: 7.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.083, allocations: 0 / 471.6 MB, free: 7.23 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat does not exist to compare? outputFormat=mat