Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.6 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007704/0.0007705, allocations: 104.7 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002217, allocations: 7.938 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2144, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006446/0.2209, allocations: 8.219 MB / 416.3 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003845/0.2248, allocations: 2.323 MB / 418.6 MB, free: 17.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2261, allocations: 35.88 kB / 418.6 MB, free: 17.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000783/0.2269, allocations: 246.2 kB / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.2281, allocations: 416.8 kB / 419.3 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000875/0.229, allocations: 355.5 kB / 419.6 MB, free: 16.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.2308, allocations: 2.095 MB / 421.7 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.2319, allocations: 0.9879 MB / 422.7 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007576/0.2326, allocations: 0.5875 MB / 423.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.2332, allocations: 0.6532 MB / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.2334, allocations: 80 kB / 424 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002744/0.2336, allocations: 135.9 kB / 424.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.2338, allocations: 286.8 kB / 424.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004876/0.2343, allocations: 0.7443 MB / 425.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.2358, allocations: 2.708 MB / 427.9 MB, free: 7.762 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2358, allocations: 0 / 427.9 MB, free: 7.762 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2358, allocations: 0 / 427.9 MB, free: 7.762 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.091e-05/0.2359, allocations: 0 / 427.9 MB, free: 7.762 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002591/0.2384, allocations: 1.655 MB / 429.6 MB, free: 6.051 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2385, allocations: 8.031 kB / 429.6 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002283/0.2387, allocations: 182.9 kB / 429.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009115/0.2396, allocations: 0.838 MB / 430.6 MB, free: 4.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002123/0.2399, allocations: 240.7 kB / 430.8 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.2401, allocations: 167.8 kB / 431 MB, free: 4.562 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.2427, allocations: 1.675 MB / 432.7 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.2427, allocations: 7.891 kB / 432.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.2429, allocations: 64 kB / 432.7 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.2429, allocations: 36 kB / 432.8 MB, free: 2.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.2457, allocations: 1.531 MB / 434.3 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008504/0.2542, allocations: 5.954 MB / 440.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.2561, allocations: 0.9493 MB / 441.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009749/0.2571, allocations: 0.5122 MB / 441.7 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.416e-05/0.2572, allocations: 13 kB / 441.7 MB, free: 9.551 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.2584, allocations: 0.649 MB / 442.4 MB, free: 8.855 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.875e-06/0.2584, allocations: 0 / 442.4 MB, free: 8.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.03136/0.2898, allocations: 9.682 MB / 452 MB, free: 15.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.29, allocations: 299.7 kB / 452.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.2911, allocations: 0.7973 MB / 453.1 MB, free: 13.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.2912, allocations: 57.73 kB / 453.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005134/0.2917, allocations: 0.6546 MB / 453.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/0.2921, allocations: 422 kB / 454.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.2922, allocations: 28 kB / 454.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.2924, allocations: 406.7 kB / 454.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.2942, allocations: 0.816 MB / 455.5 MB, free: 11.47 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/0.2963, allocations: 1.139 MB / 456.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/0.2997, allocations: 1.674 MB / 458.3 MB, free: 8.457 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2997, allocations: 0 / 458.3 MB, free: 8.457 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004475/0.3042, allocations: 2.084 MB / 460.4 MB, free: 6.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3042, allocations: 8 kB / 460.4 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.3043, allocations: 4 kB / 460.4 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004146/0.3047, allocations: 186.4 kB / 460.6 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.3063, allocations: 367.5 kB / 461 MB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003833/0.3101, allocations: 4.474 MB / 465.4 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.3116, allocations: 203.8 kB / 465.6 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.3117, allocations: 51.98 kB / 465.7 MB, free: 0.668 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 (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007792/0.3125, allocations: 387.2 kB / 466.1 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.3127, allocations: 106.8 kB / 466.2 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002515/0.3129, allocations: 130 kB / 466.3 MB, free: 40 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.313, allocations: 12 kB / 466.3 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.313, allocations: 11.92 kB / 466.3 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.313, allocations: 3.984 kB / 466.3 MB, free: 12 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007678/0.3207, allocations: 4.45 MB / 470.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.3207, allocations: 8 kB / 470.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.3218, allocations: 284.4 kB / 471 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/0.3223, allocations: 241.6 kB / 471.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-05/0.3224, allocations: 40 kB / 471.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.3241, allocations: 2.08 MB / 473.4 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/0.3241, allocations: 15.94 kB / 473.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004556/0.3287, allocations: 2.485 MB / 475.9 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.3292, allocations: 331.6 kB / 476.2 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.3294, allocations: 55.92 kB / 476.3 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/0.3304, allocations: 171.9 kB / 476.4 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000361/0.3308, allocations: 188.1 kB / 476.6 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.3309, allocations: 43.98 kB / 476.7 MB, free: 5.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007718/0.3316, allocations: 0.5303 MB / 477.2 MB, free: 4.598 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3316, allocations: 3.938 kB / 477.2 MB, free: 4.594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001208/0.3329, allocations: 340 kB / 477.5 MB, free: 4.262 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009084/0.3338, allocations: 423.2 kB / 478 MB, free: 3.965 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003936/0.3377, allocations: 2.047 MB / 480 MB, free: 1.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.3377, allocations: 4 kB / 480 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001999/0.3397, allocations: 1.039 MB / 481 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.3417, allocations: 203 kB / 481.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005753/0.3475, allocations: 3.807 MB / 485.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/0.3483, allocations: 1.186 MB / 486.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005134/0.3488, allocations: 87.42 kB / 486.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3488, allocations: 0 / 486.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of Templates: time 0.2073/0.5561, allocations: 36.32 MB / 0.5104 GB, free: 91.04 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches