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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009415/0.0009414, allocations: 100.4 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008956/0.0008956, allocations: 51.91 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.1935, allocations: 50.47 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007554/0.2011, allocations: 9.306 MB / 416.4 MB, free: 18.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003801/0.2049, allocations: 2.37 MB / 418.7 MB, free: 16.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008334/0.2058, allocations: 31.88 kB / 418.8 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006543/0.2065, allocations: 266.2 kB / 419 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008874/0.2074, allocations: 428.8 kB / 419.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008063/0.2082, allocations: 0.5777 MB / 420 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.2094, allocations: 2.185 MB / 422.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001088/0.2105, allocations: 1.005 MB / 423.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008834/0.2114, allocations: 0.7043 MB / 423.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006913/0.2121, allocations: 0.805 MB / 424.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.2123, allocations: 128 kB / 424.9 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003835/0.2127, allocations: 180 kB / 425 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003046/0.213, allocations: 362.7 kB / 425.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007408/0.2138, allocations: 0.8475 MB / 426.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.2159, allocations: 3.197 MB / 429.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2159, allocations: 0 / 429.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2159, allocations: 0 / 429.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.173e-05/0.2159, allocations: 0 / 429.4 MB, free: 5.312 MB / 298.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.003035/0.219, allocations: 1.947 MB / 431.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.219, allocations: 8.031 kB / 431.4 MB, free: 3.301 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000224/0.2193, allocations: 186.9 kB / 431.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008982/0.2202, allocations: 0.8419 MB / 432.4 MB, free: 2.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.2204, allocations: 228.7 kB / 432.6 MB, free: 1.988 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/0.2206, allocations: 167.8 kB / 432.8 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.223, allocations: 1.667 MB / 434.5 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.879e-05/0.223, allocations: 7.906 kB / 434.5 MB, free: 124 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.2231, allocations: 64 kB / 434.5 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.2232, allocations: 36 kB / 434.6 MB, free: 24 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003144/0.2263, allocations: 1.527 MB / 436.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008456/0.2348, allocations: 5.876 MB / 442 MB, free: 8.398 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.2368, allocations: 0.9368 MB / 442.9 MB, free: 7.438 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009999/0.2378, allocations: 0.5011 MB / 443.4 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-05/0.2379, allocations: 13 kB / 443.4 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.2391, allocations: 0.6333 MB / 444.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 3.086e-06/0.2391, allocations: 4 kB / 444.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.03461/0.2737, allocations: 8.768 MB / 452.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.2739, allocations: 307.8 kB / 453.1 MB, free: 12.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.2751, allocations: 0.8012 MB / 453.9 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.2752, allocations: 57.69 kB / 454 MB, free: 12.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/0.2757, allocations: 0.6622 MB / 454.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/0.276, allocations: 406.1 kB / 455 MB, free: 11.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00049/0.2765, allocations: 251.3 kB / 455.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.2767, allocations: 414.7 kB / 455.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/0.2787, allocations: 0.7848 MB / 456.5 MB, free: 9.574 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.281, allocations: 1.107 MB / 457.6 MB, free: 8.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003674/0.2847, allocations: 1.6 MB / 459.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2848, allocations: 0 / 459.2 MB, free: 6.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004716/0.2895, allocations: 2.021 MB / 461.2 MB, free: 4.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.2895, allocations: 10.66 kB / 461.2 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.2895, allocations: 8 kB / 461.2 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004431/0.29, allocations: 182.5 kB / 461.4 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.2916, allocations: 351.5 kB / 461.7 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003655/0.2953, allocations: 4.439 MB / 466.2 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.2969, allocations: 171.9 kB / 466.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.297, allocations: 48 kB / 466.4 MB, free: 15.02 MB / 346.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: 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.0007289/0.2977, allocations: 396.8 kB / 466.8 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.298, allocations: 110.7 kB / 466.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003135/0.2983, allocations: 134 kB / 467 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.2983, allocations: 12 kB / 467 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.2983, allocations: 3.938 kB / 467 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.2984, allocations: 7.969 kB / 467.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007653/0.306, allocations: 4.322 MB / 471.4 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.306, allocations: 15.94 kB / 471.4 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.3072, allocations: 263.7 kB / 471.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004513/0.3076, allocations: 249.6 kB / 471.9 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.324e-05/0.3077, allocations: 32 kB / 471.9 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.3093, allocations: 2.09 MB / 474 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.095e-05/0.3093, allocations: 15.94 kB / 474 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02351/0.3328, allocations: 13 MB / 487 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006204/0.3335, allocations: 323.7 kB / 487.3 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/0.3337, allocations: 44 kB / 487.4 MB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/0.3348, allocations: 143.9 kB / 487.5 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003698/0.3352, allocations: 168.2 kB / 487.7 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.3353, allocations: 43.98 kB / 487.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007888/0.3361, allocations: 0.5458 MB / 488.3 MB, free: 8.133 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3361, allocations: 0 / 488.3 MB, free: 8.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001607/0.3378, allocations: 452 kB / 488.7 MB, free: 7.691 MB / 362.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: 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.001205/0.339, allocations: 0.5184 MB / 489.2 MB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.3434, allocations: 1.981 MB / 491.2 MB, free: 5.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.537e-06/0.3434, allocations: 4.062 kB / 491.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002311/0.3457, allocations: 1.024 MB / 492.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.3473, allocations: 193.5 kB / 492.4 MB, free: 4.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007471/0.3548, allocations: 4.735 MB / 497.2 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.356, allocations: 1.218 MB / 498.4 MB, free: 13.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001303/0.3573, allocations: 176.5 kB / 498.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005344/0.3578, allocations: 83.42 kB / 498.6 MB, free: 13.64 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3579, allocations: 4 kB / 498.6 MB, free: 13.64 MB / 378.7 MB Notification: Performance of Templates: time 0.2027/0.5606, allocations: 21.2 MB / 0.5077 GB, free: 89.98 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches