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.001355/0.001355, allocations: 200.2 kB / 17.05 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007261/0.000726, allocations: 105.8 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002176/0.0002176, allocations: 4 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1954, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.005907/0.2013, allocations: 8.214 MB / 415.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.2046, allocations: 2.328 MB / 418.1 MB, free: 17.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006974/0.2053, allocations: 31.88 kB / 418.1 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000514/0.2059, allocations: 254.2 kB / 418.3 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006844/0.2066, allocations: 404.8 kB / 418.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006129/0.2072, allocations: 355.5 kB / 419.1 MB, free: 16.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.2083, allocations: 2.087 MB / 421.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008181/0.2092, allocations: 0.8148 MB / 422 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/0.2097, allocations: 0.5953 MB / 422.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000475/0.2102, allocations: 0.6532 MB / 423.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.2103, allocations: 80 kB / 423.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.2105, allocations: 120 kB / 423.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.2107, allocations: 290.8 kB / 423.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.2109, allocations: 344.9 kB / 424 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.2122, allocations: 2.712 MB / 426.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2122, allocations: 0 / 426.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2122, allocations: 0 / 426.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.2123, allocations: 11.94 kB / 426.8 MB, free: 8.48 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.002349/0.2146, allocations: 1.651 MB / 428.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2147, allocations: 12.03 kB / 428.4 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.2149, allocations: 181.9 kB / 428.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008229/0.2157, allocations: 0.8139 MB / 429.4 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.2159, allocations: 244.1 kB / 429.7 MB, free: 5.465 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.2161, allocations: 155.9 kB / 429.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/0.2186, allocations: 1.667 MB / 431.5 MB, free: 3.617 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.732e-05/0.2186, allocations: 7.906 kB / 431.5 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.2188, allocations: 63.98 kB / 431.5 MB, free: 3.547 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.2188, allocations: 44 kB / 431.6 MB, free: 3.504 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002588/0.2214, allocations: 1.531 MB / 433.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007369/0.2288, allocations: 5.954 MB / 439.1 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.2306, allocations: 0.9407 MB / 440 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009332/0.2315, allocations: 0.517 MB / 440.5 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.457e-05/0.2316, allocations: 9 kB / 440.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.2327, allocations: 0.6528 MB / 441.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.635e-06/0.2327, allocations: 4 kB / 441.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.03103/0.2638, allocations: 9.683 MB / 450.9 MB, free: 15.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.2639, allocations: 299.8 kB / 451.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009969/0.2649, allocations: 0.7935 MB / 452 MB, free: 14.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.903e-05/0.265, allocations: 53.7 kB / 452 MB, free: 14.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/0.2655, allocations: 0.6623 MB / 452.7 MB, free: 13.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002875/0.2658, allocations: 414 kB / 453.1 MB, free: 13.49 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.058e-05/0.2659, allocations: 24 kB / 453.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.266, allocations: 410.7 kB / 453.5 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/0.2678, allocations: 0.8199 MB / 454.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002012/0.2698, allocations: 1.142 MB / 455.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001749/0.2716, allocations: 0.7951 MB / 456.3 MB, free: 10.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.2716, allocations: 7.938 kB / 456.3 MB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004296/0.2759, allocations: 2.084 MB / 458.4 MB, free: 8.074 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.2759, allocations: 8 kB / 458.4 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.276, allocations: 8 kB / 458.4 MB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/0.2764, allocations: 178.5 kB / 458.5 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.278, allocations: 371.5 kB / 458.9 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00391/0.2819, allocations: 4.462 MB / 463.4 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.2834, allocations: 207.8 kB / 463.6 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-05/0.2835, allocations: 48 kB / 463.6 MB, free: 2.395 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.000708/0.2842, allocations: 403.1 kB / 464 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.2843, allocations: 102.8 kB / 464.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002002/0.2846, allocations: 130 kB / 464.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.2846, allocations: 12 kB / 464.3 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.2846, allocations: 0 / 464.3 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.2846, allocations: 7.969 kB / 464.3 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006947/0.2916, allocations: 4.45 MB / 468.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.2916, allocations: 8.938 kB / 468.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.2927, allocations: 287.6 kB / 469 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004412/0.2931, allocations: 249.5 kB / 469.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/0.2932, allocations: 32 kB / 469.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.2947, allocations: 2.083 MB / 471.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.709e-06/0.2947, allocations: 15.94 kB / 471.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004256/0.299, allocations: 2.485 MB / 473.9 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000455/0.2994, allocations: 327.6 kB / 474.2 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.2996, allocations: 43.98 kB / 474.2 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.3006, allocations: 175.9 kB / 474.4 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/0.3009, allocations: 188.1 kB / 474.6 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.198e-05/0.301, allocations: 47.98 kB / 474.6 MB, free: 6.855 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000684/0.3017, allocations: 0.5342 MB / 475.2 MB, free: 6.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.212e-06/0.3017, allocations: 0 / 475.2 MB, free: 6.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001056/0.3027, allocations: 347.9 kB / 475.5 MB, free: 5.98 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.0007921/0.3035, allocations: 422.6 kB / 475.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003739/0.3073, allocations: 2.055 MB / 478 MB, free: 3.586 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3073, allocations: 0 / 478 MB, free: 3.586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.3092, allocations: 1.032 MB / 479 MB, free: 2.547 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3102, allocations: 203 kB / 479.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005276/0.3155, allocations: 3.815 MB / 483 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007027/0.3162, allocations: 1.186 MB / 484.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004281/0.3167, allocations: 83.44 kB / 484.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3167, allocations: 0 / 484.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of Templates: time 0.1861/0.5028, allocations: 36.33 MB / 0.5084 GB, free: 92.12 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