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.000775/0.000775, allocations: 93.39 kB / 17.31 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.0008295/0.0008294, allocations: 179 kB / 18.21 MB, free: 5.684 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.113/1.113, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002193/0.0002193, allocations: 11.98 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06942/0.06965, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007288/0.07696, allocations: 8.685 MB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00343/0.0804, allocations: 2.236 MB / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008311/0.08124, allocations: 31.88 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005796/0.08183, allocations: 246.2 kB / 363.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000938/0.08278, allocations: 424.8 kB / 364.1 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008248/0.08362, allocations: 0.5776 MB / 364.7 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001485/0.08511, allocations: 2.161 MB / 366.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.08617, allocations: 0.9987 MB / 367.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005409/0.08672, allocations: 0.6028 MB / 368.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000571/0.0873, allocations: 0.6762 MB / 369.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.08742, allocations: 80 kB / 369.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.08764, allocations: 128 kB / 369.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.08786, allocations: 294.7 kB / 369.6 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005218/0.08839, allocations: 0.7711 MB / 370.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1271/0.2155, allocations: 2.656 MB / 373 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2155, allocations: 0.7812 kB / 373 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2155, allocations: 0 / 373 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.496e-05/0.2156, allocations: 3.156 kB / 373 MB, free: 13.43 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.002743/0.2184, allocations: 1.638 MB / 374.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2184, allocations: 9.094 kB / 374.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.2187, allocations: 180.8 kB / 374.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008846/0.2195, allocations: 0.8275 MB / 375.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.2198, allocations: 239.2 kB / 375.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.22, allocations: 159.4 kB / 376.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.2228, allocations: 1.697 MB / 377.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.391e-05/0.2229, allocations: 8.859 kB / 377.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.223, allocations: 64.88 kB / 377.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.223, allocations: 40.62 kB / 377.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002886/0.2259, allocations: 1.588 MB / 379.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00685/0.2328, allocations: 5.951 MB / 385.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.2345, allocations: 0.9602 MB / 386.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008909/0.2354, allocations: 0.5429 MB / 386.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.825e-05/0.2355, allocations: 12.88 kB / 387 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.2365, allocations: 0.6675 MB / 387.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.334e-06/0.2365, allocations: 4 kB / 387.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03025/0.2667, allocations: 9.868 MB / 397.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.2668, allocations: 299.7 kB / 397.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007332/0.2676, allocations: 0.7895 MB / 398.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.391e-05/0.2677, allocations: 53.7 kB / 398.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.2679, allocations: 0.6615 MB / 399.3 MB, free: 1.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.2681, allocations: 408.7 kB / 399.7 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.2683, allocations: 121.7 kB / 399.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.2684, allocations: 411.3 kB / 400.2 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.2701, allocations: 0.8472 MB / 401.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.2721, allocations: 1.168 MB / 402.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003326/0.2754, allocations: 1.721 MB / 403.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.2754, allocations: 4 kB / 403.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004179/0.2796, allocations: 2.141 MB / 406.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.2796, allocations: 11.94 kB / 406.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.2796, allocations: 12.64 kB / 406.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.28, allocations: 185.3 kB / 406.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.2815, allocations: 370.5 kB / 406.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003144/0.2846, allocations: 4.463 MB / 411.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/0.286, allocations: 211.8 kB / 411.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.813e-05/0.2861, allocations: 52 kB / 411.4 MB, free: 4.809 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.0005422/0.2866, allocations: 382.2 kB / 411.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.2868, allocations: 106.9 kB / 411.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.287, allocations: 134 kB / 412 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.2871, allocations: 12 kB / 412 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2871, allocations: 6.078 kB / 412 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.2871, allocations: 7.969 kB / 412 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006841/0.2939, allocations: 4.546 MB / 416.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.294, allocations: 12 kB / 416.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.295, allocations: 277.6 kB / 416.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004739/0.2955, allocations: 361.5 kB / 417.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.328e-05/0.2956, allocations: 42.89 kB / 417.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001403/0.297, allocations: 2.175 MB / 419.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.276e-06/0.297, allocations: 14.91 kB / 419.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004334/0.3013, allocations: 2.606 MB / 422 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003611/0.3017, allocations: 327.7 kB / 422.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.3019, allocations: 40 kB / 422.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009954/0.3029, allocations: 179.8 kB / 422.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.3031, allocations: 166.5 kB / 422.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.847e-05/0.3032, allocations: 47.98 kB / 422.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.3038, allocations: 0.5342 MB / 423.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3038, allocations: 0 / 423.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009134/0.3047, allocations: 348 kB / 423.6 MB, free: 8.172 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.0002415/0.305, allocations: 188.1 kB / 423.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003623/0.3086, allocations: 2.106 MB / 425.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.3086, allocations: 4 kB / 425.9 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.3105, allocations: 1.058 MB / 427 MB, free: 4.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/0.3123, allocations: 198.8 kB / 427.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/0.3171, allocations: 3.968 MB / 431.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/0.3177, allocations: 1.178 MB / 432.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000387/0.3181, allocations: 83.42 kB / 432.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3181, allocations: 4 kB / 432.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Templates: time 0.03078/0.3489, allocations: 35.9 MB / 468.3 MB, free: 11.45 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