Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002805/0.002804, allocations: 188.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.52/3.52, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002185/0.002185, allocations: 94.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007912/0.0007913, allocations: 8 kB / 327 MB, free: 15.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1579, allocations: 47.58 MB / 374.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.018/0.176, allocations: 7.375 MB / 381.9 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009189/0.1852, allocations: 2.32 MB / 384.2 MB, free: 5.676 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002658/0.188, allocations: 27.94 kB / 384.3 MB, free: 5.648 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002242/0.1903, allocations: 218.4 kB / 384.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004473/0.1949, allocations: 0.5219 MB / 385 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002888/0.1978, allocations: 347.5 kB / 385.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005818/0.2037, allocations: 1.428 MB / 386.8 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.2069, allocations: 0.8055 MB / 387.6 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.2095, allocations: 0.5954 MB / 388.2 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002204/0.2117, allocations: 0.6455 MB / 388.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007697/0.2126, allocations: 84 kB / 388.9 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.2137, allocations: 120 kB / 389 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006203/0.2143, allocations: 278.9 kB / 389.3 MB, free: 0.582 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.2154, allocations: 340.9 kB / 389.6 MB, free: 248 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4123/0.6277, allocations: 2.666 MB / 392.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.336e-06/0.6278, allocations: 0 / 392.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.3e-06/0.6278, allocations: 0 / 392.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001794/0.628, allocations: 0.9375 kB / 392.3 MB, free: 11.3 MB / 282.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.01049/0.6385, allocations: 1.64 MB / 393.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.089e-05/0.6386, allocations: 10.36 kB / 393.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.6405, allocations: 181.1 kB / 394.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004181/0.6447, allocations: 0.8078 MB / 394.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001002/0.6458, allocations: 239.3 kB / 395.2 MB, free: 9.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001483/0.6474, allocations: 158.5 kB / 395.3 MB, free: 9.973 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/0.6602, allocations: 1.676 MB / 397 MB, free: 9.859 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/0.6605, allocations: 5.344 kB / 397 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006605/0.6612, allocations: 63.62 kB / 397.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.698e-05/0.6613, allocations: 44.41 kB / 397.1 MB, free: 9.852 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.6726, allocations: 1.571 MB / 398.7 MB, free: 9.832 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0295/0.7022, allocations: 5.951 MB / 404.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006199/0.7085, allocations: 0.9533 MB / 405.6 MB, free: 7.164 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002577/0.7088, allocations: 13.28 kB / 405.6 MB, free: 7.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004113/0.7129, allocations: 0.6663 MB / 406.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=90): time 9.037e-06/0.713, allocations: 0 / 406.3 MB, free: 6.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=120): time 0.1046/0.8177, allocations: 9.84 MB / 416.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.8179, allocations: 311.1 kB / 416.4 MB, free: 1.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002752/0.8207, allocations: 0.7855 MB / 417.2 MB, free: 488 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006831/0.8214, allocations: 57.69 kB / 417.2 MB, free: 424 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.8228, allocations: 0.6695 MB / 417.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001375/0.8242, allocations: 416.8 kB / 418.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003876/0.8247, allocations: 24 kB / 418.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004321/0.8252, allocations: 370.8 kB / 418.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00597/0.8312, allocations: 0.8394 MB / 419.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006617/0.8379, allocations: 1.161 MB / 420.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005779/0.8437, allocations: 0.8215 MB / 421.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.618e-05/0.8438, allocations: 4 kB / 421.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.01385/0.8577, allocations: 2.087 MB / 423.6 MB, free: 9.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.8578, allocations: 9.125 kB / 423.6 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.221e-05/0.8579, allocations: 14.28 kB / 423.6 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/0.8589, allocations: 186.2 kB / 423.8 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004807/0.8637, allocations: 368.9 kB / 424.2 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00953/0.8733, allocations: 4.491 MB / 428.7 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004487/0.8779, allocations: 203.9 kB / 428.9 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000679/0.8786, allocations: 44 kB / 428.9 MB, free: 4.297 MB / 298.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 (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.002696/0.8813, allocations: 392.7 kB / 429.3 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/0.8821, allocations: 102.8 kB / 429.4 MB, free: 3.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007203/0.8829, allocations: 130 kB / 429.5 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/0.8829, allocations: 12 kB / 429.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.532e-05/0.883, allocations: 7.953 kB / 429.6 MB, free: 3.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.521e-05/0.883, allocations: 4.922 kB / 429.6 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02411/0.9071, allocations: 4.531 MB / 434.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/0.9073, allocations: 16 kB / 434.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003285/0.9106, allocations: 286.4 kB / 434.4 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/0.9122, allocations: 365.5 kB / 434.7 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004303/0.9127, allocations: 32 kB / 434.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004978/0.9177, allocations: 2.192 MB / 437 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.537e-05/0.9178, allocations: 19.41 kB / 437 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/0.9342, allocations: 3.082 MB / 440.1 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001918/0.9362, allocations: 319.8 kB / 440.4 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000854/0.9371, allocations: 43.98 kB / 440.4 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003557/0.9407, allocations: 179.8 kB / 440.6 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/0.942, allocations: 183.1 kB / 440.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003021/0.9423, allocations: 43.98 kB / 440.8 MB, free: 7.797 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002218/0.9446, allocations: 0.5303 MB / 441.3 MB, free: 7.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.9446, allocations: 0 / 441.3 MB, free: 7.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004474/0.9491, allocations: 348 kB / 441.7 MB, free: 6.93 MB / 314.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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001017/0.9502, allocations: 179.6 kB / 441.9 MB, free: 6.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.01176/0.962, allocations: 2.1 MB / 444 MB, free: 4.668 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.482e-05/0.9621, allocations: 4 kB / 444 MB, free: 4.664 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006092/0.9682, allocations: 1.056 MB / 445 MB, free: 3.637 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.971, allocations: 164.2 kB / 445.2 MB, free: 3.484 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/0.988, allocations: 3.804 MB / 449 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002304/0.9904, allocations: 1.206 MB / 450.2 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/0.992, allocations: 87.42 kB / 450.3 MB, free: 14.22 MB / 330.7 MB Notification: Performance of SimCode: time 2.735e-06/0.992, allocations: 0 / 450.3 MB, free: 14.22 MB / 330.7 MB Notification: Performance of Templates: time 0.1073/1.099, allocations: 34.01 MB / 484.3 MB, free: 12.17 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/oneAxis/oneAxis.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches