Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002/0.002, allocations: 211.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 258.3 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 47.92 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2077, allocations: 53.36 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01107/0.2188, allocations: 8.208 MB / 440.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.2228, allocations: 2.395 MB / 442.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005482/0.2234, allocations: 27.88 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007563/0.2242, allocations: 348.9 kB / 443.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001091/0.2252, allocations: 0.5114 MB / 443.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.2263, allocations: 0.6554 MB / 444.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002364/0.2287, allocations: 2.368 MB / 446.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.2298, allocations: 0.745 MB / 447.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009782/0.2308, allocations: 0.8491 MB / 448.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.2318, allocations: 0.922 MB / 449.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.2321, allocations: 280 kB / 449.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005814/0.2327, allocations: 352 kB / 450 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004676/0.2332, allocations: 0.5181 MB / 450.5 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007707/0.234, allocations: 0.7938 MB / 451.3 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003359/0.2373, allocations: 3.443 MB / 454.7 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2373, allocations: 0 / 454.7 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2373, allocations: 4 kB / 454.7 MB, free: 156 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.325e-05/0.2374, allocations: 0 / 454.7 MB, free: 156 kB / 350.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.003932/0.2413, allocations: 1.917 MB / 456.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2413, allocations: 16.03 kB / 456.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000421/0.2417, allocations: 191.8 kB / 456.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.2432, allocations: 0.7899 MB / 457.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004064/0.2436, allocations: 442.3 kB / 458.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.2438, allocations: 159.9 kB / 458.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003446/0.2473, allocations: 1.883 MB / 460.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.2473, allocations: 3.953 kB / 460.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.2475, allocations: 75.97 kB / 460.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.2475, allocations: 36 kB / 460.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003485/0.251, allocations: 1.534 MB / 461.8 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00894/0.26, allocations: 5.002 MB / 466.8 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00223/0.2622, allocations: 0.8918 MB / 467.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.2633, allocations: 485.8 kB / 468.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.928e-05/0.2633, allocations: 9 kB / 468.1 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001476/0.2648, allocations: 0.8614 MB / 469 MB, free: 1.348 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 2.755e-06/0.2648, allocations: 0 / 469 MB, free: 1.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03591/0.3007, allocations: 8.55 MB / 477.6 MB, free: 8.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.3009, allocations: 303.7 kB / 477.9 MB, free: 8.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.302, allocations: 0.7854 MB / 478.6 MB, free: 7.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.3022, allocations: 61.69 kB / 478.7 MB, free: 7.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005847/0.3028, allocations: 0.6877 MB / 479.4 MB, free: 6.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004032/0.3032, allocations: 436.3 kB / 479.8 MB, free: 6.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005316/0.3037, allocations: 243.5 kB / 480.1 MB, free: 6.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.3039, allocations: 406.7 kB / 480.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.3059, allocations: 0.7965 MB / 481.2 MB, free: 4.945 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0024/0.3083, allocations: 1.319 MB / 482.6 MB, free: 3.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003779/0.3121, allocations: 1.607 MB / 484.2 MB, free: 1.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.3121, allocations: 8 kB / 484.2 MB, free: 1.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00497/0.3171, allocations: 2.045 MB / 486.2 MB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3171, allocations: 11.94 kB / 486.2 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3171, allocations: 4 kB / 486.2 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004857/0.3176, allocations: 218.4 kB / 486.5 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/0.3194, allocations: 355.5 kB / 486.8 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00452/0.3239, allocations: 4.44 MB / 491.2 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/0.3254, allocations: 171.8 kB / 491.4 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.3256, allocations: 51.98 kB / 491.5 MB, free: 10.14 MB / 398.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: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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 (170): * Single equations (assignments): 167 * 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.0007534/0.3263, allocations: 399.5 kB / 491.9 MB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.3265, allocations: 107.3 kB / 492 MB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002809/0.3268, allocations: 125.8 kB / 492.1 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.3268, allocations: 12 kB / 492.1 MB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3268, allocations: 4 kB / 492.1 MB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.3268, allocations: 7.969 kB / 492.1 MB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007875/0.3347, allocations: 3.823 MB / 495.9 MB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.3347, allocations: 9 kB / 495.9 MB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.336, allocations: 271.5 kB / 496.2 MB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000547/0.3365, allocations: 285.5 kB / 496.5 MB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.544e-05/0.3366, allocations: 39.98 kB / 496.5 MB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.3385, allocations: 2.055 MB / 498.6 MB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.3385, allocations: 15.94 kB / 498.6 MB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005202/0.3437, allocations: 2.413 MB / 0.4893 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005749/0.3443, allocations: 251.2 kB / 0.4895 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.3445, allocations: 47.98 kB / 0.4895 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.3456, allocations: 139.9 kB / 0.4897 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/0.346, allocations: 176.3 kB / 0.4898 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.3461, allocations: 51.97 kB / 0.4899 GB, free: 15.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007614/0.3468, allocations: 0.5225 MB / 0.4904 GB, free: 14.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3468, allocations: 0 / 0.4904 GB, free: 14.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001196/0.348, allocations: 343.9 kB / 0.4907 GB, free: 14.62 MB / 414.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: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.001556/0.3496, allocations: 449 kB / 0.4912 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004254/0.3538, allocations: 1.893 MB / 0.493 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.3538, allocations: 4 kB / 0.493 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002324/0.3562, allocations: 1.013 MB / 0.494 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3573, allocations: 194.7 kB / 0.4942 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005911/0.3632, allocations: 3.152 MB / 0.4973 GB, free: 7.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007247/0.3639, allocations: 0.5941 MB / 0.4978 GB, free: 7.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007551/0.3647, allocations: 168 kB / 0.498 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003995/0.3651, allocations: 83.42 kB / 0.4981 GB, free: 7 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3651, allocations: 0 / 0.4981 GB, free: 7 MB / 414.1 MB Notification: Performance of Templates: time 0.03445/0.3995, allocations: 20.49 MB / 0.5181 GB, free: 2.711 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.301193592007621]