Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001206/0.001206, allocations: 94.61 kB / 16.94 MB, free: 5.98 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.001368/0.001368, allocations: 178.9 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004637/0.0004638, allocations: 15.42 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 47.58 MB / 328.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.008282/0.1128, allocations: 7.364 MB / 335.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004643/0.1174, allocations: 2.331 MB / 338 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.1191, allocations: 31.94 kB / 338.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.1204, allocations: 226.3 kB / 338.3 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002026/0.1224, allocations: 0.518 MB / 338.8 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1236, allocations: 351.5 kB / 339.2 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002879/0.1265, allocations: 1.42 MB / 340.6 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.1278, allocations: 0.8171 MB / 341.4 MB, free: 6.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009821/0.1288, allocations: 0.5799 MB / 342 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.1295, allocations: 0.6494 MB / 342.6 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1296, allocations: 80 kB / 342.7 MB, free: 5.633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002548/0.1299, allocations: 120 kB / 342.8 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002629/0.1302, allocations: 278.9 kB / 343.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.1305, allocations: 344.9 kB / 343.4 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002144/0.1326, allocations: 2.672 MB / 346.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1326, allocations: 0 / 346.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1327, allocations: 0 / 346.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.054e-05/0.1327, allocations: 0 / 346.1 MB, free: 2.219 MB / 286.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.003132/0.1358, allocations: 1.643 MB / 347.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1359, allocations: 12.03 kB / 347.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002834/0.1362, allocations: 177.9 kB / 347.9 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.1374, allocations: 0.8023 MB / 348.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.1376, allocations: 240.1 kB / 349 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.1379, allocations: 159.9 kB / 349.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002992/0.1409, allocations: 1.674 MB / 350.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.099e-05/0.1409, allocations: 3.906 kB / 350.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.1411, allocations: 71.98 kB / 350.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.686e-05/0.1411, allocations: 36 kB / 350.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003102/0.1442, allocations: 1.57 MB / 352.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008546/0.1528, allocations: 5.954 MB / 358.4 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001928/0.1547, allocations: 0.9529 MB / 359.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.787e-05/0.1548, allocations: 13 kB / 359.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.156, allocations: 0.6683 MB / 360.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 3.236e-06/0.156, allocations: 0 / 360.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03445/0.1905, allocations: 9.846 MB / 369.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.1907, allocations: 299.7 kB / 370.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.1919, allocations: 0.7778 MB / 371 MB, free: 8.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.192, allocations: 53.7 kB / 371 MB, free: 8.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006529/0.1927, allocations: 0.6701 MB / 371.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.1931, allocations: 402.2 kB / 372.1 MB, free: 7.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/0.1932, allocations: 35.94 kB / 372.1 MB, free: 7.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.1934, allocations: 402.7 kB / 372.5 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001948/0.1954, allocations: 0.8433 MB / 373.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.1976, allocations: 1.157 MB / 374.5 MB, free: 5.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.1995, allocations: 0.8223 MB / 375.3 MB, free: 4.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.1995, allocations: 4 kB / 375.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004726/0.2043, allocations: 2.131 MB / 377.5 MB, free: 2.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.2043, allocations: 8 kB / 377.5 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.2043, allocations: 12 kB / 377.5 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005156/0.2049, allocations: 178.5 kB / 377.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/0.2065, allocations: 375.4 kB / 378 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1778/0.3844, allocations: 4.484 MB / 382.5 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.3864, allocations: 204.4 kB / 382.7 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.3865, allocations: 49.86 kB / 382.8 MB, free: 47.61 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,$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.0007961/0.3873, allocations: 387.7 kB / 383.1 MB, free: 47.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.3875, allocations: 113.3 kB / 383.3 MB, free: 47.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002753/0.3878, allocations: 130.6 kB / 383.4 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3878, allocations: 12.16 kB / 383.4 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.3878, allocations: 1.312 kB / 383.4 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.3878, allocations: 6.188 kB / 383.4 MB, free: 47.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00818/0.396, allocations: 4.537 MB / 387.9 MB, free: 45.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.3961, allocations: 9.281 kB / 388 MB, free: 45.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001174/0.3972, allocations: 281.1 kB / 388.2 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005975/0.3978, allocations: 373 kB / 388.6 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.021e-05/0.398, allocations: 36.41 kB / 388.6 MB, free: 45.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.3993, allocations: 2.18 MB / 390.8 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/0.3994, allocations: 23.94 kB / 390.8 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005035/0.4044, allocations: 3.077 MB / 393.9 MB, free: 41.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005404/0.405, allocations: 321.5 kB / 394.2 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.4052, allocations: 48.25 kB / 394.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4062, allocations: 177.2 kB / 394.4 MB, free: 41.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003448/0.4066, allocations: 182.8 kB / 394.6 MB, free: 41.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.372e-05/0.4067, allocations: 44.64 kB / 394.7 MB, free: 41.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007846/0.4075, allocations: 0.531 MB / 395.2 MB, free: 41.06 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4075, allocations: 1.219 kB / 395.2 MB, free: 41.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001356/0.4088, allocations: 340.8 kB / 395.5 MB, free: 41.03 MB / 318.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 (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.0003132/0.4092, allocations: 182.9 kB / 395.7 MB, free: 40.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003869/0.413, allocations: 2.097 MB / 397.8 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.4131, allocations: 4.562 kB / 397.8 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.4151, allocations: 1.081 MB / 398.9 MB, free: 39.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009828/0.4161, allocations: 177 kB / 399.1 MB, free: 39.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005237/0.4214, allocations: 3.744 MB / 402.8 MB, free: 36.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.422, allocations: 1.207 MB / 404 MB, free: 36.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008547/0.4228, allocations: 163.2 kB / 404.2 MB, free: 36.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003069/0.4232, allocations: 74.64 kB / 404.2 MB, free: 36.08 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4232, allocations: 0 / 404.2 MB, free: 36.08 MB / 318.1 MB Notification: Performance of Templates: time 0.02259/0.4458, allocations: 16.95 MB / 421.2 MB, free: 20.31 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches