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.001449/0.001449, allocations: 111.9 kB / 18.37 MB, free: 4.73 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.001569/0.001569, allocations: 180.5 kB / 19.29 MB, free: 3.812 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.39/1.39, 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.00119/0.00119, allocations: 51.94 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08804, allocations: 46.62 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.1932/0.2813, allocations: 9.17 MB / 385 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005349/0.2867, allocations: 2.309 MB / 387.3 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001884/0.2887, allocations: 31.56 kB / 387.3 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.2899, allocations: 324.5 kB / 387.6 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002293/0.2922, allocations: 497.3 kB / 388.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.2939, allocations: 0.6486 MB / 388.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.2972, allocations: 2.344 MB / 391.1 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.299, allocations: 1.112 MB / 392.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.3009, allocations: 0.8446 MB / 393 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.3023, allocations: 0.8864 MB / 393.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004662/0.3028, allocations: 274.8 kB / 394.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007041/0.3035, allocations: 329.5 kB / 394.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004299/0.3039, allocations: 0.499 MB / 395 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.3051, allocations: 0.9724 MB / 396 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004849/0.3099, allocations: 3.337 MB / 399.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.31, allocations: 0 / 399.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.31, allocations: 0 / 399.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.905e-05/0.3101, allocations: 1.344 kB / 399.3 MB, free: 1.352 MB / 318.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.004479/0.3146, allocations: 1.921 MB / 401.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.3146, allocations: 9.438 kB / 401.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000428/0.3151, allocations: 176.6 kB / 401.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001526/0.3166, allocations: 0.8471 MB / 402.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/0.3169, allocations: 236 kB / 402.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002564/0.3172, allocations: 160.8 kB / 402.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00339/0.3206, allocations: 1.683 MB / 404.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.966e-05/0.3207, allocations: 10.64 kB / 404.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/0.3208, allocations: 61.75 kB / 404.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.443e-05/0.3209, allocations: 37.12 kB / 404.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003728/0.3246, allocations: 1.565 MB / 406 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01157/0.3362, allocations: 5.832 MB / 411.9 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.3385, allocations: 0.9367 MB / 412.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.3398, allocations: 0.5235 MB / 413.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.3399, allocations: 13.56 kB / 413.3 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/0.3413, allocations: 0.6595 MB / 414 MB, free: 7.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=90): time 3.046e-06/0.3413, allocations: 1.125 kB / 414 MB, free: 7.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.03635/0.3777, allocations: 8.927 MB / 422.9 MB, free: 68 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.3779, allocations: 299.8 kB / 423.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.3792, allocations: 0.7855 MB / 424 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002194/0.3794, allocations: 53.7 kB / 424 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005835/0.38, allocations: 0.6624 MB / 424.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004293/0.3805, allocations: 410.1 kB / 425.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004884/0.381, allocations: 247.5 kB / 425.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.3812, allocations: 406.7 kB / 425.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001994/0.3832, allocations: 0.8159 MB / 426.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002316/0.3855, allocations: 1.126 MB / 427.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003773/0.3893, allocations: 1.65 MB / 429.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.3894, allocations: 11.88 kB / 429.4 MB, free: 9.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005047/0.3944, allocations: 2.068 MB / 431.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.3945, allocations: 8 kB / 431.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.3945, allocations: 4 kB / 431.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004465/0.395, allocations: 182.4 kB / 431.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/0.3967, allocations: 355.5 kB / 432 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.4011, allocations: 4.807 MB / 436.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.4031, allocations: 171.8 kB / 436.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/0.4032, allocations: 52 kB / 437 MB, free: 1.23 MB / 350.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.0008551/0.4041, allocations: 387.2 kB / 437.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.4044, allocations: 110.7 kB / 437.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002877/0.4047, allocations: 130 kB / 437.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4047, allocations: 12 kB / 437.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.4047, allocations: 4 kB / 437.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.4047, allocations: 7.969 kB / 437.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008058/0.4128, allocations: 4.408 MB / 442 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.4128, allocations: 16.23 kB / 442 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.414, allocations: 263.6 kB / 442.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005829/0.4146, allocations: 361.5 kB / 442.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.4147, allocations: 39.98 kB / 442.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.4166, allocations: 2.275 MB / 445 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.4166, allocations: 15.92 kB / 445 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004994/0.4216, allocations: 2.494 MB / 447.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006909/0.4223, allocations: 323.7 kB / 447.8 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.4225, allocations: 44 kB / 447.8 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.4237, allocations: 139.8 kB / 448 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003455/0.424, allocations: 172.2 kB / 448.1 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.921e-05/0.4241, allocations: 51.92 kB / 448.2 MB, free: 5.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007691/0.4249, allocations: 0.5303 MB / 448.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4249, allocations: 0 / 448.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0014/0.4263, allocations: 344 kB / 449.1 MB, free: 4.598 MB / 366.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.0003657/0.4267, allocations: 171.7 kB / 449.2 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004468/0.4312, allocations: 2.051 MB / 451.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/0.4312, allocations: 4 kB / 451.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/0.4335, allocations: 1.028 MB / 452.3 MB, free: 1.297 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.435, allocations: 192.8 kB / 452.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006567/0.4416, allocations: 3.147 MB / 455.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008605/0.4425, allocations: 1.171 MB / 456.8 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006272/0.4432, allocations: 91.42 kB / 456.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4432, allocations: 0 / 456.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of Templates: time 0.04137/0.4846, allocations: 36.12 MB / 493 MB, free: 8.312 MB / 414.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 -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