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.001304/0.001304, allocations: 73.41 kB / 21.24 MB, free: 0.5547 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.001329/0.001329, allocations: 161.2 kB / 24.5 MB, free: 3.715 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.42/1.42, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.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.001576/0.001576, allocations: 51.89 kB / 325.6 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09408, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01136/0.1054, allocations: 8.214 MB / 387.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004668/0.1101, allocations: 2.395 MB / 389.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006265/0.1107, allocations: 27.88 kB / 389.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008021/0.1115, allocations: 348.9 kB / 389.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.1126, allocations: 0.5191 MB / 390.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.1138, allocations: 0.6516 MB / 391.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002307/0.1161, allocations: 2.364 MB / 393.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.1172, allocations: 0.6983 MB / 394.1 MB, free: 340 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009466/0.1181, allocations: 0.8608 MB / 395 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.1191, allocations: 0.7816 MB / 395.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003244/0.1194, allocations: 280 kB / 396 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005931/0.12, allocations: 352 kB / 396.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004799/0.1205, allocations: 0.5142 MB / 396.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007996/0.1213, allocations: 0.7976 MB / 397.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003251/0.1246, allocations: 3.445 MB / 401.1 MB, free: 9.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1246, allocations: 0 / 401.1 MB, free: 9.293 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1246, allocations: 0 / 401.1 MB, free: 9.293 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.1246, allocations: 0 / 401.1 MB, free: 9.293 MB / 366.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.003748/0.1283, allocations: 1.921 MB / 403.1 MB, free: 7.332 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1284, allocations: 12.03 kB / 403.1 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004011/0.1288, allocations: 195.8 kB / 403.3 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.1302, allocations: 0.7938 MB / 404.1 MB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004319/0.1306, allocations: 442.3 kB / 404.5 MB, free: 5.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.1309, allocations: 163.9 kB / 404.6 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003513/0.1344, allocations: 1.887 MB / 406.5 MB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.979e-05/0.1344, allocations: 3.953 kB / 406.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.1346, allocations: 68 kB / 406.6 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.1346, allocations: 36 kB / 406.6 MB, free: 3.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00361/0.1382, allocations: 1.531 MB / 408.2 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009239/0.1475, allocations: 5.014 MB / 413.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.1497, allocations: 0.8953 MB / 414.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.1509, allocations: 484.7 kB / 414.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.1509, allocations: 9 kB / 414.6 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001514/0.1524, allocations: 0.8575 MB / 415.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=92): time 5.099e-06/0.1524, allocations: 4 kB / 415.4 MB, free: 10.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.03626/0.1887, allocations: 8.551 MB / 424 MB, free: 1.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001827/0.1889, allocations: 303.7 kB / 424.3 MB, free: 1.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.19, allocations: 0.7854 MB / 425.1 MB, free: 0.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.1901, allocations: 57.73 kB / 425.1 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006075/0.1908, allocations: 0.6918 MB / 425.8 MB, free: 15.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003779/0.1911, allocations: 432.3 kB / 426.2 MB, free: 15.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004863/0.1916, allocations: 247.5 kB / 426.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.1918, allocations: 410.7 kB / 426.9 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002124/0.194, allocations: 0.7965 MB / 427.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.1965, allocations: 1.315 MB / 429 MB, free: 12.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003976/0.2005, allocations: 1.615 MB / 430.6 MB, free: 10.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.2005, allocations: 4 kB / 430.6 MB, free: 10.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005197/0.2057, allocations: 2.041 MB / 432.6 MB, free: 8.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.2057, allocations: 8 kB / 432.6 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.2057, allocations: 4 kB / 432.6 MB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004927/0.2062, allocations: 218.4 kB / 432.9 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.2079, allocations: 351.5 kB / 433.2 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004549/0.2125, allocations: 4.44 MB / 437.6 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.2142, allocations: 167.9 kB / 437.8 MB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.2143, allocations: 48 kB / 437.9 MB, free: 3.281 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.001047/0.2154, allocations: 395.6 kB / 438.2 MB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003124/0.2157, allocations: 107.3 kB / 438.3 MB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/0.216, allocations: 133.8 kB / 438.5 MB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.216, allocations: 12 kB / 438.5 MB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.2161, allocations: 4 kB / 438.5 MB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.2161, allocations: 3.984 kB / 438.5 MB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00875/0.2248, allocations: 3.835 MB / 442.3 MB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.379e-05/0.2248, allocations: 11.94 kB / 442.3 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.2261, allocations: 268.3 kB / 442.6 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005824/0.2266, allocations: 273.5 kB / 442.9 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.2268, allocations: 39.98 kB / 442.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.2288, allocations: 2.067 MB / 445 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.436e-05/0.2288, allocations: 15.94 kB / 445 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005341/0.2341, allocations: 2.417 MB / 447.4 MB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007675/0.2349, allocations: 251.2 kB / 447.7 MB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002978/0.2352, allocations: 44 kB / 447.7 MB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.2365, allocations: 135.8 kB / 447.8 MB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/0.2369, allocations: 188.1 kB / 448 MB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.237, allocations: 40 kB / 448.1 MB, free: 8.613 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009547/0.2379, allocations: 0.5264 MB / 448.6 MB, free: 8.086 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2379, allocations: 0 / 448.6 MB, free: 8.086 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001439/0.2394, allocations: 336 kB / 448.9 MB, free: 7.758 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.00164/0.241, allocations: 448.8 kB / 449.3 MB, free: 7.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004768/0.2458, allocations: 1.902 MB / 451.3 MB, free: 5.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/0.2458, allocations: 4 kB / 451.3 MB, free: 5.527 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.2483, allocations: 1.013 MB / 452.3 MB, free: 4.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.2497, allocations: 191.5 kB / 452.5 MB, free: 4.316 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006528/0.2562, allocations: 3.147 MB / 455.6 MB, free: 1.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008345/0.2571, allocations: 0.6018 MB / 456.2 MB, free: 388 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008557/0.2579, allocations: 172 kB / 456.4 MB, free: 212 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/0.2583, allocations: 80.5 kB / 456.5 MB, free: 132 kB / 414.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2583, allocations: 0 / 456.5 MB, free: 132 kB / 414.1 MB Notification: Performance of Templates: time 0.213/0.4713, allocations: 18.4 MB / 474.8 MB, free: 85.54 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 ida -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.261292879004031]