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: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001698/0.001698, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 61.17 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01031/0.1124, allocations: 9.391 MB / 368.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004717/0.1172, allocations: 2.446 MB / 370.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008922/0.1181, allocations: 31.88 kB / 370.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008637/0.119, allocations: 340.9 kB / 371.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001376/0.1204, allocations: 0.4997 MB / 371.6 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1634/0.2838, allocations: 0.6491 MB / 372.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003031/0.2868, allocations: 2.363 MB / 374.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.2883, allocations: 1.123 MB / 375.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.2894, allocations: 0.8566 MB / 376.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008317/0.2903, allocations: 0.8893 MB / 377.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002783/0.2905, allocations: 277.1 kB / 377.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000433/0.291, allocations: 335 kB / 378.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003644/0.2914, allocations: 0.5094 MB / 378.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006669/0.292, allocations: 0.981 MB / 379.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002791/0.2948, allocations: 3.384 MB / 383 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2948, allocations: 0.8438 kB / 383 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2949, allocations: 0 / 383 MB, free: 8.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.063e-05/0.2949, allocations: 0 / 383 MB, free: 8.254 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.003261/0.2982, allocations: 1.954 MB / 384.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2982, allocations: 9.594 kB / 384.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002756/0.2985, allocations: 182.2 kB / 385.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.2996, allocations: 0.8518 MB / 386 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.2998, allocations: 236.8 kB / 386.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.3001, allocations: 153.5 kB / 386.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002684/0.3028, allocations: 1.674 MB / 388 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.398e-05/0.3028, allocations: 7.047 kB / 388 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.3029, allocations: 66.47 kB / 388.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.007e-05/0.303, allocations: 37.02 kB / 388.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002881/0.3059, allocations: 1.529 MB / 389.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007242/0.3131, allocations: 5.827 MB / 395.5 MB, free: 268 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.315, allocations: 0.9319 MB / 396.4 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009904/0.316, allocations: 0.5051 MB / 396.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.377e-05/0.316, allocations: 12.2 kB / 396.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3173, allocations: 0.6465 MB / 397.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.915e-06/0.3173, allocations: 7.938 kB / 397.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03207/0.3494, allocations: 8.785 MB / 406.4 MB, free: 8.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002304/0.3496, allocations: 308.1 kB / 406.7 MB, free: 8.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.3514, allocations: 0.7974 MB / 407.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002037/0.3516, allocations: 53.7 kB / 407.5 MB, free: 7.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008524/0.3525, allocations: 0.6688 MB / 408.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004904/0.353, allocations: 411.4 kB / 408.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005246/0.3535, allocations: 247.4 kB / 408.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.3537, allocations: 406.7 kB / 409.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/0.3555, allocations: 0.7887 MB / 410 MB, free: 4.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.3575, allocations: 1.106 MB / 411.1 MB, free: 3.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003305/0.3608, allocations: 1.606 MB / 412.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.3608, allocations: 4 kB / 412.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00446/0.3653, allocations: 2.033 MB / 414.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.3653, allocations: 8 kB / 414.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.3653, allocations: 4 kB / 414.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.3658, allocations: 229.5 kB / 415 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.3675, allocations: 348.4 kB / 415.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00419/0.3717, allocations: 4.844 MB / 420.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.3732, allocations: 164 kB / 420.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.3733, allocations: 55.98 kB / 420.4 MB, free: 9.891 MB / 334.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 (169): * Single equations (assignments): 166 * 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.0007599/0.3741, allocations: 400.9 kB / 420.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/0.3744, allocations: 106.2 kB / 420.9 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.3746, allocations: 130.1 kB / 421 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.3746, allocations: 12 kB / 421 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.3746, allocations: 8 kB / 421 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.3747, allocations: 3.984 kB / 421 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007925/0.3826, allocations: 4.341 MB / 425.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.3826, allocations: 8 kB / 425.4 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.3837, allocations: 259.6 kB / 425.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004992/0.3842, allocations: 288.9 kB / 425.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.597e-05/0.3843, allocations: 39.98 kB / 426 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001661/0.386, allocations: 2.193 MB / 428.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-05/0.386, allocations: 15.94 kB / 428.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/0.3904, allocations: 2.394 MB / 430.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005328/0.3909, allocations: 319.7 kB / 430.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.3911, allocations: 51.98 kB / 430.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.3921, allocations: 139.9 kB / 431.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003226/0.3924, allocations: 172.2 kB / 431.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-05/0.3925, allocations: 51.92 kB / 431.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000715/0.3933, allocations: 0.5459 MB / 431.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3933, allocations: 0 / 431.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00122/0.3945, allocations: 340 kB / 432.2 MB, free: 13.66 MB / 350.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009396/0.3954, allocations: 419.9 kB / 432.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003929/0.3994, allocations: 2.009 MB / 434.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.3994, allocations: 8.062 kB / 434.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00209/0.4015, allocations: 1.028 MB / 435.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.4026, allocations: 202.8 kB / 435.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.4081, allocations: 3.094 MB / 438.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008625/0.409, allocations: 1.182 MB / 440.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000757/0.4097, allocations: 172.4 kB / 440.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/0.4101, allocations: 83.44 kB / 440.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4101, allocations: 0 / 440.3 MB, free: 5.359 MB / 350.1 MB Notification: Performance of Templates: time 0.03029/0.4404, allocations: 18.88 MB / 459.2 MB, free: 2.613 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches