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.0009025/0.0009027, allocations: 92.73 kB / 16.65 MB, free: 6.535 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.001134/0.001134, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002808, allocations: 11.94 kB / 301.4 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.09988, allocations: 50.41 MB / 351.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.00933/0.1092, allocations: 8.681 MB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0052/0.1145, allocations: 2.24 MB / 362.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.116, allocations: 31.88 kB / 362.8 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.1171, allocations: 246.3 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001903/0.119, allocations: 416.8 kB / 363.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.1205, allocations: 0.5816 MB / 364 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003286/0.1238, allocations: 2.153 MB / 366.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.1255, allocations: 0.9959 MB / 367.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.1266, allocations: 0.5989 MB / 367.8 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001215/0.1278, allocations: 0.6762 MB / 368.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003611/0.1282, allocations: 80 kB / 368.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005242/0.1287, allocations: 132 kB / 368.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003702/0.1291, allocations: 290.7 kB / 368.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009853/0.1301, allocations: 0.775 MB / 369.7 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1905/0.3206, allocations: 3.041 MB / 372.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3206, allocations: 4.062 kB / 372.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3206, allocations: 0 / 372.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.878e-05/0.3207, allocations: 3.828 kB / 372.8 MB, free: 13.7 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.003586/0.3243, allocations: 1.628 MB / 374.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3243, allocations: 10.47 kB / 374.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.3247, allocations: 180.9 kB / 374.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.3259, allocations: 0.8282 MB / 375.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002736/0.3261, allocations: 245 kB / 375.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.3264, allocations: 158.7 kB / 375.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003713/0.3301, allocations: 1.699 MB / 377.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.062e-05/0.3302, allocations: 7.547 kB / 377.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001592/0.3304, allocations: 62.94 kB / 377.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-05/0.3304, allocations: 36.19 kB / 377.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003429/0.3339, allocations: 1.589 MB / 379.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008232/0.3421, allocations: 5.954 MB / 385.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.344, allocations: 0.9688 MB / 386.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.3451, allocations: 0.5421 MB / 386.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.33e-05/0.3451, allocations: 8.969 kB / 386.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.3463, allocations: 0.6779 MB / 387.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.514e-06/0.3463, allocations: 1.781 kB / 387.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03497/0.3813, allocations: 9.857 MB / 397.2 MB, free: 3.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.3814, allocations: 303.7 kB / 397.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009571/0.3824, allocations: 0.7817 MB / 398.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.3825, allocations: 61.72 kB / 398.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.3829, allocations: 0.6595 MB / 399 MB, free: 1.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002631/0.3831, allocations: 409.5 kB / 399.4 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.3833, allocations: 117.6 kB / 399.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3834, allocations: 414.7 kB / 399.9 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.3853, allocations: 0.8472 MB / 400.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/0.3876, allocations: 1.165 MB / 401.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00384/0.3915, allocations: 1.728 MB / 403.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3915, allocations: 0 / 403.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004933/0.3964, allocations: 2.145 MB / 405.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3965, allocations: 11.94 kB / 405.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.3965, allocations: 8 kB / 405.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004206/0.3969, allocations: 181.1 kB / 406 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.3987, allocations: 363.9 kB / 406.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/0.4025, allocations: 4.467 MB / 410.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4044, allocations: 218 kB / 411 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4045, allocations: 52 kB / 411.1 MB, free: 4.812 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.0008921/0.4054, allocations: 390 kB / 411.5 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.4056, allocations: 106.8 kB / 411.6 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002939/0.4059, allocations: 130 kB / 411.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.406, allocations: 12 kB / 411.7 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.406, allocations: 6.812 kB / 411.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.406, allocations: 3.984 kB / 411.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008357/0.4144, allocations: 4.536 MB / 416.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/0.4144, allocations: 11.98 kB / 416.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.4156, allocations: 281.8 kB / 416.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005835/0.4162, allocations: 372.9 kB / 416.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.484e-05/0.4163, allocations: 35.98 kB / 416.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.4182, allocations: 2.171 MB / 419.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/0.4182, allocations: 19.03 kB / 419.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00544/0.4236, allocations: 2.608 MB / 421.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007079/0.4244, allocations: 319.8 kB / 422.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.4246, allocations: 43.98 kB / 422.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.4257, allocations: 179.8 kB / 422.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/0.426, allocations: 164.4 kB / 422.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.4262, allocations: 43.98 kB / 422.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009482/0.4271, allocations: 0.5381 MB / 423 MB, free: 8.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4271, allocations: 0 / 423 MB, free: 8.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001626/0.4288, allocations: 348 kB / 423.4 MB, free: 8.18 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.0004249/0.4292, allocations: 198 kB / 423.6 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004554/0.4338, allocations: 2.107 MB / 425.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4338, allocations: 0 / 425.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.4362, allocations: 1.089 MB / 426.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.4385, allocations: 199.1 kB / 426.9 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006765/0.4453, allocations: 3.915 MB / 430.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001109/0.4464, allocations: 1.178 MB / 432 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00133/0.4478, allocations: 164.4 kB / 432.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.4482, allocations: 83.42 kB / 432.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.074e-06/0.4482, allocations: 0 / 432.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of Templates: time 0.03342/0.4816, allocations: 17.43 MB / 449.7 MB, free: 13.87 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/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