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.001662/0.001662, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001871/0.001871, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.418/1.418, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001173/0.001173, allocations: 52.14 kB / 282.1 MB, free: 2.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.09165, allocations: 46.62 MB / 328.7 MB, free: 3.734 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01006/0.1017, allocations: 9.18 MB / 337.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004552/0.1063, allocations: 2.299 MB / 340.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.1075, allocations: 31.88 kB / 340.2 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008463/0.1083, allocations: 329 kB / 340.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.1096, allocations: 495.7 kB / 341 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.1108, allocations: 0.6516 MB / 341.7 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.1129, allocations: 2.352 MB / 344.1 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.1142, allocations: 1.119 MB / 345.2 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.1153, allocations: 0.8373 MB / 346 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008889/0.1162, allocations: 0.8871 MB / 346.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002761/0.1165, allocations: 276 kB / 347.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004031/0.1169, allocations: 328 kB / 347.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004112/0.1173, allocations: 0.4987 MB / 348 MB, free: 356 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008614/0.1182, allocations: 0.9803 MB / 349 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002722/0.1209, allocations: 3.318 MB / 352.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.1209, allocations: 4 kB / 352.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1209, allocations: 0 / 352.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.029e-05/0.121, allocations: 0 / 352.3 MB, free: 12.03 MB / 302.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.003583/0.1246, allocations: 1.928 MB / 354.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1246, allocations: 8.031 kB / 354.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.1249, allocations: 182.9 kB / 354.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.1263, allocations: 0.8419 MB / 355.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/0.1265, allocations: 236.7 kB / 355.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.1268, allocations: 167.8 kB / 355.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002962/0.1298, allocations: 1.682 MB / 357.3 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.184e-05/0.1298, allocations: 7.984 kB / 357.3 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.1299, allocations: 64 kB / 357.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.13, allocations: 40 kB / 357.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002996/0.133, allocations: 1.554 MB / 359 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008232/0.1412, allocations: 5.821 MB / 364.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.1431, allocations: 0.9441 MB / 365.7 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009564/0.1441, allocations: 0.52 MB / 366.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.051e-05/0.1441, allocations: 13 kB / 366.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.1453, allocations: 0.6606 MB / 366.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 3.506e-06/0.1453, allocations: 4 kB / 366.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03121/0.1765, allocations: 8.922 MB / 375.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.1767, allocations: 307.7 kB / 376.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.1778, allocations: 0.7778 MB / 376.9 MB, free: 2.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.1779, allocations: 53.7 kB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.1784, allocations: 0.6661 MB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.1788, allocations: 406.2 kB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000451/0.1792, allocations: 243.5 kB / 378.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.1794, allocations: 414.7 kB / 378.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.1812, allocations: 0.8082 MB / 379.5 MB, free: 128 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1523/0.3335, allocations: 1.131 MB / 380.6 MB, free: 52.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/0.3369, allocations: 1.644 MB / 382.3 MB, free: 51.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.3369, allocations: 3.031 kB / 382.3 MB, free: 51.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004184/0.3411, allocations: 2.077 MB / 384.4 MB, free: 50.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3411, allocations: 7.25 kB / 384.4 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.3411, allocations: 7.344 kB / 384.4 MB, free: 50.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004002/0.3415, allocations: 177.9 kB / 384.6 MB, free: 50.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.3432, allocations: 356.5 kB / 384.9 MB, free: 50.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003123/0.3463, allocations: 4.808 MB / 389.7 MB, free: 46.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.3478, allocations: 171.7 kB / 389.9 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.348, allocations: 50.25 kB / 389.9 MB, free: 46.23 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,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.0006673/0.3486, allocations: 390.8 kB / 390.3 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001863/0.3488, allocations: 105.9 kB / 390.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002297/0.3491, allocations: 134.4 kB / 390.5 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3491, allocations: 11.72 kB / 390.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3491, allocations: 2.953 kB / 390.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3491, allocations: 6.781 kB / 390.6 MB, free: 45.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007202/0.3563, allocations: 4.41 MB / 395 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.3564, allocations: 9.344 kB / 395 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.3574, allocations: 267.9 kB / 395.2 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005219/0.358, allocations: 366.2 kB / 395.6 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.71e-05/0.3581, allocations: 38.28 kB / 395.6 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3593, allocations: 2.278 MB / 397.9 MB, free: 41.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.3593, allocations: 12.16 kB / 397.9 MB, free: 41.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004057/0.3634, allocations: 2.499 MB / 400.4 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005037/0.3639, allocations: 317.9 kB / 400.7 MB, free: 39.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.3641, allocations: 50.06 kB / 400.8 MB, free: 39.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009648/0.3651, allocations: 142.2 kB / 400.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.3653, allocations: 164.7 kB / 401.1 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.355e-05/0.3654, allocations: 47.12 kB / 401.1 MB, free: 39.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005954/0.366, allocations: 0.5334 MB / 401.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.366, allocations: 0 / 401.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001103/0.3671, allocations: 340.2 kB / 402 MB, free: 39.43 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 (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.0002621/0.3674, allocations: 188.3 kB / 402.2 MB, free: 39.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00347/0.3709, allocations: 2.049 MB / 404.2 MB, free: 38.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.3709, allocations: 1.812 kB / 404.2 MB, free: 38.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.3728, allocations: 1.049 MB / 405.3 MB, free: 37.81 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.3738, allocations: 208.5 kB / 405.5 MB, free: 37.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.3782, allocations: 3.066 MB / 408.6 MB, free: 34.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005432/0.3787, allocations: 1.175 MB / 409.7 MB, free: 33.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007119/0.3794, allocations: 172.3 kB / 409.9 MB, free: 33.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.3798, allocations: 79.44 kB / 410 MB, free: 33.08 MB / 318.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3798, allocations: 0 / 410 MB, free: 33.08 MB / 318.1 MB Notification: Performance of Templates: time 0.02461/0.4044, allocations: 18.71 MB / 428.7 MB, free: 14.38 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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