Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 111.8 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 47.17 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1028, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01135/0.1142, allocations: 9.258 MB / 360.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004601/0.1188, allocations: 2.302 MB / 363.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009573/0.1198, allocations: 31.88 kB / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000867/0.1207, allocations: 329 kB / 363.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.1221, allocations: 495.7 kB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.1233, allocations: 0.6477 MB / 364.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002186/0.1255, allocations: 2.341 MB / 366.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.1269, allocations: 1.127 MB / 368 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.128, allocations: 0.8451 MB / 368.9 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009001/0.1289, allocations: 0.891 MB / 369.8 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002938/0.1292, allocations: 276 kB / 370 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004381/0.1296, allocations: 331.9 kB / 370.4 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004183/0.1301, allocations: 0.4948 MB / 370.8 MB, free: 216 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.176/0.3061, allocations: 0.967 MB / 371.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005228/0.3113, allocations: 3.328 MB / 375.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3114, allocations: 0 / 375.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3114, allocations: 0 / 375.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001159/0.3115, allocations: 0.6094 kB / 375.1 MB, free: 14.01 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.005341/0.3168, allocations: 1.927 MB / 377.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3169, allocations: 9.531 kB / 377.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.3173, allocations: 180.4 kB / 377.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.3185, allocations: 0.8442 MB / 378.1 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.3188, allocations: 235.8 kB / 378.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002401/0.319, allocations: 157.3 kB / 378.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/0.322, allocations: 1.686 MB / 380.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/0.322, allocations: 6.688 kB / 380.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.3222, allocations: 61.72 kB / 380.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.461e-05/0.3222, allocations: 36.75 kB / 380.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002944/0.3252, allocations: 1.562 MB / 381.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007778/0.333, allocations: 5.825 MB / 387.7 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/0.3348, allocations: 0.9304 MB / 388.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009036/0.3357, allocations: 0.5284 MB / 389.1 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.83e-05/0.3358, allocations: 13 kB / 389.1 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.3368, allocations: 0.6646 MB / 389.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.274e-06/0.3368, allocations: 0 / 389.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03046/0.3673, allocations: 8.923 MB / 398.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.3674, allocations: 300.5 kB / 399 MB, free: 1.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009764/0.3684, allocations: 0.7914 MB / 399.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3685, allocations: 52.23 kB / 399.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.3689, allocations: 0.6604 MB / 400.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00024/0.3692, allocations: 406.8 kB / 400.9 MB, free: 244 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004364/0.3696, allocations: 248.3 kB / 401.2 MB, free: 80 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.3698, allocations: 410.7 kB / 401.6 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.3717, allocations: 0.8121 MB / 402.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.3737, allocations: 1.129 MB / 403.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/0.3771, allocations: 1.657 MB / 405.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3771, allocations: 0 / 405.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004448/0.3816, allocations: 2.065 MB / 407.2 MB, free: 9.852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.3816, allocations: 13.53 kB / 407.2 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.3817, allocations: 16 kB / 407.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004309/0.3821, allocations: 178.9 kB / 407.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.3837, allocations: 349.9 kB / 407.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004079/0.3878, allocations: 4.815 MB / 412.6 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.3895, allocations: 163.9 kB / 412.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.3896, allocations: 48 kB / 412.8 MB, free: 3.906 MB / 318.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 (168): * Single equations (assignments): 165 * 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.0008557/0.3905, allocations: 383.9 kB / 413.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.3907, allocations: 106.7 kB / 413.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.391, allocations: 142 kB / 413.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.391, allocations: 13.31 kB / 413.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/0.391, allocations: 0 / 413.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.391, allocations: 3.984 kB / 413.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007568/0.3986, allocations: 4.403 MB / 417.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.3986, allocations: 8 kB / 417.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.3998, allocations: 272.2 kB / 418.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005897/0.4004, allocations: 369.5 kB / 418.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.97e-05/0.4005, allocations: 39.94 kB / 418.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.4022, allocations: 2.277 MB / 420.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.4023, allocations: 14.62 kB / 420.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004595/0.4069, allocations: 2.502 MB / 423.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006506/0.4075, allocations: 315.8 kB / 423.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001796/0.4077, allocations: 47.98 kB / 423.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.4087, allocations: 139.8 kB / 423.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003341/0.4091, allocations: 167 kB / 423.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.5e-05/0.4092, allocations: 43.98 kB / 424 MB, free: 8.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007459/0.4099, allocations: 0.5342 MB / 424.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.4099, allocations: 0 / 424.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001282/0.4112, allocations: 352 kB / 424.9 MB, free: 7.461 MB / 334.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003307/0.4116, allocations: 182.1 kB / 425 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003997/0.4156, allocations: 2.054 MB / 427.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.4156, allocations: 0 / 427.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.4177, allocations: 1.048 MB / 428.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.419, allocations: 205.6 kB / 428.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005723/0.4247, allocations: 3.073 MB / 431.4 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008101/0.4255, allocations: 1.175 MB / 432.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008325/0.4264, allocations: 164.4 kB / 432.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003554/0.4267, allocations: 83.42 kB / 432.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4267, allocations: 0 / 432.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Templates: time 0.0301/0.4568, allocations: 18.7 MB / 451.5 MB, free: 12.84 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches