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.001106/0.001106, allocations: 110.5 kB / 17.16 MB, free: 6.082 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.001122/0.001122, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.387/1.387, allocations: 222.9 MB / 241.8 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 47.36 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 49.45 MB / 350.1 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01062/0.1189, allocations: 9.218 MB / 359.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005228/0.1242, allocations: 2.252 MB / 361.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/0.1261, allocations: 27.88 kB / 361.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.1276, allocations: 246.2 kB / 361.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002305/0.1299, allocations: 424.9 kB / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.1316, allocations: 0.5777 MB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003298/0.1349, allocations: 2.165 MB / 365 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001994/0.1369, allocations: 1.004 MB / 366 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.1383, allocations: 0.6965 MB / 366.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.1397, allocations: 0.7934 MB / 367.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005083/0.1403, allocations: 128 kB / 367.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006781/0.1409, allocations: 179.9 kB / 367.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005088/0.1415, allocations: 362.7 kB / 368.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001398/0.1429, allocations: 0.8358 MB / 368.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2036/0.3465, allocations: 2.731 MB / 371.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.3466, allocations: 0 / 371.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3466, allocations: 1.312 kB / 371.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.914e-05/0.3467, allocations: 0 / 371.7 MB, free: 14.06 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.004102/0.3508, allocations: 1.925 MB / 373.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.3509, allocations: 9.406 kB / 373.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003526/0.3512, allocations: 180.7 kB / 373.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.3523, allocations: 0.8332 MB / 374.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.3526, allocations: 232.6 kB / 374.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002594/0.3529, allocations: 165.4 kB / 375 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00328/0.3562, allocations: 1.686 MB / 376.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.386e-05/0.3562, allocations: 3.5 kB / 376.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.3564, allocations: 62.5 kB / 376.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.3565, allocations: 37.12 kB / 376.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004032/0.3605, allocations: 1.563 MB / 378.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009302/0.3698, allocations: 5.891 MB / 384.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/0.3718, allocations: 0.9419 MB / 385.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.3728, allocations: 0.5301 MB / 385.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.387e-05/0.3729, allocations: 10.03 kB / 385.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.3741, allocations: 0.6589 MB / 386.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.797e-06/0.3741, allocations: 0 / 386.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03159/0.4057, allocations: 8.923 MB / 395.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.4058, allocations: 301.1 kB / 395.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.407, allocations: 0.7923 MB / 396.4 MB, free: 3.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.4071, allocations: 51.7 kB / 396.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004446/0.4076, allocations: 0.655 MB / 397.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.4079, allocations: 409.3 kB / 397.5 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004407/0.4083, allocations: 249.4 kB / 397.8 MB, free: 1.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4084, allocations: 412.9 kB / 398.2 MB, free: 1.602 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/0.41, allocations: 0.8065 MB / 399 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.4118, allocations: 1.133 MB / 400.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/0.4151, allocations: 1.655 MB / 401.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4151, allocations: 0 / 401.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004688/0.4198, allocations: 2.068 MB / 403.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.4199, allocations: 14.14 kB / 403.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.4199, allocations: 12 kB / 403.8 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005019/0.4204, allocations: 183.9 kB / 404 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.422, allocations: 350.5 kB / 404.4 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.4258, allocations: 4.436 MB / 408.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.4274, allocations: 167.9 kB / 409 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4276, allocations: 48 kB / 409 MB, free: 6.332 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.0008147/0.4284, allocations: 394.5 kB / 409.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.4286, allocations: 102.8 kB / 409.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.4289, allocations: 134 kB / 409.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.4289, allocations: 12 kB / 409.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/0.4289, allocations: 0 / 409.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.4289, allocations: 7.984 kB / 409.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/0.4364, allocations: 4.414 MB / 414.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/0.4365, allocations: 12 kB / 414.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.4376, allocations: 262.2 kB / 414.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/0.4382, allocations: 368.3 kB / 414.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.762e-05/0.4383, allocations: 39.98 kB / 414.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001706/0.44, allocations: 2.163 MB / 416.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/0.44, allocations: 16.22 kB / 416.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004667/0.4447, allocations: 2.501 MB / 419.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007115/0.4454, allocations: 323.7 kB / 419.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.4458, allocations: 47.98 kB / 419.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.447, allocations: 135.9 kB / 419.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003784/0.4474, allocations: 170.6 kB / 420.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.796e-05/0.4475, allocations: 47.98 kB / 420.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008016/0.4483, allocations: 0.5303 MB / 420.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4483, allocations: 0 / 420.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001508/0.4498, allocations: 352 kB / 421 MB, free: 9.992 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.0003833/0.4502, allocations: 194.3 kB / 421.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00434/0.4545, allocations: 2.022 MB / 423.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.4546, allocations: 1.812 kB / 423.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/0.4568, allocations: 1.026 MB / 424.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.4585, allocations: 190.8 kB / 424.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007653/0.4662, allocations: 3.808 MB / 428.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/0.4674, allocations: 1.177 MB / 429.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000634/0.4681, allocations: 91.42 kB / 429.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4681, allocations: 0 / 429.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of Templates: time 0.04447/0.5126, allocations: 36.09 MB / 465.6 MB, free: 13.37 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/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