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.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.001806/0.001806, allocations: 81.17 kB / 21.99 MB, free: 4.754 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.002051/0.002051, allocations: 153.4 kB / 25.24 MB, free: 2.75 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.306/1.306, allocations: 158.6 MB / 187 MB, free: 6.188 MB / 174.1 MB " [Timeout remaining time 179] 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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 59.91 kB / 299.4 MB, free: 6.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.2058, allocations: 49.15 MB / 348.5 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01047/0.2163, allocations: 7.999 MB / 356.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004343/0.2206, allocations: 2.28 MB / 358.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007768/0.2214, allocations: 39.75 kB / 358.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007806/0.2222, allocations: 329 kB / 359.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001156/0.2234, allocations: 499.8 kB / 359.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.2246, allocations: 0.6633 MB / 360.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002444/0.227, allocations: 2.349 MB / 362.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.2281, allocations: 0.6866 MB / 363.3 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009602/0.2291, allocations: 0.8413 MB / 364.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009855/0.2301, allocations: 0.7816 MB / 365 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003148/0.2304, allocations: 276 kB / 365.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005259/0.2309, allocations: 335.9 kB / 365.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004523/0.2314, allocations: 0.5104 MB / 366.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008114/0.2322, allocations: 0.7976 MB / 366.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003231/0.2354, allocations: 3.385 MB / 370.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2354, allocations: 0 / 370.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2354, allocations: 0 / 370.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.991e-05/0.2354, allocations: 0 / 370.3 MB, free: 9.656 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.003767/0.2392, allocations: 1.897 MB / 372.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2392, allocations: 19.92 kB / 372.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003742/0.2396, allocations: 183.9 kB / 372.4 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.241, allocations: 0.786 MB / 373.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004125/0.2414, allocations: 446.3 kB / 373.6 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000256/0.2416, allocations: 167.9 kB / 373.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003362/0.245, allocations: 1.891 MB / 375.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.879e-05/0.245, allocations: 3.953 kB / 375.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2452, allocations: 64 kB / 375.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.662e-05/0.2452, allocations: 36 kB / 375.7 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00354/0.2488, allocations: 1.57 MB / 377.3 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008872/0.2576, allocations: 5.003 MB / 382.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002264/0.2599, allocations: 0.9026 MB / 383.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.261, allocations: 0.5008 MB / 383.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.735e-05/0.2611, allocations: 13 kB / 383.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.2626, allocations: 0.8653 MB / 384.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.855e-06/0.2626, allocations: 0 / 384.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.03664/0.2993, allocations: 8.688 MB / 393.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/0.2994, allocations: 303.7 kB / 393.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.3006, allocations: 0.7813 MB / 394.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.3007, allocations: 53.7 kB / 394.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005918/0.3013, allocations: 0.676 MB / 395.1 MB, free: 156 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004362/0.3017, allocations: 436.5 kB / 395.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004921/0.3022, allocations: 251.6 kB / 395.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.3024, allocations: 406.7 kB / 396.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/0.3046, allocations: 0.8121 MB / 397 MB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002611/0.3072, allocations: 1.343 MB / 398.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004038/0.3112, allocations: 1.65 MB / 400 MB, free: 11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/0.3112, allocations: 7.938 kB / 400 MB, free: 10.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005076/0.3163, allocations: 2.077 MB / 402 MB, free: 8.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.3163, allocations: 11.94 kB / 402.1 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.3163, allocations: 8 kB / 402.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.3168, allocations: 190.5 kB / 402.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.3185, allocations: 347.5 kB / 402.6 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004145/0.3227, allocations: 4.408 MB / 407 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.3242, allocations: 172 kB / 407.2 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3243, allocations: 48 kB / 407.2 MB, free: 3.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: 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 (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.0006927/0.325, allocations: 391.4 kB / 407.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.3252, allocations: 107.3 kB / 407.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002326/0.3254, allocations: 129.6 kB / 407.8 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.3254, allocations: 15.94 kB / 407.8 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3254, allocations: 0 / 407.8 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.3254, allocations: 7.922 kB / 407.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007851/0.3333, allocations: 3.898 MB / 411.7 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.3333, allocations: 8 kB / 411.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.3345, allocations: 259.6 kB / 412 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005963/0.3351, allocations: 381.6 kB / 412.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-05/0.3351, allocations: 35.98 kB / 412.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/0.337, allocations: 2.133 MB / 414.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.297e-05/0.3371, allocations: 20.06 kB / 414.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005378/0.3424, allocations: 2.511 MB / 417.1 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/0.3431, allocations: 247.2 kB / 417.3 MB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.3433, allocations: 47.98 kB / 417.4 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.3444, allocations: 143.8 kB / 417.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000366/0.3447, allocations: 172.2 kB / 417.7 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.769e-05/0.3448, allocations: 47.98 kB / 417.7 MB, free: 8.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007389/0.3456, allocations: 0.5108 MB / 418.2 MB, free: 7.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3456, allocations: 7.938 kB / 418.2 MB, free: 7.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001203/0.3468, allocations: 347.9 kB / 418.6 MB, free: 7.57 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: 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003257/0.3471, allocations: 190.9 kB / 418.8 MB, free: 7.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004457/0.3516, allocations: 1.944 MB / 420.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3516, allocations: 0 / 420.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/0.3539, allocations: 1.04 MB / 421.8 MB, free: 4.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.355, allocations: 179.1 kB / 421.9 MB, free: 4.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/0.3609, allocations: 3.125 MB / 425 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006821/0.3616, allocations: 0.5862 MB / 425.6 MB, free: 276 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007206/0.3623, allocations: 164 kB / 425.8 MB, free: 108 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003653/0.3626, allocations: 80.5 kB / 425.9 MB, free: 28 kB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3626, allocations: 0 / 425.9 MB, free: 28 kB / 382.1 MB Notification: Performance of Templates: time 0.03155/0.3942, allocations: 18.16 MB / 444 MB, free: 13.8 MB / 414.1 MB " [Timeout remaining time 660] 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 -s ida -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/jenkins1/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/jenkins1/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.006064574001357]