Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.00124/0.00124, allocations: 179 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 56.36 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1125, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.2297/0.3422, allocations: 9.172 MB / 384.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005803/0.3481, allocations: 2.307 MB / 386.6 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/0.3495, allocations: 31.03 kB / 386.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008549/0.3503, allocations: 324.3 kB / 387 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.3518, allocations: 496.4 kB / 387.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.3533, allocations: 0.6536 MB / 388.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002604/0.356, allocations: 2.343 MB / 390.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.3575, allocations: 1.115 MB / 391.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.3589, allocations: 0.8557 MB / 392.4 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.3603, allocations: 0.8882 MB / 393.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003883/0.3607, allocations: 275.6 kB / 393.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006634/0.3613, allocations: 327.9 kB / 393.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.3617, allocations: 0.5044 MB / 394.4 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00086/0.3626, allocations: 0.968 MB / 395.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004031/0.3666, allocations: 3.349 MB / 398.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3667, allocations: 0 / 398.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.3667, allocations: 1.094 kB / 398.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.838e-05/0.3668, allocations: 4 kB / 398.7 MB, free: 1.301 MB / 318.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.004327/0.3711, allocations: 1.918 MB / 400.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3712, allocations: 13.62 kB / 400.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003837/0.3715, allocations: 179.8 kB / 400.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.3729, allocations: 0.8352 MB / 401.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002914/0.3732, allocations: 234.9 kB / 401.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/0.3735, allocations: 160.9 kB / 402.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00333/0.3768, allocations: 1.685 MB / 403.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.817e-05/0.3769, allocations: 11.09 kB / 403.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/0.3771, allocations: 65.28 kB / 403.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.175e-05/0.3771, allocations: 37.12 kB / 403.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003544/0.3807, allocations: 1.561 MB / 405.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009746/0.3904, allocations: 5.832 MB / 411.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.3927, allocations: 0.937 MB / 412.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3938, allocations: 0.524 MB / 412.7 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.27e-05/0.3938, allocations: 9.781 kB / 412.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.3952, allocations: 0.6617 MB / 413.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 3.206e-06/0.3952, allocations: 0 / 413.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.0359/0.4311, allocations: 8.928 MB / 422.3 MB, free: 20 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001916/0.4313, allocations: 303.7 kB / 422.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.4327, allocations: 0.7906 MB / 423.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/0.4329, allocations: 53.7 kB / 423.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006087/0.4336, allocations: 0.6584 MB / 424.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/0.434, allocations: 414.1 kB / 424.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004923/0.4345, allocations: 239.5 kB / 424.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.4347, allocations: 414.7 kB / 425.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001978/0.4367, allocations: 0.8082 MB / 426 MB, free: 12.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00218/0.4388, allocations: 1.13 MB / 427.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003781/0.4426, allocations: 1.65 MB / 428.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4427, allocations: 4 kB / 428.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005052/0.4477, allocations: 2.068 MB / 430.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.4478, allocations: 8 kB / 430.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.4478, allocations: 11.94 kB / 430.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004842/0.4483, allocations: 182.5 kB / 431 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.4501, allocations: 351.5 kB / 431.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/0.4548, allocations: 4.815 MB / 436.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.4569, allocations: 167.8 kB / 436.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.4572, allocations: 48 kB / 436.4 MB, free: 1.184 MB / 350.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.001696/0.4589, allocations: 395.1 kB / 436.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005474/0.4595, allocations: 106.7 kB / 436.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004772/0.46, allocations: 130 kB / 437 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.46, allocations: 12 kB / 437 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.46, allocations: 0 / 437 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.4601, allocations: 3.984 kB / 437 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009799/0.4699, allocations: 4.412 MB / 441.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-05/0.4699, allocations: 12 kB / 441.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.4711, allocations: 263.6 kB / 441.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006218/0.4718, allocations: 369.8 kB / 442.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.4719, allocations: 39.98 kB / 442.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002012/0.4739, allocations: 2.271 MB / 444.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/0.474, allocations: 15.94 kB / 444.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00542/0.4794, allocations: 2.498 MB / 446.9 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008693/0.4803, allocations: 323.7 kB / 447.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/0.4807, allocations: 44 kB / 447.2 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.4821, allocations: 139.8 kB / 447.4 MB, free: 5.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004296/0.4825, allocations: 168.2 kB / 447.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.4827, allocations: 44 kB / 447.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001026/0.4837, allocations: 0.5342 MB / 448.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4837, allocations: 0 / 448.1 MB, free: 4.895 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001697/0.4854, allocations: 348 kB / 448.5 MB, free: 4.555 MB / 366.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.0004175/0.4859, allocations: 183.8 kB / 448.6 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00475/0.4906, allocations: 2.042 MB / 450.7 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/0.4906, allocations: 3.938 kB / 450.7 MB, free: 2.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002375/0.493, allocations: 1.049 MB / 451.7 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/0.4946, allocations: 205.9 kB / 451.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006612/0.5013, allocations: 3.087 MB / 455 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.5025, allocations: 1.175 MB / 456.2 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009755/0.5034, allocations: 176.3 kB / 456.4 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004339/0.5039, allocations: 75.44 kB / 456.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5039, allocations: 0 / 456.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of Templates: time 0.03563/0.5395, allocations: 19.02 MB / 475.5 MB, free: 9.281 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches