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.001233/0.001233, allocations: 107.4 kB / 16.51 MB, free: 6.707 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.001397/0.001397, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001005, allocations: 42.45 kB / 300 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09272, allocations: 49.45 MB / 349.4 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.009977/0.1027, allocations: 9.218 MB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005072/0.1079, allocations: 2.252 MB / 360.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.1097, allocations: 27.88 kB / 360.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.1114, allocations: 250.2 kB / 361.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.1138, allocations: 420.9 kB / 361.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001924/0.1158, allocations: 0.5777 MB / 362.1 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003054/0.1188, allocations: 2.161 MB / 364.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.1209, allocations: 0.9998 MB / 365.3 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.1222, allocations: 0.6965 MB / 366 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.1235, allocations: 0.7934 MB / 366.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005852/0.1241, allocations: 128 kB / 366.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007972/0.1249, allocations: 176 kB / 367.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005853/0.1255, allocations: 370.7 kB / 367.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.1272, allocations: 0.8319 MB / 368.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1669/0.2941, allocations: 3.147 MB / 371.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.234e-05/0.2942, allocations: 0.9688 kB / 371.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2942, allocations: 0 / 371.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001191/0.2943, allocations: 0 / 371.4 MB, free: 14.35 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.004002/0.2983, allocations: 1.923 MB / 373.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.2984, allocations: 9.641 kB / 373.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003348/0.2987, allocations: 182.6 kB / 373.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.2999, allocations: 0.8358 MB / 374.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002713/0.3002, allocations: 235.5 kB / 374.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003281/0.3005, allocations: 157.4 kB / 374.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003221/0.3038, allocations: 1.683 MB / 376.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.689e-05/0.3038, allocations: 3.516 kB / 376.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/0.304, allocations: 70.66 kB / 376.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.954e-05/0.304, allocations: 36.94 kB / 376.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003533/0.3076, allocations: 1.56 MB / 378.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00916/0.3167, allocations: 5.894 MB / 384 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001895/0.3187, allocations: 0.9345 MB / 384.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009888/0.3197, allocations: 0.5358 MB / 385.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.191e-05/0.3198, allocations: 9.375 kB / 385.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.3209, allocations: 0.6591 MB / 386.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.805e-06/0.3209, allocations: 0 / 386.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03162/0.3525, allocations: 8.924 MB / 395.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.3526, allocations: 297.9 kB / 395.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009353/0.3536, allocations: 0.7891 MB / 396.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001217/0.3537, allocations: 51.7 kB / 396.2 MB, free: 3.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.354, allocations: 0.6631 MB / 396.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/0.3543, allocations: 404.8 kB / 397.3 MB, free: 2.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.3547, allocations: 251.5 kB / 397.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.3548, allocations: 408.9 kB / 397.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.3564, allocations: 0.8128 MB / 398.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/0.3582, allocations: 1.133 MB / 399.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003352/0.3616, allocations: 1.649 MB / 401.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.3616, allocations: 4 kB / 401.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00453/0.3661, allocations: 2.068 MB / 403.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.3662, allocations: 15.94 kB / 403.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.3662, allocations: 8 kB / 403.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.3666, allocations: 185 kB / 403.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.3683, allocations: 351.9 kB / 404.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003689/0.372, allocations: 4.437 MB / 408.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.3736, allocations: 159.9 kB / 408.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.3738, allocations: 51.98 kB / 408.8 MB, free: 6.34 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.0008312/0.3746, allocations: 394.5 kB / 409.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000268/0.3749, allocations: 102.8 kB / 409.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/0.3752, allocations: 134 kB / 409.4 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3752, allocations: 12 kB / 409.4 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.3752, allocations: 4 kB / 409.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3752, allocations: 3.984 kB / 409.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008598/0.3838, allocations: 4.414 MB / 413.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.04e-05/0.3839, allocations: 12 kB / 413.8 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.385, allocations: 263 kB / 414.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005903/0.3856, allocations: 365.5 kB / 414.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.3858, allocations: 47.92 kB / 414.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.3874, allocations: 2.163 MB / 416.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.6e-05/0.3874, allocations: 19.5 kB / 416.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.3923, allocations: 2.493 MB / 419.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000657/0.393, allocations: 327.7 kB / 419.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003098/0.3933, allocations: 51.98 kB / 419.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.3945, allocations: 135.9 kB / 419.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003651/0.3949, allocations: 163.8 kB / 419.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.395, allocations: 55.83 kB / 419.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000852/0.3959, allocations: 0.5264 MB / 420.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3959, allocations: 0 / 420.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001566/0.3975, allocations: 348 kB / 420.7 MB, free: 9.996 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.0003911/0.3979, allocations: 194.8 kB / 420.9 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004087/0.402, allocations: 2.022 MB / 422.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.402, allocations: 5.812 kB / 423 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.4043, allocations: 1.051 MB / 424 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002005/0.4063, allocations: 189.1 kB / 424.2 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007248/0.4136, allocations: 3.763 MB / 428 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.4146, allocations: 1.182 MB / 429.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001088/0.4157, allocations: 164.4 kB / 429.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.4162, allocations: 75.42 kB / 429.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4162, allocations: 4 kB / 429.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of Templates: time 0.03045/0.4466, allocations: 17.69 MB / 447.1 MB, free: 15.72 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