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.0008217/0.0008217, allocations: 93.72 kB / 17.3 MB, free: 6.391 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.0008057/0.0008057, allocations: 171.6 kB / 18.2 MB, free: 5.551 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.544/1.544, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0007191/0.000719, allocations: 23.98 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1657, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01117/0.177, allocations: 8.588 MB / 337.6 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005506/0.1825, allocations: 2.245 MB / 339.8 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001431/0.184, allocations: 31.88 kB / 339.8 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007966/0.1848, allocations: 254.2 kB / 340.1 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.1863, allocations: 412.9 kB / 340.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.1875, allocations: 0.5816 MB / 341.1 MB, free: 7.598 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002836/0.1904, allocations: 2.157 MB / 343.2 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.1919, allocations: 0.9998 MB / 344.2 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.1933, allocations: 0.5951 MB / 344.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008194/0.1942, allocations: 0.6802 MB / 345.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.1943, allocations: 80 kB / 345.6 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003042/0.1946, allocations: 131.9 kB / 345.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.1949, allocations: 294.7 kB / 346 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007099/0.1956, allocations: 0.7789 MB / 346.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.1981, allocations: 3.036 MB / 349.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1982, allocations: 0 / 349.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1982, allocations: 0 / 349.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.231e-05/0.1982, allocations: 0 / 349.8 MB, free: 14.77 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.003549/0.2018, allocations: 1.631 MB / 351.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.2019, allocations: 8.031 kB / 351.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.2022, allocations: 182.9 kB / 351.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.2035, allocations: 0.8419 MB / 352.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/0.2038, allocations: 240.7 kB / 352.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.204, allocations: 159.9 kB / 352.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003334/0.2074, allocations: 1.702 MB / 354.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.484e-05/0.2074, allocations: 3.906 kB / 354.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/0.2076, allocations: 64 kB / 354.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.2076, allocations: 36 kB / 354.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003357/0.211, allocations: 1.585 MB / 356.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/0.2214, allocations: 5.962 MB / 362.2 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/0.2235, allocations: 0.9675 MB / 363.2 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/0.2247, allocations: 0.5432 MB / 363.7 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.839e-05/0.2247, allocations: 20.86 kB / 363.8 MB, free: 460 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001301/0.2261, allocations: 0.6685 MB / 364.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 3.216e-06/0.2261, allocations: 4 kB / 364.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03641/0.2625, allocations: 9.859 MB / 374.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.2627, allocations: 299.7 kB / 374.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.264, allocations: 0.7818 MB / 375.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.2641, allocations: 53.7 kB / 375.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006332/0.2648, allocations: 0.6622 MB / 376.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003904/0.2652, allocations: 406.2 kB / 376.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.2653, allocations: 121.6 kB / 376.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002449/0.2656, allocations: 410.7 kB / 377 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.2678, allocations: 0.8511 MB / 377.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/0.2701, allocations: 1.173 MB / 379 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2077/0.4778, allocations: 1.716 MB / 380.7 MB, free: 51.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4779, allocations: 2.75 kB / 380.7 MB, free: 51.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005361/0.4832, allocations: 2.148 MB / 382.9 MB, free: 51.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.4833, allocations: 8.875 kB / 382.9 MB, free: 51.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.4833, allocations: 7.938 kB / 382.9 MB, free: 51.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004336/0.4838, allocations: 181.4 kB / 383.1 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.4855, allocations: 372.4 kB / 383.4 MB, free: 51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.4888, allocations: 4.47 MB / 387.9 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.4906, allocations: 203.1 kB / 388.1 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.4907, allocations: 51.33 kB / 388.2 MB, free: 46.7 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.000861/0.4916, allocations: 388.9 kB / 388.5 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.4918, allocations: 103.1 kB / 388.6 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.4921, allocations: 133.6 kB / 388.8 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.4921, allocations: 16.61 kB / 388.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4921, allocations: 3.688 kB / 388.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.4921, allocations: 6.703 kB / 388.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008619/0.5008, allocations: 4.537 MB / 393.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/0.5008, allocations: 10.41 kB / 393.3 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.502, allocations: 283.5 kB / 393.6 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006095/0.5026, allocations: 365.3 kB / 394 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-05/0.5027, allocations: 41.81 kB / 394 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/0.5041, allocations: 2.182 MB / 396.2 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/0.5042, allocations: 19.84 kB / 396.2 MB, free: 41.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005179/0.5093, allocations: 2.601 MB / 398.8 MB, free: 40.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/0.5102, allocations: 324.1 kB / 399.1 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.5104, allocations: 46 kB / 399.2 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.5116, allocations: 179.7 kB / 399.4 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003853/0.5119, allocations: 165.5 kB / 399.5 MB, free: 40.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.5121, allocations: 48.77 kB / 399.6 MB, free: 40.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008827/0.513, allocations: 0.5357 MB / 400.1 MB, free: 40 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.52e-07/0.513, allocations: 0 / 400.1 MB, free: 40 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001511/0.5145, allocations: 341.7 kB / 400.4 MB, free: 39.96 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.000326/0.5148, allocations: 180.9 kB / 400.6 MB, free: 39.83 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004184/0.519, allocations: 2.102 MB / 402.7 MB, free: 38.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/0.5191, allocations: 3.906 kB / 402.7 MB, free: 38.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/0.5213, allocations: 1.09 MB / 403.8 MB, free: 38.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.5235, allocations: 198.4 kB / 404 MB, free: 38.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005863/0.5294, allocations: 3.904 MB / 407.9 MB, free: 34.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.53, allocations: 1.178 MB / 409.1 MB, free: 33.6 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009549/0.531, allocations: 161.8 kB / 409.2 MB, free: 33.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.5313, allocations: 79.42 kB / 409.3 MB, free: 33.36 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5313, allocations: 0 / 409.3 MB, free: 33.36 MB / 318.1 MB Notification: Performance of Templates: time 0.02572/0.557, allocations: 17.45 MB / 426.8 MB, free: 15.93 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 -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/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