Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001918/0.001918, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002276/0.002276, allocations: 213.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 47.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2976, allocations: 53.37 MB / 431.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01137/0.309, allocations: 8.219 MB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005212/0.3142, allocations: 2.388 MB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3154, allocations: 31.88 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009897/0.3164, allocations: 352.9 kB / 442.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001449/0.3179, allocations: 0.5036 MB / 443.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.3192, allocations: 0.6671 MB / 443.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003123/0.3223, allocations: 2.368 MB / 446.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.3236, allocations: 0.7375 MB / 446.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.325, allocations: 0.8452 MB / 447.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.3262, allocations: 0.9221 MB / 448.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003414/0.3265, allocations: 280 kB / 448.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006601/0.3272, allocations: 355.9 kB / 449.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005365/0.3277, allocations: 0.5104 MB / 449.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009042/0.3286, allocations: 0.8015 MB / 450.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003737/0.3324, allocations: 3.44 MB / 454 MB, free: 176 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3324, allocations: 4 kB / 454 MB, free: 172 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3324, allocations: 0 / 454 MB, free: 172 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.106e-05/0.3324, allocations: 0 / 454 MB, free: 172 kB / 350.1 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.004223/0.3367, allocations: 1.925 MB / 455.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3367, allocations: 12.03 kB / 455.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004203/0.3371, allocations: 195.8 kB / 456.1 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.3386, allocations: 0.7743 MB / 456.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004316/0.339, allocations: 450.3 kB / 457.3 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002699/0.3393, allocations: 163.9 kB / 457.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003491/0.3427, allocations: 1.879 MB / 459.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.204e-05/0.3428, allocations: 11.94 kB / 459.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.343, allocations: 64 kB / 459.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.363e-05/0.343, allocations: 36 kB / 459.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003496/0.3465, allocations: 1.531 MB / 461 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00946/0.3559, allocations: 4.998 MB / 466 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.3581, allocations: 0.8996 MB / 466.9 MB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.3592, allocations: 489.7 kB / 467.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.162e-05/0.3593, allocations: 13 kB / 467.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001517/0.3608, allocations: 0.8575 MB / 468.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 3.547e-06/0.3608, allocations: 0 / 468.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.03504/0.3959, allocations: 8.54 MB / 476.8 MB, free: 8.777 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001996/0.3961, allocations: 307.7 kB / 477.1 MB, free: 8.406 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.3973, allocations: 0.7892 MB / 477.9 MB, free: 7.605 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.3974, allocations: 57.64 kB / 477.9 MB, free: 7.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006797/0.3981, allocations: 0.68 MB / 478.6 MB, free: 6.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.3985, allocations: 440.3 kB / 479.1 MB, free: 6.418 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005265/0.399, allocations: 247.5 kB / 479.3 MB, free: 6.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002667/0.3993, allocations: 402.7 kB / 479.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001966/0.4013, allocations: 0.7965 MB / 480.5 MB, free: 4.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002456/0.4037, allocations: 1.323 MB / 481.8 MB, free: 3.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.4075, allocations: 1.607 MB / 483.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4075, allocations: 0 / 483.4 MB, free: 1.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004977/0.4125, allocations: 2.046 MB / 485.5 MB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.4125, allocations: 8 kB / 485.5 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.4125, allocations: 8 kB / 485.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005058/0.413, allocations: 222.4 kB / 485.7 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/0.4149, allocations: 355.5 kB / 486 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004703/0.4196, allocations: 4.436 MB / 490.5 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4213, allocations: 175.9 kB / 490.6 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4214, allocations: 55.98 kB / 490.7 MB, free: 10.16 MB / 398.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: 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 (170): * Single equations (assignments): 167 * 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.0008101/0.4222, allocations: 383.5 kB / 491.1 MB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.4225, allocations: 115.2 kB / 491.2 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003502/0.4229, allocations: 129.8 kB / 491.3 MB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.4229, allocations: 16 kB / 491.3 MB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.4229, allocations: 3.984 kB / 491.3 MB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4229, allocations: 3.984 kB / 491.3 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00818/0.4311, allocations: 3.824 MB / 495.2 MB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.4311, allocations: 12 kB / 495.2 MB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/0.4323, allocations: 267.7 kB / 495.4 MB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006175/0.4329, allocations: 285.5 kB / 495.7 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.801e-05/0.433, allocations: 39.98 kB / 495.8 MB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002093/0.4351, allocations: 2.059 MB / 497.8 MB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/0.4352, allocations: 11.94 kB / 497.8 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.4404, allocations: 2.417 MB / 0.4885 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006905/0.4411, allocations: 247.2 kB / 0.4888 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.4413, allocations: 47.98 kB / 0.4888 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.4424, allocations: 135.9 kB / 0.4889 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003801/0.4428, allocations: 176.2 kB / 0.4891 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-05/0.4429, allocations: 51.98 kB / 0.4891 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007936/0.4437, allocations: 0.5147 MB / 0.4896 GB, free: 15 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4437, allocations: 4 kB / 0.4897 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001396/0.4451, allocations: 343.9 kB / 0.49 GB, free: 14.66 MB / 414.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: 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0016/0.4467, allocations: 461.6 kB / 0.4904 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004392/0.4511, allocations: 1.897 MB / 0.4923 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.4511, allocations: 5.812 kB / 0.4923 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.4535, allocations: 1.012 MB / 0.4933 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.4548, allocations: 186.2 kB / 0.4934 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006132/0.4609, allocations: 3.153 MB / 0.4965 GB, free: 7.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007335/0.4616, allocations: 0.598 MB / 0.4971 GB, free: 7.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008211/0.4625, allocations: 168 kB / 0.4973 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004072/0.4629, allocations: 79.42 kB / 0.4973 GB, free: 7.023 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4629, allocations: 0 / 0.4973 GB, free: 7.023 MB / 414.1 MB Notification: Performance of Templates: time 0.03585/0.4987, allocations: 20.49 MB / 0.5174 GB, free: 2.738 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.531031455844641]