Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001949/0.001949, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002318/0.002318, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.594/1.594, allocations: 230.6 MB / 258.3 MB, free: 8.027 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 72.75 kB / 379 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2312, allocations: 53.36 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01251/0.2437, allocations: 9.485 MB / 441.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005345/0.249, allocations: 2.458 MB / 444.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.2504, allocations: 39.75 kB / 444.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.2515, allocations: 344.9 kB / 444.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.2534, allocations: 0.5075 MB / 445.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.2548, allocations: 0.6554 MB / 445.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.2581, allocations: 2.372 MB / 448.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.2593, allocations: 0.741 MB / 449 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.2608, allocations: 0.8958 MB / 449.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.262, allocations: 0.8988 MB / 450.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003635/0.2624, allocations: 276 kB / 451.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005573/0.2629, allocations: 332 kB / 451.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005271/0.2634, allocations: 0.5181 MB / 451.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.2645, allocations: 0.9803 MB / 452.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003929/0.2684, allocations: 3.404 MB / 456.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2684, allocations: 4 kB / 456.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2684, allocations: 0 / 456.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.827e-05/0.2685, allocations: 0 / 456.3 MB, free: 14.93 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.003962/0.2725, allocations: 1.924 MB / 458.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.2725, allocations: 8.031 kB / 458.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003324/0.2728, allocations: 191.8 kB / 458.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.2743, allocations: 0.7847 MB / 459.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003425/0.2746, allocations: 244.6 kB / 459.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002565/0.2749, allocations: 163.8 kB / 459.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003436/0.2783, allocations: 1.671 MB / 461.3 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.567e-05/0.2784, allocations: 3.953 kB / 461.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.2785, allocations: 68 kB / 461.3 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.329e-05/0.2785, allocations: 36 kB / 461.4 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003418/0.282, allocations: 1.531 MB / 462.9 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009471/0.2914, allocations: 5.708 MB / 468.6 MB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.2935, allocations: 0.8864 MB / 469.5 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.2945, allocations: 477.1 kB / 470 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.286e-05/0.2946, allocations: 9 kB / 470 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/0.2959, allocations: 0.645 MB / 470.6 MB, free: 216 kB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.264e-06/0.2959, allocations: 0 / 470.6 MB, free: 216 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03372/0.3296, allocations: 8.523 MB / 479.1 MB, free: 7.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001837/0.3298, allocations: 299.7 kB / 479.4 MB, free: 7.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.331, allocations: 0.8092 MB / 480.2 MB, free: 6.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.3312, allocations: 57.69 kB / 480.3 MB, free: 6.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006826/0.3318, allocations: 0.6839 MB / 481 MB, free: 5.699 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004433/0.3323, allocations: 424.4 kB / 481.4 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004968/0.3328, allocations: 247.5 kB / 481.6 MB, free: 5.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000234/0.333, allocations: 406.7 kB / 482 MB, free: 4.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001885/0.3349, allocations: 0.7887 MB / 482.8 MB, free: 3.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/0.3371, allocations: 1.114 MB / 483.9 MB, free: 2.613 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/0.3407, allocations: 1.607 MB / 485.6 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3407, allocations: 0 / 485.6 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004617/0.3453, allocations: 2.041 MB / 487.6 MB, free: 14.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3453, allocations: 8 kB / 487.6 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3453, allocations: 8 kB / 487.6 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004747/0.3458, allocations: 214.4 kB / 487.8 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.3475, allocations: 351.5 kB / 488.2 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004482/0.352, allocations: 4.537 MB / 492.7 MB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.3534, allocations: 171.8 kB / 492.9 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.3535, allocations: 55.98 kB / 492.9 MB, free: 9.168 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: 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 (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.0007311/0.3543, allocations: 399.3 kB / 493.3 MB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.3545, allocations: 107.3 kB / 493.4 MB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.3547, allocations: 130.1 kB / 493.5 MB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.3547, allocations: 15.98 kB / 493.6 MB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.3548, allocations: 4 kB / 493.6 MB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.3548, allocations: 3.984 kB / 493.6 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008048/0.3628, allocations: 4.323 MB / 497.9 MB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.3628, allocations: 8 kB / 497.9 MB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.364, allocations: 263.6 kB / 498.2 MB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005527/0.3645, allocations: 277.7 kB / 498.4 MB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.51e-05/0.3646, allocations: 35.98 kB / 498.5 MB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.3666, allocations: 2.09 MB / 0.4888 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/0.3666, allocations: 15.94 kB / 0.4888 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004768/0.3713, allocations: 2.393 MB / 0.4912 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005534/0.3719, allocations: 255.2 kB / 0.4914 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.3721, allocations: 43.94 kB / 0.4915 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.3731, allocations: 139.8 kB / 0.4916 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003424/0.3735, allocations: 180.2 kB / 0.4918 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.142e-05/0.3735, allocations: 40 kB / 0.4918 GB, free: 14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007862/0.3743, allocations: 0.5459 MB / 0.4923 GB, free: 13.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3743, allocations: 0 / 0.4923 GB, free: 13.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001142/0.3755, allocations: 336 kB / 0.4927 GB, free: 13.12 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: 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/0.3769, allocations: 434 kB / 0.4931 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004044/0.3809, allocations: 1.887 MB / 0.4949 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3809, allocations: 4.438 kB / 0.4949 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/0.3831, allocations: 1.004 MB / 0.4959 GB, free: 9.875 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.3843, allocations: 201 kB / 0.4961 GB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006005/0.3903, allocations: 3.153 MB / 0.4992 GB, free: 6.363 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000939/0.3912, allocations: 1.186 MB / 0.5003 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007855/0.392, allocations: 168.5 kB / 0.5005 GB, free: 4.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.3924, allocations: 87.36 kB / 0.5006 GB, free: 4.895 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3924, allocations: 0 / 0.5006 GB, free: 4.895 MB / 414.1 MB Notification: Performance of Templates: time 0.03525/0.4276, allocations: 20.31 MB / 0.5204 GB, free: 0.7031 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.468652296811342]