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.001407/0.001407, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001581/0.001581, allocations: 211.9 kB / 23.73 MB, free: 4.387 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.00164/0.00164, allocations: 51.92 kB / 378.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2743, allocations: 53.37 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01149/0.2857, allocations: 8.196 MB / 439.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005407/0.2911, allocations: 2.407 MB / 442.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.2925, allocations: 31.88 kB / 442.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.2936, allocations: 344.9 kB / 442.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.2951, allocations: 0.5113 MB / 443.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.2964, allocations: 0.6555 MB / 443.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.2991, allocations: 2.364 MB / 446.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001202/0.3003, allocations: 0.6984 MB / 446.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001171/0.3015, allocations: 0.8491 MB / 447.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.3027, allocations: 0.7932 MB / 448.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004142/0.3031, allocations: 280 kB / 448.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006741/0.3038, allocations: 352 kB / 449.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004634/0.3043, allocations: 0.522 MB / 449.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008188/0.3051, allocations: 0.7899 MB / 450.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.3087, allocations: 3.448 MB / 453.8 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3087, allocations: 0 / 453.8 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3087, allocations: 0 / 453.8 MB, free: 368 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.568e-05/0.3088, allocations: 0 / 453.8 MB, free: 368 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.004251/0.313, allocations: 1.921 MB / 455.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3131, allocations: 12.03 kB / 455.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004219/0.3135, allocations: 191.8 kB / 455.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.315, allocations: 0.7821 MB / 456.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004569/0.3155, allocations: 454.3 kB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002645/0.3158, allocations: 163.9 kB / 457.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003616/0.3194, allocations: 1.875 MB / 459.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.3194, allocations: 7.953 kB / 459.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000155/0.3196, allocations: 64 kB / 459.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.3196, allocations: 36 kB / 459.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.3231, allocations: 1.531 MB / 460.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009306/0.3324, allocations: 5.014 MB / 465.8 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.3347, allocations: 0.8918 MB / 466.7 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/0.3358, allocations: 493.8 kB / 467.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.976e-05/0.3358, allocations: 9 kB / 467.2 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001507/0.3373, allocations: 0.8497 MB / 468.1 MB, free: 1.559 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.086e-06/0.3374, allocations: 0 / 468.1 MB, free: 1.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03499/0.3723, allocations: 8.559 MB / 476.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002046/0.3725, allocations: 299.7 kB / 476.9 MB, free: 8.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/0.3738, allocations: 0.7893 MB / 477.7 MB, free: 7.789 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.3739, allocations: 53.7 kB / 477.8 MB, free: 7.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000645/0.3746, allocations: 0.6877 MB / 478.5 MB, free: 7.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004206/0.375, allocations: 436.3 kB / 478.9 MB, free: 6.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004938/0.3755, allocations: 251.5 kB / 479.1 MB, free: 6.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.3757, allocations: 406.7 kB / 479.5 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/0.3778, allocations: 0.7965 MB / 480.3 MB, free: 5.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002539/0.3803, allocations: 1.323 MB / 481.6 MB, free: 3.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00392/0.3843, allocations: 1.603 MB / 483.3 MB, free: 1.961 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.3843, allocations: 4 kB / 483.3 MB, free: 1.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005116/0.3894, allocations: 2.049 MB / 485.3 MB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.3894, allocations: 8 kB / 485.3 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3894, allocations: 4 kB / 485.3 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005212/0.39, allocations: 222.4 kB / 485.5 MB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.3917, allocations: 351.4 kB / 485.9 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004876/0.3966, allocations: 4.432 MB / 490.3 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.3984, allocations: 172 kB / 490.5 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.3985, allocations: 55.94 kB / 490.5 MB, free: 10.35 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.0008147/0.3993, allocations: 391.6 kB / 490.9 MB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.3995, allocations: 119.2 kB / 491 MB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.3998, allocations: 129.8 kB / 491.2 MB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.3998, allocations: 12 kB / 491.2 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3998, allocations: 0 / 491.2 MB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.3999, allocations: 11.97 kB / 491.2 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008282/0.4081, allocations: 3.816 MB / 495 MB, free: 5.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.4082, allocations: 12 kB / 495 MB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.4093, allocations: 263.5 kB / 495.3 MB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/0.4099, allocations: 289.6 kB / 495.5 MB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.003e-05/0.41, allocations: 39.98 kB / 495.6 MB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.4119, allocations: 2.055 MB / 497.6 MB, free: 2.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.357e-05/0.4119, allocations: 24 kB / 497.7 MB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005284/0.4172, allocations: 2.409 MB / 0.4884 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/0.418, allocations: 255.2 kB / 0.4886 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.4182, allocations: 44 kB / 0.4886 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.4193, allocations: 139.8 kB / 0.4888 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.4197, allocations: 176.2 kB / 0.4889 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.114e-05/0.4198, allocations: 51.98 kB / 0.489 GB, free: 15.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008276/0.4206, allocations: 0.5186 MB / 0.4895 GB, free: 15.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4206, allocations: 4 kB / 0.4895 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001307/0.4219, allocations: 339.9 kB / 0.4898 GB, free: 14.83 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.001603/0.4235, allocations: 457.6 kB / 0.4903 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004563/0.4281, allocations: 1.899 MB / 0.4921 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/0.4281, allocations: 4 kB / 0.4921 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002452/0.4306, allocations: 1.02 MB / 0.4931 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4317, allocations: 178.8 kB / 0.4933 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00625/0.438, allocations: 3.145 MB / 0.4964 GB, free: 8.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007423/0.4387, allocations: 0.598 MB / 0.4969 GB, free: 7.457 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008506/0.4396, allocations: 164 kB / 0.4971 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.44, allocations: 87.42 kB / 0.4972 GB, free: 7.207 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.44, allocations: 0 / 0.4972 GB, free: 7.207 MB / 414.1 MB Notification: Performance of Templates: time 0.03564/0.4756, allocations: 20.06 MB / 0.5168 GB, free: 3.348 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 -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/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_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.357280977070332]