Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 177.5 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007604/0.0007603, allocations: 101.9 kB / 270.9 MB, free: 8.336 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003238, allocations: 8 kB / 327 MB, free: 164 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2241, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00675/0.2309, allocations: 8.037 MB / 382.6 MB, free: 39.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004281/0.2352, allocations: 2.226 MB / 384.8 MB, free: 37.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.2363, allocations: 30.25 kB / 384.9 MB, free: 37.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005587/0.2369, allocations: 232.6 kB / 385.1 MB, free: 37.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009187/0.2378, allocations: 402.5 kB / 385.5 MB, free: 36.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.2386, allocations: 353.3 kB / 385.8 MB, free: 36.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.2405, allocations: 2.08 MB / 387.9 MB, free: 35.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001102/0.2416, allocations: 0.8097 MB / 388.7 MB, free: 34.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008368/0.2425, allocations: 0.5836 MB / 389.3 MB, free: 34.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005278/0.243, allocations: 0.6493 MB / 389.9 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.2432, allocations: 80 kB / 390 MB, free: 33.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002546/0.2434, allocations: 119.9 kB / 390.1 MB, free: 33.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.2436, allocations: 282.8 kB / 390.4 MB, free: 32.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.2438, allocations: 344.9 kB / 390.8 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.2453, allocations: 2.681 MB / 393.4 MB, free: 29.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2453, allocations: 0 / 393.4 MB, free: 29.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2453, allocations: 0 / 393.4 MB, free: 29.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.2453, allocations: 0 / 393.4 MB, free: 29.87 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.002581/0.2479, allocations: 1.635 MB / 395.1 MB, free: 28.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.248, allocations: 8.031 kB / 395.1 MB, free: 28.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.2482, allocations: 189.9 kB / 395.3 MB, free: 27.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008664/0.2491, allocations: 0.81 MB / 396.1 MB, free: 27.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/0.2493, allocations: 236.1 kB / 396.3 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.2495, allocations: 167.9 kB / 396.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002618/0.2521, allocations: 1.678 MB / 398.1 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.2522, allocations: 11.91 kB / 398.2 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.2523, allocations: 67.94 kB / 398.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.2523, allocations: 36 kB / 398.3 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002719/0.255, allocations: 1.577 MB / 399.8 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00702/0.2621, allocations: 5.95 MB / 405.8 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.2638, allocations: 0.9529 MB / 406.7 MB, free: 16.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008563/0.2647, allocations: 0.5363 MB / 407.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.2647, allocations: 12.95 kB / 407.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.2658, allocations: 0.6724 MB / 408 MB, free: 14.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=90): time 3.396e-06/0.2658, allocations: 0 / 408 MB, free: 14.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=120): time 0.03137/0.2972, allocations: 9.848 MB / 417.8 MB, free: 4.941 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.2973, allocations: 299.7 kB / 418.1 MB, free: 4.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008521/0.2982, allocations: 0.7856 MB / 418.9 MB, free: 3.789 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.487e-05/0.2983, allocations: 57.64 kB / 418.9 MB, free: 3.727 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003198/0.2986, allocations: 0.6584 MB / 419.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.2988, allocations: 410.2 kB / 420 MB, free: 2.648 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.2989, allocations: 28 kB / 420 MB, free: 2.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.299, allocations: 406.7 kB / 420.4 MB, free: 2.215 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.3007, allocations: 0.8433 MB / 421.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.3025, allocations: 1.165 MB / 422.4 MB, free: 96 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.3044, allocations: 0.8263 MB / 423.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3044, allocations: 0 / 423.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004394/0.3088, allocations: 2.135 MB / 425.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3089, allocations: 8 kB / 425.4 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3089, allocations: 8 kB / 425.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003867/0.3093, allocations: 178.5 kB / 425.6 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.3109, allocations: 379.5 kB / 426 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/0.3144, allocations: 4.462 MB / 430.4 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/0.3158, allocations: 203.9 kB / 430.6 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.3159, allocations: 52 kB / 430.7 MB, free: 7.426 MB / 314.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,$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.000691/0.3166, allocations: 387.1 kB / 431.1 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3168, allocations: 106.7 kB / 431.2 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.317, allocations: 141.9 kB / 431.3 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.3171, allocations: 12 kB / 431.3 MB, free: 6.777 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.3171, allocations: 4 kB / 431.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3171, allocations: 4.125 kB / 431.3 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00735/0.3244, allocations: 4.525 MB / 435.8 MB, free: 2.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.3245, allocations: 11.98 kB / 435.9 MB, free: 2.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.3256, allocations: 288.1 kB / 436.1 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005221/0.3261, allocations: 369.5 kB / 436.5 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-05/0.3262, allocations: 39.98 kB / 436.5 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.3278, allocations: 2.173 MB / 438.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.3278, allocations: 19.92 kB / 438.7 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004598/0.3324, allocations: 2.598 MB / 441.3 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004503/0.3329, allocations: 323.8 kB / 441.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.333, allocations: 47.98 kB / 441.7 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.3341, allocations: 179.8 kB / 441.9 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.3344, allocations: 176.2 kB / 442 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.551e-05/0.3345, allocations: 43.98 kB / 442.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006998/0.3352, allocations: 0.5303 MB / 442.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3352, allocations: 0 / 442.6 MB, free: 10.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001075/0.3363, allocations: 348 kB / 442.9 MB, free: 10.62 MB / 330.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 (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.0002786/0.3366, allocations: 182.8 kB / 443.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003953/0.3405, allocations: 2.098 MB / 445.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.3405, allocations: 0 / 445.2 MB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.3426, allocations: 1.055 MB / 446.3 MB, free: 7.223 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.3437, allocations: 199.4 kB / 446.5 MB, free: 7.035 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005837/0.3496, allocations: 3.804 MB / 450.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008326/0.3504, allocations: 1.175 MB / 451.5 MB, free: 1.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/0.3508, allocations: 91.42 kB / 451.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3508, allocations: 0 / 451.5 MB, free: 1.77 MB / 330.7 MB Notification: Performance of Templates: time 0.03976/0.3906, allocations: 35.92 MB / 487.5 MB, free: 13.8 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches