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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 107.1 kB / 19.76 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 191.3 kB / 22.93 MB, free: 5.594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 207.6 MB / 233.5 MB, free: 11 MB / 190.1 MB " [Timeout remaining time 178] 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=4704,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=4704,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") [Timeout 660] "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.001698/0.001698, allocations: 51.91 kB / 345.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3364, allocations: 49.13 MB / 394.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00976/0.3462, allocations: 9.247 MB / 403.8 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006016/0.3522, allocations: 2.332 MB / 406.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.3551, allocations: 32.72 kB / 406.1 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.3564, allocations: 322.9 kB / 406.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002967/0.3594, allocations: 0.4986 MB / 407 MB, free: 496 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.3612, allocations: 0.6493 MB / 407.6 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004679/0.3659, allocations: 2.351 MB / 410 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.3674, allocations: 0.7367 MB / 410.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002143/0.3695, allocations: 0.851 MB / 411.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.3718, allocations: 0.8941 MB / 412.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004693/0.3723, allocations: 275 kB / 412.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008273/0.3731, allocations: 328.5 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005944/0.3737, allocations: 0.5046 MB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.3748, allocations: 0.9731 MB / 414.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004374/0.3792, allocations: 3.353 MB / 417.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3792, allocations: 1.25 kB / 417.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3792, allocations: 0 / 417.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.829e-05/0.3793, allocations: 0 / 417.9 MB, free: 9.441 MB / 334.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.004888/0.3842, allocations: 1.966 MB / 419.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.3842, allocations: 14 kB / 419.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000448/0.3847, allocations: 185 kB / 420 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.3863, allocations: 0.8551 MB / 420.9 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003174/0.3866, allocations: 230.4 kB / 421.1 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3869, allocations: 165.1 kB / 421.3 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/0.3906, allocations: 1.675 MB / 422.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.393e-05/0.3907, allocations: 23.28 kB / 423 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.3908, allocations: 62 kB / 423 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.3908, allocations: 36.25 kB / 423.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003359/0.3942, allocations: 1.558 MB / 424.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009723/0.4039, allocations: 5.838 MB / 430.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.4059, allocations: 0.8901 MB / 431.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.4069, allocations: 496.8 kB / 431.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.789e-05/0.407, allocations: 16.98 kB / 431.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.4083, allocations: 0.6528 MB / 432.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.745e-06/0.4083, allocations: 0 / 432.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.03289/0.4412, allocations: 8.965 MB / 441.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001907/0.4414, allocations: 303.7 kB / 441.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.4426, allocations: 0.7857 MB / 442.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.4427, allocations: 53.7 kB / 442.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006697/0.4434, allocations: 0.676 MB / 443.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004497/0.4439, allocations: 436.3 kB / 443.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005234/0.4444, allocations: 247.6 kB / 443.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002653/0.4446, allocations: 410.7 kB / 444.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.4466, allocations: 0.8082 MB / 445.2 MB, free: 500 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/0.4487, allocations: 1.134 MB / 446.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/0.4523, allocations: 1.654 MB / 447.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.4523, allocations: 4 kB / 447.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00468/0.457, allocations: 2.065 MB / 450 MB, free: 11.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.457, allocations: 19.89 kB / 450 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.457, allocations: 8 kB / 450 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.4574, allocations: 178.5 kB / 450.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.4591, allocations: 351.5 kB / 450.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.4638, allocations: 4.815 MB / 455.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4655, allocations: 163.9 kB / 455.5 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4656, allocations: 52 kB / 455.6 MB, free: 5.406 MB / 366.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.0008112/0.4664, allocations: 391.2 kB / 456 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.4666, allocations: 115.2 kB / 456.1 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.4669, allocations: 130 kB / 456.2 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.4669, allocations: 12 kB / 456.2 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.4669, allocations: 0 / 456.2 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.4669, allocations: 8.109 kB / 456.2 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/0.4752, allocations: 4.413 MB / 460.6 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.4753, allocations: 8 kB / 460.6 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.4764, allocations: 271.6 kB / 460.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006238/0.477, allocations: 357.5 kB / 461.3 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.515e-05/0.4771, allocations: 39.98 kB / 461.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.4793, allocations: 2.283 MB / 463.6 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/0.4793, allocations: 11.94 kB / 463.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005036/0.4844, allocations: 2.502 MB / 466.1 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/0.4851, allocations: 324.3 kB / 466.4 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/0.4853, allocations: 47.98 kB / 466.5 MB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.4863, allocations: 135.9 kB / 466.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003624/0.4867, allocations: 168.2 kB / 466.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-05/0.4867, allocations: 43.98 kB / 466.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008197/0.4876, allocations: 0.5342 MB / 467.3 MB, free: 9.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4876, allocations: 0 / 467.3 MB, free: 9.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001394/0.489, allocations: 348 kB / 467.7 MB, free: 8.77 MB / 382.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.0003606/0.4893, allocations: 174.9 kB / 467.8 MB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004238/0.4936, allocations: 1.922 MB / 469.8 MB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.4936, allocations: 3.938 kB / 469.8 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002273/0.4958, allocations: 1.031 MB / 470.8 MB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.4972, allocations: 206.9 kB / 471 MB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006106/0.5033, allocations: 3.129 MB / 474.1 MB, free: 2.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000926/0.5042, allocations: 1.178 MB / 475.3 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009504/0.5052, allocations: 172.3 kB / 475.5 MB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/0.5055, allocations: 83.42 kB / 475.6 MB, free: 0.625 MB / 382.1 MB Notification: Performance of SimCode: time 2.264e-06/0.5055, allocations: 0 / 475.6 MB, free: 0.625 MB / 382.1 MB Notification: Performance of Templates: time 0.03767/0.5432, allocations: 19.69 MB / 495.3 MB, free: 12.9 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.582981379702687]