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.001515/0.001515, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001834/0.001834, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.44 kB / 307.6 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08423/0.08551, allocations: 50.53 MB / 358.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.011/0.09655, allocations: 9.386 MB / 367.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004763/0.1014, allocations: 2.45 MB / 370 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.1027, allocations: 31.88 kB / 370 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.1039, allocations: 337 kB / 370.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.1058, allocations: 0.4996 MB / 370.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.1073, allocations: 0.6515 MB / 371.5 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1632/0.2704, allocations: 2.35 MB / 373.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001767/0.2723, allocations: 1.11 MB / 375 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.274, allocations: 0.857 MB / 375.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001529/0.2756, allocations: 0.8948 MB / 376.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006171/0.2762, allocations: 277.6 kB / 377 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000824/0.277, allocations: 335.1 kB / 377.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004471/0.2775, allocations: 0.5062 MB / 377.8 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.2787, allocations: 0.9837 MB / 378.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004299/0.283, allocations: 3.361 MB / 382.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.495e-06/0.2831, allocations: 0.5938 kB / 382.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2831, allocations: 0 / 382.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001165/0.2832, allocations: 2.062 kB / 382.2 MB, free: 8.207 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.005334/0.2886, allocations: 1.943 MB / 384.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.2886, allocations: 9.75 kB / 384.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000515/0.2892, allocations: 183.5 kB / 384.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.2906, allocations: 0.8443 MB / 385.1 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.2909, allocations: 232.2 kB / 385.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.2913, allocations: 165.6 kB / 385.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003715/0.295, allocations: 1.674 MB / 387.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.465e-05/0.2951, allocations: 11.25 kB / 387.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001687/0.2953, allocations: 62.34 kB / 387.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.2953, allocations: 36.41 kB / 387.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003753/0.2991, allocations: 1.532 MB / 388.9 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009926/0.309, allocations: 5.892 MB / 394.7 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002089/0.3112, allocations: 0.9352 MB / 395.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.3123, allocations: 0.5121 MB / 396.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.303e-05/0.3123, allocations: 12.5 kB / 396.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001294/0.3136, allocations: 0.6434 MB / 396.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 3.596e-06/0.3137, allocations: 0 / 396.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.03546/0.3491, allocations: 8.792 MB / 405.6 MB, free: 9.066 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001679/0.3493, allocations: 299.7 kB / 405.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.3506, allocations: 0.8052 MB / 406.7 MB, free: 7.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.3508, allocations: 53.7 kB / 406.8 MB, free: 7.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006073/0.3515, allocations: 0.6614 MB / 407.4 MB, free: 7.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004268/0.3519, allocations: 416.7 kB / 407.9 MB, free: 6.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000522/0.3524, allocations: 247.4 kB / 408.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.3526, allocations: 406.7 kB / 408.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002021/0.3547, allocations: 0.7887 MB / 409.3 MB, free: 5.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002287/0.357, allocations: 1.114 MB / 410.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003929/0.3609, allocations: 1.6 MB / 412 MB, free: 2.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.361, allocations: 7.188 kB / 412 MB, free: 2.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005238/0.3662, allocations: 2.027 MB / 414 MB, free: 424 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.3663, allocations: 8 kB / 414 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/0.3663, allocations: 8 kB / 414 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005079/0.3668, allocations: 221.9 kB / 414.3 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.3686, allocations: 352.7 kB / 414.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.373, allocations: 4.844 MB / 419.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.3751, allocations: 167.9 kB / 419.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002871/0.3754, allocations: 51.98 kB / 419.7 MB, free: 10.39 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.001024/0.3764, allocations: 388.9 kB / 420 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/0.3768, allocations: 102.8 kB / 420.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003234/0.3771, allocations: 138.1 kB / 420.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.3771, allocations: 12 kB / 420.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.3772, allocations: 4 kB / 420.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.3772, allocations: 7.547 kB / 420.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008977/0.3862, allocations: 4.348 MB / 424.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.73e-05/0.3862, allocations: 11.94 kB / 424.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.3874, allocations: 266.7 kB / 424.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000612/0.3881, allocations: 281 kB / 425.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.3882, allocations: 39.98 kB / 425.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001844/0.3901, allocations: 2.199 MB / 427.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/0.3901, allocations: 18.56 kB / 427.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005145/0.3953, allocations: 2.388 MB / 429.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007563/0.3961, allocations: 319.7 kB / 430.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003414/0.3964, allocations: 51.98 kB / 430.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.3977, allocations: 135.9 kB / 430.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000369/0.3981, allocations: 173.9 kB / 430.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.3982, allocations: 43.98 kB / 430.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000947/0.3992, allocations: 0.5459 MB / 431.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3992, allocations: 4 kB / 431.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001615/0.4008, allocations: 340 kB / 431.4 MB, free: 14.25 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.001067/0.4019, allocations: 417.4 kB / 431.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005205/0.4071, allocations: 2.051 MB / 433.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.4071, allocations: 0 / 433.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002461/0.4096, allocations: 1.008 MB / 434.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.4119, allocations: 224.3 kB / 435.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006935/0.4188, allocations: 3.185 MB / 438.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.4201, allocations: 1.186 MB / 439.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006987/0.4208, allocations: 87.44 kB / 439.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4208, allocations: 0 / 439.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of Templates: time 0.04403/0.4648, allocations: 36.62 MB / 476.2 MB, free: 1.535 MB / 382.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 -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