Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008462/0.0008463, allocations: 182 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009399/0.0009401, allocations: 101.4 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002512/0.0002512, allocations: 8 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2149, allocations: 50.42 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006074/0.221, allocations: 8.148 MB / 412.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.2248, allocations: 2.368 MB / 415.1 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.2255, allocations: 27.88 kB / 415.1 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004834/0.226, allocations: 238.3 kB / 415.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007939/0.2268, allocations: 428.8 kB / 415.8 MB, free: 20.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007629/0.2276, allocations: 0.5699 MB / 416.4 MB, free: 19.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.2288, allocations: 2.157 MB / 418.5 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009844/0.2298, allocations: 1.005 MB / 419.5 MB, free: 16.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000572/0.2304, allocations: 0.5989 MB / 420.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.2309, allocations: 0.6724 MB / 420.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.231, allocations: 80 kB / 420.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002321/0.2313, allocations: 123.9 kB / 421 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.2314, allocations: 302.7 kB / 421.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004412/0.2319, allocations: 0.775 MB / 422.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.2334, allocations: 3.044 MB / 425.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2334, allocations: 3.938 kB / 425.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2334, allocations: 4 kB / 425.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.568e-05/0.2335, allocations: 0 / 425.1 MB, free: 10.62 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.00246/0.2359, allocations: 1.631 MB / 426.7 MB, free: 8.934 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.236, allocations: 8.031 kB / 426.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.2362, allocations: 178.9 kB / 426.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00097/0.2372, allocations: 0.8303 MB / 427.8 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.2374, allocations: 240.7 kB / 428 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.2376, allocations: 167.8 kB / 428.2 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.2402, allocations: 1.686 MB / 429.8 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.836e-05/0.2402, allocations: 0 / 429.8 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.2403, allocations: 68 kB / 429.9 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.2404, allocations: 36 kB / 429.9 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002637/0.243, allocations: 1.577 MB / 431.5 MB, free: 4.062 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007285/0.2503, allocations: 5.962 MB / 437.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001872/0.2522, allocations: 0.952 MB / 438.4 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009502/0.2532, allocations: 0.5434 MB / 439 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.542e-05/0.2532, allocations: 13 kB / 439 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.2544, allocations: 0.6684 MB / 439.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=90): time 2.945e-06/0.2544, allocations: 4 kB / 439.7 MB, free: 11.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=120): time 0.03042/0.2848, allocations: 9.845 MB / 449.5 MB, free: 1.668 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.285, allocations: 295.7 kB / 449.8 MB, free: 1.309 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000945/0.2859, allocations: 0.7778 MB / 450.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.792e-05/0.286, allocations: 53.7 kB / 450.6 MB, free: 476 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004437/0.2865, allocations: 0.6624 MB / 451.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.2868, allocations: 414.1 kB / 451.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.2869, allocations: 32 kB / 451.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.287, allocations: 406.7 kB / 452.1 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.2887, allocations: 0.8433 MB / 453 MB, free: 14.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.2906, allocations: 1.162 MB / 454.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/0.2938, allocations: 1.72 MB / 455.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2938, allocations: 0 / 455.8 MB, free: 11.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004057/0.2979, allocations: 2.135 MB / 458 MB, free: 8.855 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2979, allocations: 8 kB / 458 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2979, allocations: 11.94 kB / 458 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004/0.2983, allocations: 178.5 kB / 458.2 MB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.2999, allocations: 379.4 kB / 458.5 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.3033, allocations: 4.462 MB / 463 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.3047, allocations: 207.8 kB / 463.2 MB, free: 3.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.3048, allocations: 48 kB / 463.3 MB, free: 3.164 MB / 330.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 (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.0006746/0.3055, allocations: 391.1 kB / 463.6 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.3056, allocations: 102.8 kB / 463.7 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.3059, allocations: 138 kB / 463.9 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3059, allocations: 16 kB / 463.9 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3059, allocations: 4 kB / 463.9 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.3059, allocations: 7.969 kB / 463.9 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007182/0.3131, allocations: 4.528 MB / 468.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.541e-05/0.3131, allocations: 8 kB / 468.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3142, allocations: 284.3 kB / 468.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005293/0.3148, allocations: 369.6 kB / 469.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.62e-05/0.3149, allocations: 43.98 kB / 469.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.3164, allocations: 2.169 MB / 471.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.978e-06/0.3164, allocations: 15.94 kB / 471.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005518/0.3219, allocations: 2.598 MB / 473.9 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006213/0.3226, allocations: 323.7 kB / 474.2 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.3228, allocations: 48 kB / 474.3 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.3241, allocations: 175.8 kB / 474.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003905/0.3245, allocations: 160.4 kB / 474.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.3246, allocations: 55.97 kB / 474.6 MB, free: 7.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009315/0.3256, allocations: 0.5225 MB / 475.2 MB, free: 6.703 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3256, allocations: 0 / 475.2 MB, free: 6.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001506/0.3271, allocations: 344 kB / 475.5 MB, free: 6.367 MB / 346.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 (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.0003783/0.3275, allocations: 191.8 kB / 475.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004293/0.3318, allocations: 2.106 MB / 477.8 MB, free: 4.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.3318, allocations: 4 kB / 477.8 MB, free: 4.023 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002053/0.3339, allocations: 1.079 MB / 478.9 MB, free: 2.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.3358, allocations: 207.8 kB / 479.1 MB, free: 2.734 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005481/0.3413, allocations: 3.891 MB / 483 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007931/0.3421, allocations: 1.182 MB / 484.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008921/0.343, allocations: 164.4 kB / 484.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.3433, allocations: 79.42 kB / 484.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3433, allocations: 0 / 484.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of Templates: time 0.02888/0.3722, allocations: 17.46 MB / 0.4901 GB, free: 11.81 MB / 378.7 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","../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