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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.1 MB / 223.7 MB, free: 8.484 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.0008911/0.0008911, allocations: 107.9 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007451/0.0007451, allocations: 47.92 kB / 327.2 MB, free: 308 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1735, allocations: 46.61 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.006863/0.1804, allocations: 9.122 MB / 383 MB, free: 38.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.1832, allocations: 2.268 MB / 385.2 MB, free: 36.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005222/0.1837, allocations: 31.06 kB / 385.3 MB, free: 36.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004916/0.1842, allocations: 249.6 kB / 385.5 MB, free: 36.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007206/0.185, allocations: 418.2 kB / 385.9 MB, free: 36.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.1857, allocations: 0.5832 MB / 386.5 MB, free: 35.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.187, allocations: 2.187 MB / 388.7 MB, free: 34.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009814/0.188, allocations: 1 MB / 389.7 MB, free: 33.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005801/0.1886, allocations: 0.6965 MB / 390.4 MB, free: 32.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004985/0.1891, allocations: 0.8011 MB / 391.2 MB, free: 32.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000146/0.1893, allocations: 128 kB / 391.3 MB, free: 31.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000247/0.1895, allocations: 176 kB / 391.5 MB, free: 31.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.1897, allocations: 358.7 kB / 391.8 MB, free: 31.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004312/0.1902, allocations: 0.8397 MB / 392.7 MB, free: 30.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.1916, allocations: 3.15 MB / 395.8 MB, free: 27.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1916, allocations: 0 / 395.8 MB, free: 27.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1916, allocations: 0 / 395.8 MB, free: 27.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.1916, allocations: 0 / 395.8 MB, free: 27.42 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.002625/0.1942, allocations: 1.916 MB / 397.7 MB, free: 25.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1943, allocations: 12.03 kB / 397.7 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.1945, allocations: 186.9 kB / 397.9 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008043/0.1953, allocations: 0.8419 MB / 398.8 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.1955, allocations: 228.7 kB / 399 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.1957, allocations: 163.9 kB / 399.1 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/0.1979, allocations: 1.682 MB / 400.8 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/0.1979, allocations: 7.906 kB / 400.8 MB, free: 22.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.198, allocations: 60 kB / 400.9 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.1981, allocations: 36 kB / 400.9 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.2006, allocations: 1.566 MB / 402.5 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006126/0.2067, allocations: 5.899 MB / 408.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.2083, allocations: 0.9373 MB / 409.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007886/0.2091, allocations: 0.532 MB / 409.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.059e-05/0.2091, allocations: 17 kB / 409.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009078/0.21, allocations: 0.6567 MB / 410.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=90): time 1.944e-06/0.2101, allocations: 0 / 410.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=120): time 0.02724/0.2373, allocations: 8.921 MB / 419.5 MB, free: 3.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.2374, allocations: 299.7 kB / 419.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000708/0.2381, allocations: 0.7896 MB / 420.5 MB, free: 2.055 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-05/0.2382, allocations: 53.7 kB / 420.6 MB, free: 1.996 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.2384, allocations: 0.6583 MB / 421.3 MB, free: 1.324 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.2386, allocations: 406.2 kB / 421.7 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003695/0.239, allocations: 247.4 kB / 421.9 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.2391, allocations: 410.7 kB / 422.3 MB, free: 272 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.2408, allocations: 0.8083 MB / 423.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/0.2428, allocations: 1.142 MB / 424.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.246, allocations: 1.654 MB / 425.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.246, allocations: 0 / 425.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004018/0.25, allocations: 2.068 MB / 428 MB, free: 10.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.25, allocations: 8 kB / 428 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.25, allocations: 8 kB / 428 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003359/0.2504, allocations: 182.4 kB / 428.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.2518, allocations: 347.5 kB / 428.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.2549, allocations: 4.446 MB / 432.9 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.2562, allocations: 163.9 kB / 433.1 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.884e-05/0.2563, allocations: 48 kB / 433.2 MB, free: 4.77 MB / 314.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,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.0005181/0.2568, allocations: 395.1 kB / 433.5 MB, free: 4.375 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.2569, allocations: 102.8 kB / 433.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002556/0.2572, allocations: 134 kB / 433.8 MB, free: 4.137 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.2572, allocations: 12 kB / 433.8 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2572, allocations: 0 / 433.8 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.2572, allocations: 7.984 kB / 433.8 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006533/0.2638, allocations: 4.419 MB / 438.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.2638, allocations: 12 kB / 438.2 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000987/0.2648, allocations: 263.6 kB / 438.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004625/0.2653, allocations: 373.8 kB / 438.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.591e-05/0.2654, allocations: 39.98 kB / 438.9 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.2667, allocations: 2.161 MB / 441 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/0.2667, allocations: 15.94 kB / 441.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02145/0.2882, allocations: 13.95 MB / 455 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/0.2886, allocations: 319.7 kB / 455.3 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.2888, allocations: 51.98 kB / 455.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.2897, allocations: 135.9 kB / 455.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/0.29, allocations: 168.2 kB / 455.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/0.29, allocations: 43.98 kB / 455.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000592/0.2906, allocations: 0.5381 MB / 456.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2906, allocations: 0 / 456.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001171/0.2918, allocations: 464 kB / 456.7 MB, free: 12.22 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 (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.0002709/0.2921, allocations: 203 kB / 456.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003533/0.2956, allocations: 2.035 MB / 458.9 MB, free: 9.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2957, allocations: 4 kB / 458.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/0.2976, allocations: 1.043 MB / 460 MB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009758/0.2985, allocations: 188.5 kB / 460.2 MB, free: 8.703 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/0.3042, allocations: 4.713 MB / 464.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006905/0.3049, allocations: 1.21 MB / 466.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008328/0.3057, allocations: 176.4 kB / 466.3 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/0.3061, allocations: 83.44 kB / 466.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3061, allocations: 0 / 466.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of Templates: time 0.02717/0.3333, allocations: 21.44 MB / 487.8 MB, free: 12.85 MB / 378.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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