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.001363/0.001363, allocations: 110.6 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.00153/0.00153, allocations: 194.9 kB / 18.67 MB, free: 4.387 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.25 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.001185/0.001185, allocations: 55.94 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1061, allocations: 46.61 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.2669/0.3731, allocations: 9.176 MB / 384.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00851/0.3816, allocations: 2.313 MB / 386.6 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004105/0.3859, allocations: 27.81 kB / 386.7 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.3876, allocations: 328.1 kB / 387 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003455/0.3911, allocations: 495.2 kB / 387.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.3932, allocations: 0.6502 MB / 388.1 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003836/0.397, allocations: 2.346 MB / 390.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.3989, allocations: 1.103 MB / 391.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.4008, allocations: 0.8447 MB / 392.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.4026, allocations: 0.8903 MB / 393.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004806/0.4031, allocations: 276.4 kB / 393.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008043/0.4039, allocations: 327.4 kB / 393.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005067/0.4044, allocations: 0.4999 MB / 394.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.4057, allocations: 0.9684 MB / 395.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005246/0.411, allocations: 3.359 MB / 398.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.411, allocations: 1.219 kB / 398.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.411, allocations: 0 / 398.7 MB, free: 1.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001173/0.4111, allocations: 0 / 398.7 MB, free: 1.309 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.004861/0.416, allocations: 1.967 MB / 400.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4161, allocations: 9.969 kB / 400.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004208/0.4165, allocations: 185.5 kB / 400.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.4181, allocations: 0.8545 MB / 401.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003609/0.4184, allocations: 230 kB / 402 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.4187, allocations: 166.2 kB / 402.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003559/0.4223, allocations: 1.688 MB / 403.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.255e-05/0.4224, allocations: 10.48 kB / 403.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.4225, allocations: 61.28 kB / 403.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.211e-05/0.4226, allocations: 37.53 kB / 403.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003524/0.4261, allocations: 1.565 MB / 405.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.4363, allocations: 5.835 MB / 411.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.4385, allocations: 0.9455 MB / 412.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.4396, allocations: 0.5236 MB / 412.8 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.899e-05/0.4397, allocations: 9.594 kB / 412.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.4411, allocations: 0.6573 MB / 413.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 2.605e-06/0.4411, allocations: 1.125 kB / 413.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03469/0.4758, allocations: 8.972 MB / 422.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/0.476, allocations: 303.7 kB / 422.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.4774, allocations: 0.7896 MB / 423.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.4776, allocations: 61.72 kB / 423.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006597/0.4783, allocations: 0.6722 MB / 424.2 MB, free: 14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004016/0.4787, allocations: 428.4 kB / 424.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004969/0.4792, allocations: 247.5 kB / 424.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.4794, allocations: 410.7 kB / 425.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/0.4813, allocations: 0.8121 MB / 426.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.4834, allocations: 1.126 MB / 427.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003567/0.487, allocations: 1.65 MB / 428.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.487, allocations: 3.938 kB / 428.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004688/0.4917, allocations: 2.084 MB / 431 MB, free: 7.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.4918, allocations: 8 kB / 431 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.4918, allocations: 8 kB / 431 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004428/0.4922, allocations: 174.5 kB / 431.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.4939, allocations: 351.5 kB / 431.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00405/0.4979, allocations: 4.815 MB / 436.3 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4998, allocations: 163.9 kB / 436.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002222/0.5, allocations: 55.92 kB / 436.5 MB, free: 1.027 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.001139/0.5012, allocations: 391.2 kB / 436.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003747/0.5016, allocations: 115.2 kB / 437 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00041/0.502, allocations: 130 kB / 437.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.502, allocations: 12.14 kB / 437.2 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.808e-05/0.502, allocations: 4 kB / 437.2 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.5021, allocations: 7.969 kB / 437.2 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009469/0.5115, allocations: 4.417 MB / 441.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/0.5116, allocations: 8 kB / 441.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.5128, allocations: 263.6 kB / 441.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006363/0.5134, allocations: 361.7 kB / 442.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.5136, allocations: 39.98 kB / 442.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.5155, allocations: 2.271 MB / 444.5 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/0.5155, allocations: 11.94 kB / 444.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005242/0.5208, allocations: 2.506 MB / 447.1 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009545/0.5218, allocations: 328.3 kB / 447.4 MB, free: 5.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000408/0.5222, allocations: 47.98 kB / 447.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.5236, allocations: 139.9 kB / 447.6 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.524, allocations: 168.2 kB / 447.7 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5241, allocations: 43.98 kB / 447.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.5251, allocations: 0.5342 MB / 448.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5251, allocations: 0 / 448.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001991/0.5271, allocations: 344 kB / 448.6 MB, free: 4.387 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.0004914/0.5276, allocations: 192 kB / 448.8 MB, free: 4.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00462/0.5323, allocations: 2.042 MB / 450.9 MB, free: 2.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.5323, allocations: 4 kB / 450.9 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00235/0.5347, allocations: 1.048 MB / 451.9 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.5364, allocations: 212.4 kB / 452.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007611/0.544, allocations: 3.118 MB / 455.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.5454, allocations: 1.186 MB / 456.4 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.5467, allocations: 168.4 kB / 456.6 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.5472, allocations: 79.42 kB / 456.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5473, allocations: 0 / 456.7 MB, free: 12.11 MB / 382.1 MB Notification: Performance of Templates: time 0.03663/0.5839, allocations: 19.03 MB / 475.7 MB, free: 9.043 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