Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001007/0.001007, allocations: 94.97 kB / 16.95 MB, free: 6.457 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.001184/0.001184, allocations: 181.8 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004656/0.0004657, allocations: 12 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.1, allocations: 47.58 MB / 328.4 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008414/0.1085, allocations: 8.036 MB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004722/0.1132, allocations: 2.225 MB / 338.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009985/0.1142, allocations: 31.88 kB / 338.7 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006613/0.1149, allocations: 242.3 kB / 338.9 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001012/0.1159, allocations: 400.8 kB / 339.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009237/0.1169, allocations: 351.6 kB / 339.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.119, allocations: 2.083 MB / 341.7 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.1201, allocations: 0.8132 MB / 342.5 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008968/0.1211, allocations: 0.5797 MB / 343.1 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007068/0.1218, allocations: 0.6493 MB / 343.8 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.1219, allocations: 80 kB / 343.8 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002614/0.1222, allocations: 120 kB / 343.9 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.1225, allocations: 286.8 kB / 344.2 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.1227, allocations: 340.9 kB / 344.6 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002148/0.1249, allocations: 2.672 MB / 347.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1249, allocations: 0 / 347.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1249, allocations: 4 kB / 347.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.125, allocations: 0 / 347.2 MB, free: 1.086 MB / 286.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.002802/0.1278, allocations: 1.639 MB / 348.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1278, allocations: 8.031 kB / 348.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.1281, allocations: 181.9 kB / 349.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.1291, allocations: 0.8062 MB / 349.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/0.1294, allocations: 232.1 kB / 350.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.1296, allocations: 171.9 kB / 350.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002898/0.1325, allocations: 1.678 MB / 351.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.1325, allocations: 7.906 kB / 351.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.1327, allocations: 68 kB / 352 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-05/0.1327, allocations: 36 kB / 352.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.1357, allocations: 1.574 MB / 353.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008913/0.1446, allocations: 5.95 MB / 359.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002125/0.1468, allocations: 0.9568 MB / 360.5 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.1478, allocations: 0.5431 MB / 361.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.77e-05/0.1479, allocations: 16.95 kB / 361.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.1491, allocations: 0.6723 MB / 361.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.184e-06/0.1491, allocations: 0 / 361.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.0318/0.1809, allocations: 9.852 MB / 371.6 MB, free: 8.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.1811, allocations: 303.7 kB / 371.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.1822, allocations: 0.7778 MB / 372.7 MB, free: 6.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.1823, allocations: 57.69 kB / 372.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005275/0.1828, allocations: 0.6583 MB / 373.4 MB, free: 6.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.1832, allocations: 406.2 kB / 373.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.103e-05/0.1833, allocations: 28 kB / 373.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1835, allocations: 410.8 kB / 374.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/0.1853, allocations: 0.8394 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.1873, allocations: 1.169 MB / 376.2 MB, free: 3.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/0.1891, allocations: 0.8262 MB / 377.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.1891, allocations: 0 / 377.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004376/0.1935, allocations: 2.131 MB / 379.2 MB, free: 332 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.1935, allocations: 8 kB / 379.2 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.1935, allocations: 8 kB / 379.2 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000404/0.194, allocations: 182.4 kB / 379.4 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.187/0.381, allocations: 363 kB / 379.7 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.3843, allocations: 4.47 MB / 384.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.3861, allocations: 203.8 kB / 384.4 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002968/0.3864, allocations: 50.02 kB / 384.5 MB, free: 47.61 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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001242/0.3877, allocations: 389 kB / 384.8 MB, free: 47.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003432/0.388, allocations: 103.3 kB / 384.9 MB, free: 47.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003815/0.3884, allocations: 133.5 kB / 385.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.99e-05/0.3884, allocations: 16.91 kB / 385.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.3885, allocations: 1.031 kB / 385.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.3885, allocations: 10.23 kB / 385.1 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.3986, allocations: 4.533 MB / 389.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/0.3986, allocations: 11.98 kB / 389.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.3998, allocations: 278.7 kB / 389.9 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006361/0.4004, allocations: 380.6 kB / 390.3 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.79e-05/0.4005, allocations: 36.83 kB / 390.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.402, allocations: 2.167 MB / 392.5 MB, free: 43.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/0.402, allocations: 15.36 kB / 392.5 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004766/0.4068, allocations: 2.601 MB / 395.1 MB, free: 42.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006226/0.4074, allocations: 324.4 kB / 395.4 MB, free: 41.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.4076, allocations: 43.58 kB / 395.5 MB, free: 41.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009875/0.4086, allocations: 177.6 kB / 395.6 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/0.409, allocations: 184 kB / 395.8 MB, free: 41.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.4091, allocations: 44.91 kB / 395.9 MB, free: 41.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000749/0.4098, allocations: 0.5329 MB / 396.4 MB, free: 41.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4098, allocations: 3.938 kB / 396.4 MB, free: 41.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001313/0.4111, allocations: 349.6 kB / 396.7 MB, free: 41.46 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002775/0.4114, allocations: 179 kB / 396.9 MB, free: 41.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003967/0.4154, allocations: 2.099 MB / 399 MB, free: 40.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.4154, allocations: 1.938 kB / 399 MB, free: 40.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002078/0.4175, allocations: 1.078 MB / 400.1 MB, free: 39.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.4186, allocations: 195 kB / 400.3 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.4235, allocations: 3.741 MB / 404 MB, free: 37.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/0.4241, allocations: 1.179 MB / 405.2 MB, free: 36.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000811/0.4249, allocations: 164.8 kB / 405.4 MB, free: 36.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.4253, allocations: 79.14 kB / 405.4 MB, free: 36.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4253, allocations: 3.938 kB / 405.4 MB, free: 36.45 MB / 318.1 MB Notification: Performance of Templates: time 0.02287/0.4481, allocations: 16.98 MB / 422.4 MB, free: 19.94 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches