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.001257/0.001257, allocations: 103.8 kB / 17.74 MB, free: 5.188 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.001259/0.001259, allocations: 192.2 kB / 18.67 MB, free: 4.266 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001016, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2786, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01033/0.289, allocations: 9.269 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004991/0.2941, allocations: 2.29 MB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.2955, allocations: 31.88 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.2967, allocations: 325 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.2988, allocations: 495.7 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.3004, allocations: 0.6516 MB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003226/0.3036, allocations: 2.349 MB / 416.8 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.3056, allocations: 1.113 MB / 417.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.3072, allocations: 0.8684 MB / 418.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.3087, allocations: 0.8832 MB / 419.7 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006071/0.3094, allocations: 279.9 kB / 420 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008072/0.3102, allocations: 327.9 kB / 420.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006309/0.3108, allocations: 0.4987 MB / 420.8 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.3122, allocations: 0.9725 MB / 421.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003177/0.3154, allocations: 3.345 MB / 425.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3154, allocations: 0 / 425.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.3155, allocations: 0 / 425.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.968e-05/0.3155, allocations: 3.938 kB / 425.1 MB, free: 1.055 MB / 334.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.003766/0.3193, allocations: 1.924 MB / 427 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3194, allocations: 12.03 kB / 427 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002886/0.3196, allocations: 178.9 kB / 427.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.3209, allocations: 0.842 MB / 428 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/0.3212, allocations: 232.7 kB / 428.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/0.3214, allocations: 159.9 kB / 428.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003126/0.3246, allocations: 1.686 MB / 430.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.3246, allocations: 7.906 kB / 430.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.3248, allocations: 60 kB / 430.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.3248, allocations: 40 kB / 430.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.328, allocations: 1.566 MB / 431.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008711/0.3367, allocations: 5.817 MB / 437.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.3387, allocations: 0.9412 MB / 438.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3398, allocations: 0.5404 MB / 439.1 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.902e-05/0.3399, allocations: 9 kB / 439.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/0.3411, allocations: 0.6606 MB / 439.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.928e-06/0.3411, allocations: 0 / 439.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.0341/0.3752, allocations: 8.927 MB / 448.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001617/0.3754, allocations: 299.7 kB / 449 MB, free: 8.539 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.3766, allocations: 0.7895 MB / 449.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/0.3768, allocations: 57.73 kB / 449.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005176/0.3773, allocations: 0.6622 MB / 450.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003661/0.3777, allocations: 402.2 kB / 450.9 MB, free: 6.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004618/0.3781, allocations: 247.4 kB / 451.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3783, allocations: 410.7 kB / 451.5 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/0.3803, allocations: 0.8082 MB / 452.3 MB, free: 5.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002132/0.3824, allocations: 1.13 MB / 453.5 MB, free: 3.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003625/0.386, allocations: 1.646 MB / 455.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3861, allocations: 4 kB / 455.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004731/0.3908, allocations: 2.076 MB / 457.2 MB, free: 60 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.3909, allocations: 8 kB / 457.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3909, allocations: 7.938 kB / 457.2 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004477/0.3913, allocations: 178.5 kB / 457.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.393, allocations: 359.4 kB / 457.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004051/0.3971, allocations: 4.807 MB / 462.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.3988, allocations: 163.9 kB / 462.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.399, allocations: 52 kB / 462.7 MB, free: 10.07 MB / 382.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.0008053/0.3998, allocations: 387.2 kB / 463.1 MB, free: 9.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.4, allocations: 106.7 kB / 463.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003103/0.4003, allocations: 134 kB / 463.4 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.4003, allocations: 12 kB / 463.4 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.4004, allocations: 0 / 463.4 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.4004, allocations: 7.984 kB / 463.4 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007997/0.4084, allocations: 4.416 MB / 467.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.4084, allocations: 8 kB / 467.8 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.4096, allocations: 255.6 kB / 468 MB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006063/0.4102, allocations: 373.6 kB / 468.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.4103, allocations: 40 kB / 468.5 MB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.4122, allocations: 2.279 MB / 470.7 MB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/0.4122, allocations: 15.94 kB / 470.7 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005076/0.4173, allocations: 2.494 MB / 473.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.418, allocations: 319.8 kB / 473.6 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.4182, allocations: 43.98 kB / 473.6 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.4193, allocations: 143.8 kB / 473.7 MB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.4197, allocations: 164.2 kB / 473.9 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.536e-05/0.4198, allocations: 47.98 kB / 473.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007779/0.4205, allocations: 0.5342 MB / 474.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4206, allocations: 0 / 474.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001225/0.4218, allocations: 344 kB / 474.8 MB, free: 13.45 MB / 398.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.0003235/0.4221, allocations: 187.7 kB / 475 MB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004468/0.4266, allocations: 2.05 MB / 477 MB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.817e-05/0.4267, allocations: 7.938 kB / 477.1 MB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002229/0.4289, allocations: 1.017 MB / 478.1 MB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.4303, allocations: 203 kB / 478.3 MB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005801/0.4361, allocations: 3.118 MB / 481.4 MB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008231/0.4369, allocations: 1.178 MB / 482.6 MB, free: 5.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000581/0.4375, allocations: 91.42 kB / 482.7 MB, free: 5.348 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4375, allocations: 4 kB / 482.7 MB, free: 5.344 MB / 398.1 MB Notification: Performance of Templates: time 0.04432/0.4819, allocations: 36.27 MB / 0.5068 GB, free: 1.105 MB / 430.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