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.001231/0.001232, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.0009825/0.0009825, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.452/1.452, allocations: 205.1 MB / 224.1 MB, free: 12.42 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.00146/0.00146, allocations: 59.91 kB / 280.2 MB, free: 3.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1027, allocations: 46.61 MB / 326.8 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01012/0.1128, allocations: 9.122 MB / 335.9 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.1176, allocations: 2.252 MB / 338.2 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.1191, allocations: 31.88 kB / 338.2 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.1204, allocations: 250.2 kB / 338.4 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002048/0.1224, allocations: 412.9 kB / 338.8 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.1241, allocations: 0.5933 MB / 339.4 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002962/0.1271, allocations: 2.337 MB / 341.8 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.1287, allocations: 1.119 MB / 342.9 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001202/0.1299, allocations: 0.8568 MB / 343.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.1311, allocations: 0.8793 MB / 344.6 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.1316, allocations: 276 kB / 344.9 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.1321, allocations: 320 kB / 345.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003984/0.1325, allocations: 0.4987 MB / 345.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007923/0.1333, allocations: 0.9842 MB / 346.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002784/0.1361, allocations: 3.291 MB / 350 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1361, allocations: 0 / 350 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1361, allocations: 0 / 350 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.657e-05/0.1361, allocations: 0 / 350 MB, free: 13.43 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.003363/0.1395, allocations: 1.935 MB / 351.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1396, allocations: 11.97 kB / 351.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002791/0.1399, allocations: 178.9 kB / 352.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.141, allocations: 0.838 MB / 352.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.1413, allocations: 236.7 kB / 353.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.1415, allocations: 159.8 kB / 353.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.1445, allocations: 1.682 MB / 355 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/0.1446, allocations: 7.984 kB / 355 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.1447, allocations: 64 kB / 355.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.062e-05/0.1448, allocations: 40 kB / 355.1 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/0.1479, allocations: 1.558 MB / 356.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008824/0.1567, allocations: 5.895 MB / 362.6 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001847/0.1586, allocations: 0.9364 MB / 363.5 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009305/0.1596, allocations: 0.5276 MB / 364 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.755e-05/0.1596, allocations: 9 kB / 364.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.1608, allocations: 0.6567 MB / 364.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.154e-06/0.1608, allocations: 3.938 kB / 364.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03298/0.1938, allocations: 8.922 MB / 373.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/0.194, allocations: 299.8 kB / 373.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.1954, allocations: 0.7857 MB / 374.7 MB, free: 4.062 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.1956, allocations: 53.7 kB / 374.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007598/0.1963, allocations: 0.6661 MB / 375.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003773/0.1967, allocations: 402.2 kB / 375.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004667/0.1972, allocations: 243.5 kB / 376.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1974, allocations: 410.7 kB / 376.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/0.1991, allocations: 0.8082 MB / 377.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.2011, allocations: 1.134 MB / 378.4 MB, free: 220 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2263/0.4274, allocations: 1.651 MB / 380.1 MB, free: 52.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4274, allocations: 2.312 kB / 380.1 MB, free: 52.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005032/0.4325, allocations: 2.073 MB / 382.1 MB, free: 51.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.4325, allocations: 11.81 kB / 382.1 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.4326, allocations: 7.125 kB / 382.2 MB, free: 51.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004366/0.433, allocations: 174.2 kB / 382.3 MB, free: 51.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.4348, allocations: 353.7 kB / 382.7 MB, free: 51.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/0.438, allocations: 4.823 MB / 387.5 MB, free: 46.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.4396, allocations: 166.3 kB / 387.7 MB, free: 46.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4397, allocations: 50.48 kB / 387.7 MB, free: 46.63 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.0007961/0.4405, allocations: 384.3 kB / 388.1 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.4407, allocations: 107.3 kB / 388.2 MB, free: 46.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.441, allocations: 137.5 kB / 388.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.441, allocations: 16 kB / 388.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.441, allocations: 1.75 kB / 388.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-05/0.441, allocations: 6.672 kB / 388.3 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007964/0.449, allocations: 4.416 MB / 392.8 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.449, allocations: 10.22 kB / 392.8 MB, free: 44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.4502, allocations: 259 kB / 393 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006135/0.4508, allocations: 369.5 kB / 393.4 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-05/0.4509, allocations: 36.48 kB / 393.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.4527, allocations: 2.289 MB / 395.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.4527, allocations: 15.66 kB / 395.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004896/0.4576, allocations: 2.499 MB / 398.2 MB, free: 40.44 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006143/0.4582, allocations: 318.3 kB / 398.5 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001891/0.4584, allocations: 44.73 kB / 398.6 MB, free: 40.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4595, allocations: 140 kB / 398.7 MB, free: 40.17 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/0.4598, allocations: 165.7 kB / 398.9 MB, free: 40.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.644e-05/0.4599, allocations: 44.75 kB / 398.9 MB, free: 40.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000882/0.4608, allocations: 0.5339 MB / 399.4 MB, free: 39.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4608, allocations: 0 / 399.4 MB, free: 39.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001639/0.4625, allocations: 344.4 kB / 399.8 MB, free: 39.83 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.0004488/0.4629, allocations: 184.7 kB / 400 MB, free: 39.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00474/0.4677, allocations: 2.087 MB / 402.1 MB, free: 38.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.4677, allocations: 3.875 kB / 402.1 MB, free: 38.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.4697, allocations: 1.057 MB / 403.1 MB, free: 38.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.4709, allocations: 197.1 kB / 403.3 MB, free: 38.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.4759, allocations: 3.759 MB / 407.1 MB, free: 34.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.4764, allocations: 1.178 MB / 408.2 MB, free: 33.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007906/0.4772, allocations: 168.4 kB / 408.4 MB, free: 33.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.4776, allocations: 79.44 kB / 408.5 MB, free: 33.47 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4776, allocations: 0 / 408.5 MB, free: 33.47 MB / 318.1 MB Notification: Performance of Templates: time 0.02571/0.5033, allocations: 18.48 MB / 427 MB, free: 15 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