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.001472/0.001472, allocations: 103 kB / 17.58 MB, free: 5.426 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.001624/0.001624, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.422/1.422, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001485/0.001485, allocations: 55.92 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 46.63 MB / 327.3 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01082/0.1153, allocations: 9.173 MB / 336.5 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006947/0.1223, allocations: 2.307 MB / 338.8 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.1245, allocations: 27.94 kB / 338.8 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.1256, allocations: 325 kB / 339.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.1275, allocations: 495.7 kB / 339.6 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.1289, allocations: 0.6516 MB / 340.3 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002807/0.1317, allocations: 2.345 MB / 342.6 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/0.1332, allocations: 1.112 MB / 343.7 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.1346, allocations: 0.8452 MB / 344.6 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008323/0.1354, allocations: 0.8831 MB / 345.4 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002739/0.1357, allocations: 276 kB / 345.7 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004232/0.1361, allocations: 324 kB / 346 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000394/0.1365, allocations: 0.4987 MB / 346.5 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007785/0.1373, allocations: 0.9764 MB / 347.5 MB, free: 124 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002887/0.1402, allocations: 3.299 MB / 350.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1402, allocations: 0 / 350.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1402, allocations: 0 / 350.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.837e-05/0.1403, allocations: 8 kB / 350.8 MB, free: 12.8 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.003604/0.1439, allocations: 1.916 MB / 352.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1439, allocations: 8.031 kB / 352.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.1443, allocations: 186.9 kB / 352.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.1453, allocations: 0.8302 MB / 353.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002614/0.1456, allocations: 236.7 kB / 354 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.1458, allocations: 159.8 kB / 354.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.1486, allocations: 1.678 MB / 355.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.983e-05/0.1486, allocations: 11.98 kB / 355.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.1488, allocations: 68 kB / 355.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.575e-05/0.1488, allocations: 36 kB / 355.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003011/0.1518, allocations: 1.558 MB / 357.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008012/0.1598, allocations: 5.888 MB / 363.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.1618, allocations: 0.9442 MB / 364.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009475/0.1627, allocations: 0.5237 MB / 364.8 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.608e-05/0.1628, allocations: 12.98 kB / 364.8 MB, free: 14.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.1639, allocations: 0.6567 MB / 365.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.695e-06/0.1639, allocations: 0 / 365.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03254/0.1965, allocations: 8.931 MB / 374.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.1967, allocations: 299.7 kB / 374.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.1978, allocations: 0.7818 MB / 375.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.1979, allocations: 53.7 kB / 375.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/0.1985, allocations: 0.6661 MB / 376.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003354/0.1988, allocations: 410.2 kB / 376.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004437/0.1993, allocations: 239.5 kB / 376.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.1995, allocations: 414.7 kB / 377.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001825/0.2013, allocations: 0.8121 MB / 378.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.19/0.3913, allocations: 1.13 MB / 379.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003849/0.3952, allocations: 1.646 MB / 380.9 MB, free: 51.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3952, allocations: 1.438 kB / 380.9 MB, free: 51.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005071/0.4003, allocations: 2.075 MB / 382.9 MB, free: 51.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.4003, allocations: 9.234 kB / 382.9 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.4004, allocations: 6.688 kB / 382.9 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004571/0.4008, allocations: 181.5 kB / 383.1 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/0.4024, allocations: 352.8 kB / 383.5 MB, free: 50.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/0.4056, allocations: 4.82 MB / 388.3 MB, free: 46.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.4072, allocations: 169.4 kB / 388.5 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.4073, allocations: 51.48 kB / 388.5 MB, free: 46.31 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.0007096/0.408, allocations: 380.9 kB / 388.9 MB, free: 46.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.4082, allocations: 110.6 kB / 389 MB, free: 46.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002167/0.4085, allocations: 133.2 kB / 389.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4085, allocations: 12.34 kB / 389.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.4085, allocations: 3.312 kB / 389.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.4085, allocations: 9.75 kB / 389.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007952/0.4165, allocations: 4.413 MB / 393.6 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.4166, allocations: 9 kB / 393.6 MB, free: 43.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.4177, allocations: 267.6 kB / 393.8 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006204/0.4183, allocations: 369.5 kB / 394.2 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.521e-05/0.4185, allocations: 37.33 kB / 394.2 MB, free: 43.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.4199, allocations: 2.279 MB / 396.5 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.383e-06/0.4199, allocations: 11.84 kB / 396.5 MB, free: 41.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/0.4244, allocations: 2.5 MB / 399 MB, free: 40.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006514/0.4251, allocations: 317 kB / 399.3 MB, free: 39.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.4253, allocations: 49.8 kB / 399.4 MB, free: 39.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.4264, allocations: 141.2 kB / 399.5 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/0.4267, allocations: 169.5 kB / 399.7 MB, free: 39.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-05/0.4268, allocations: 44.66 kB / 399.7 MB, free: 39.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008387/0.4277, allocations: 0.538 MB / 400.3 MB, free: 39.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4277, allocations: 0 / 400.3 MB, free: 39.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001476/0.4292, allocations: 342.8 kB / 400.6 MB, free: 39.49 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 (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.0003273/0.4295, allocations: 175.5 kB / 400.8 MB, free: 39.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004186/0.4337, allocations: 2.091 MB / 402.9 MB, free: 38.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.4337, allocations: 3.688 kB / 402.9 MB, free: 38.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001951/0.4357, allocations: 1.054 MB / 403.9 MB, free: 37.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.4369, allocations: 191.2 kB / 404.1 MB, free: 37.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004854/0.4417, allocations: 3.118 MB / 407.2 MB, free: 35.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.4423, allocations: 1.171 MB / 408.4 MB, free: 34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008528/0.4431, allocations: 168.4 kB / 408.6 MB, free: 33.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.4435, allocations: 79.44 kB / 408.6 MB, free: 33.76 MB / 318.1 MB Notification: Performance of SimCode: time 1.794e-06/0.4435, allocations: 0 / 408.6 MB, free: 33.76 MB / 318.1 MB Notification: Performance of Templates: time 0.02508/0.4686, allocations: 18.69 MB / 427.3 MB, free: 15.08 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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