Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001466/0.001466, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001536/0.001536, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 177 MB / 204.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.512e-05/3.707e-05, allocations: 2.312 kB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01198/0.01201, allocations: 8.209 MB / 280.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005542/0.01756, allocations: 2.407 MB / 282.8 MB, free: 7.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.01903, allocations: 27.88 kB / 282.9 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.02061, allocations: 352.8 kB / 283.2 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003283/0.02389, allocations: 0.5228 MB / 283.7 MB, free: 6.207 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.02559, allocations: 0.6631 MB / 284.4 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003399/0.02899, allocations: 2.441 MB / 286.8 MB, free: 3.094 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.03027, allocations: 0.6944 MB / 287.5 MB, free: 2.352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.03221, allocations: 1.322 MB / 288.8 MB, free: 1.027 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.03325, allocations: 0.6778 MB / 289.5 MB, free: 356 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003796/0.03363, allocations: 284 kB / 289.8 MB, free: 72 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1323/0.1659, allocations: 345.2 kB / 290.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000574/0.1665, allocations: 0.5237 MB / 290.7 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.1675, allocations: 0.6913 MB / 291.4 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004203/0.1717, allocations: 3.54 MB / 294.9 MB, free: 17.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1717, allocations: 1.156 kB / 294.9 MB, free: 17.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1717, allocations: 3.281 kB / 294.9 MB, free: 17.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.525e-05/0.1718, allocations: 0 / 294.9 MB, free: 17.99 MB / 266.7 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.004529/0.1763, allocations: 1.903 MB / 296.8 MB, free: 17.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1764, allocations: 14.27 kB / 296.8 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006545/0.177, allocations: 323.7 kB / 297.1 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.1784, allocations: 0.805 MB / 297.9 MB, free: 16.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003054/0.1787, allocations: 448.5 kB / 298.4 MB, free: 16.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000259/0.179, allocations: 163.9 kB / 298.5 MB, free: 16.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/0.1821, allocations: 1.885 MB / 300.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.001e-05/0.1821, allocations: 5.734 kB / 300.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/0.1823, allocations: 68.25 kB / 300.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.292e-05/0.1823, allocations: 35.62 kB / 300.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003188/0.1855, allocations: 1.531 MB / 302.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00784/0.1933, allocations: 5.099 MB / 307.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001895/0.1952, allocations: 0.8893 MB / 308 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009303/0.1962, allocations: 498.6 kB / 308.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.059e-05/0.1962, allocations: 15.88 kB / 308.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001159/0.1974, allocations: 0.8513 MB / 309.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.314e-06/0.1974, allocations: 3.75 kB / 309.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.03214/0.2295, allocations: 8.583 MB / 318 MB, free: 2.641 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/0.2296, allocations: 303.7 kB / 318.3 MB, free: 2.277 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.2306, allocations: 0.7893 MB / 319.1 MB, free: 1.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.2307, allocations: 53.7 kB / 319.1 MB, free: 1.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.2312, allocations: 0.6827 MB / 319.8 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.2315, allocations: 435.4 kB / 320.2 MB, free: 320 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004511/0.2319, allocations: 243.5 kB / 320.5 MB, free: 68 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.2322, allocations: 411 kB / 320.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/0.2344, allocations: 0.7953 MB / 321.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002634/0.237, allocations: 1.322 MB / 323 MB, free: 13.39 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004087/0.2411, allocations: 1.617 MB / 324.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.2411, allocations: 4 kB / 324.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005497/0.2466, allocations: 2.093 MB / 326.7 MB, free: 9.637 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.2466, allocations: 8 kB / 326.7 MB, free: 9.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.2467, allocations: 8 kB / 326.7 MB, free: 9.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000707/0.2474, allocations: 238.5 kB / 327 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.2492, allocations: 358 kB / 327.3 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.2545, allocations: 4.439 MB / 331.7 MB, free: 4.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.2563, allocations: 167.9 kB / 331.9 MB, free: 4.156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/0.2565, allocations: 44 kB / 332 MB, free: 4.113 MB / 282.7 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.001027/0.2576, allocations: 391.3 kB / 332.3 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.258, allocations: 147.3 kB / 332.5 MB, free: 3.594 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003755/0.2584, allocations: 133.8 kB / 332.6 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.2584, allocations: 12 kB / 332.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.2584, allocations: 7.938 kB / 332.6 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.2585, allocations: 3.984 kB / 332.6 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009595/0.268, allocations: 3.829 MB / 336.5 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.362e-05/0.2681, allocations: 12.08 kB / 336.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.2694, allocations: 272.3 kB / 336.7 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007036/0.2701, allocations: 286.1 kB / 337 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.2702, allocations: 43.98 kB / 337.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.2725, allocations: 2.074 MB / 339.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/0.2725, allocations: 11.28 kB / 339.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.2784, allocations: 2.43 MB / 341.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008039/0.2792, allocations: 256.1 kB / 341.8 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/0.2795, allocations: 47.98 kB / 341.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.2808, allocations: 139.9 kB / 342 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004434/0.2813, allocations: 178.3 kB / 342.2 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.2814, allocations: 43.98 kB / 342.2 MB, free: 9.547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001037/0.2824, allocations: 0.5225 MB / 342.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2824, allocations: 4 kB / 342.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001866/0.2843, allocations: 339.9 kB / 343.1 MB, free: 8.688 MB / 298.7 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.001938/0.2863, allocations: 452.1 kB / 343.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004941/0.2912, allocations: 1.897 MB / 345.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/0.2912, allocations: 5.812 kB / 345.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002555/0.2938, allocations: 1.018 MB / 346.4 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.2952, allocations: 211.3 kB / 346.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007189/0.3024, allocations: 3.019 MB / 349.7 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.3034, allocations: 0.598 MB / 350.3 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000951/0.3044, allocations: 164 kB / 350.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004522/0.3048, allocations: 76.5 kB / 350.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.3049, allocations: 8 kB / 350.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of Templates: time 0.03571/0.3406, allocations: 18.4 MB / 368.9 MB, free: 15.17 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.287185664055869]