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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002551/0.002551, allocations: 99.53 kB / 21.73 MB, free: 2.691 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002045/0.002045, allocations: 168.4 kB / 25.03 MB, free: 8.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4704,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=4704,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.033e-06/2.033e-06, allocations: 0 / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.295e-05/3.499e-05, allocations: 2.312 kB / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.02262/0.02266, allocations: 8.988 MB / 259.4 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008322/0.03098, allocations: 2.287 MB / 261.7 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.03283, allocations: 31.88 kB / 261.7 MB, free: 12.46 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.03452, allocations: 336.9 kB / 262 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003071/0.03759, allocations: 0.5111 MB / 262.5 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.04007, allocations: 0.6632 MB / 263.2 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005398/0.04547, allocations: 2.406 MB / 265.6 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002606/0.04807, allocations: 0.7059 MB / 266.3 MB, free: 7.773 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00348/0.05155, allocations: 1.306 MB / 267.6 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.05369, allocations: 0.6895 MB / 268.3 MB, free: 5.773 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008284/0.05452, allocations: 276 kB / 268.6 MB, free: 5.504 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.05579, allocations: 343.8 kB / 268.9 MB, free: 5.168 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.05679, allocations: 0.5142 MB / 269.4 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.05859, allocations: 0.6861 MB / 270.1 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006886/0.06548, allocations: 3.502 MB / 273.6 MB, free: 464 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.06549, allocations: 4 kB / 273.6 MB, free: 460 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.06549, allocations: 0 / 273.6 MB, free: 460 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.977e-05/0.06556, allocations: 0 / 273.6 MB, free: 460 kB / 250.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.007758/0.07332, allocations: 2.162 MB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.07337, allocations: 11.98 kB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.07442, allocations: 319.8 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.07681, allocations: 0.7919 MB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007332/0.07755, allocations: 446.3 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004514/0.078, allocations: 160.3 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006464/0.08446, allocations: 1.98 MB / 279.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.753e-05/0.08455, allocations: 11.89 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.0848, allocations: 60 kB / 279.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.524e-05/0.08486, allocations: 40 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006565/0.09142, allocations: 1.456 MB / 281 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02122/0.1126, allocations: 7.821 MB / 288.8 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00289/0.1155, allocations: 0.9154 MB / 289.8 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.1167, allocations: 497.8 kB / 290.2 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.063e-05/0.1168, allocations: 13 kB / 290.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001706/0.1185, allocations: 0.9337 MB / 291.2 MB, free: 14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=91): time 2.755e-06/0.1185, allocations: 0 / 291.2 MB, free: 14 MB / 282.7 MB Notification: Performance of matching and sorting (n=121): time 0.02388/0.1424, allocations: 6.994 MB / 298.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002156/0.1426, allocations: 299.7 kB / 298.5 MB, free: 6.594 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001514/0.1441, allocations: 1.003 MB / 299.5 MB, free: 5.578 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.1443, allocations: 53.7 kB / 299.5 MB, free: 5.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008129/0.1451, allocations: 0.788 MB / 300.3 MB, free: 4.719 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005335/0.1456, allocations: 472.4 kB / 300.8 MB, free: 4.254 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006431/0.1463, allocations: 333.2 kB / 301.1 MB, free: 3.918 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005013/0.1468, allocations: 0.6797 MB / 301.8 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.1488, allocations: 0.7496 MB / 302.5 MB, free: 2.477 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002673/0.1515, allocations: 1.44 MB / 304 MB, free: 0.832 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004054/0.1556, allocations: 1.749 MB / 305.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.1556, allocations: 4 kB / 305.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005211/0.1608, allocations: 2.045 MB / 307.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.1608, allocations: 8 kB / 307.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.1608, allocations: 8.5 kB / 307.8 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006048/0.1614, allocations: 214.9 kB / 308 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.1631, allocations: 339.4 kB / 308.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005689/0.1688, allocations: 6.082 MB / 314.4 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.1704, allocations: 139.8 kB / 314.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.1705, allocations: 52 kB / 314.6 MB, free: 5.676 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: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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 (169): * Single equations (assignments): 166 * 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.0007788/0.1713, allocations: 414.2 kB / 315 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002926/0.1716, allocations: 143.3 kB / 315.1 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000333/0.1719, allocations: 129.6 kB / 315.3 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.1719, allocations: 12.14 kB / 315.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.1719, allocations: 0 / 315.3 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.1719, allocations: 7.969 kB / 315.3 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008908/0.1809, allocations: 4.47 MB / 319.8 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.947e-05/0.1809, allocations: 15.94 kB / 319.8 MB, free: 256 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.182, allocations: 247.6 kB / 320 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007437/0.1827, allocations: 375.6 kB / 320.4 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.374e-05/0.1828, allocations: 36 kB / 320.4 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.1855, allocations: 2.947 MB / 323.4 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/0.1855, allocations: 15.94 kB / 323.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005472/0.191, allocations: 2.599 MB / 326 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006241/0.1916, allocations: 247.2 kB / 326.2 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.1918, allocations: 52 kB / 326.3 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009826/0.1928, allocations: 111.9 kB / 326.4 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/0.1932, allocations: 180.2 kB / 326.6 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.737e-05/0.1933, allocations: 47.98 kB / 326.6 MB, free: 9.055 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008919/0.1942, allocations: 0.5849 MB / 327.2 MB, free: 8.477 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1942, allocations: 4 kB / 327.2 MB, free: 8.473 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001267/0.1954, allocations: 351.9 kB / 327.5 MB, free: 8.129 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: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,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 (113): * Single equations (assignments): 111 * 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.0003422/0.1958, allocations: 197.2 kB / 327.7 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004545/0.2003, allocations: 2.121 MB / 329.9 MB, free: 5.758 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.2003, allocations: 4.062 kB / 329.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.2021, allocations: 0.8643 MB / 330.7 MB, free: 4.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.2033, allocations: 210.8 kB / 330.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006048/0.2093, allocations: 3.096 MB / 334 MB, free: 1.352 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.2101, allocations: 0.5901 MB / 334.6 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007778/0.2108, allocations: 156 kB / 334.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00038/0.2112, allocations: 80.48 kB / 334.8 MB, free: 0.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.472e-06/0.2112, allocations: 0 / 334.8 MB, free: 0.5 MB / 314.7 MB Notification: Performance of Templates: time 0.1292/0.3404, allocations: 18.2 MB / 353 MB, free: 101.5 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 240] 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","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.272468289011158]