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.001101/0.001101, allocations: 109.4 kB / 18.34 MB, free: 4.828 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.001097/0.001097, allocations: 192.1 kB / 19.28 MB, free: 3.898 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.335/1.335, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001252/0.001252, allocations: 55.92 kB / 282.1 MB, free: 2.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.08285, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01093/0.09382, allocations: 9.18 MB / 337.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004614/0.09847, allocations: 2.295 MB / 340.2 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.09976, allocations: 35.88 kB / 340.2 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009991/0.1008, allocations: 321.1 kB / 340.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001492/0.1023, allocations: 499.7 kB / 341 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1035, allocations: 0.6555 MB / 341.7 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.1056, allocations: 2.352 MB / 344.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.107, allocations: 1.115 MB / 345.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008997/0.1079, allocations: 0.849 MB / 346 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008497/0.1087, allocations: 0.8871 MB / 346.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002728/0.109, allocations: 272 kB / 347.2 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003807/0.1094, allocations: 324 kB / 347.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.1098, allocations: 0.5026 MB / 348 MB, free: 360 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008234/0.1106, allocations: 0.9763 MB / 349 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002556/0.1132, allocations: 3.322 MB / 352.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1132, allocations: 0 / 352.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1132, allocations: 0 / 352.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.1133, allocations: 0 / 352.3 MB, free: 12.04 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.00359/0.1169, allocations: 1.924 MB / 354.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1169, allocations: 12.03 kB / 354.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.1172, allocations: 178.9 kB / 354.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.1184, allocations: 0.8497 MB / 355.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002842/0.1187, allocations: 236.7 kB / 355.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002371/0.119, allocations: 159.8 kB / 355.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002909/0.1219, allocations: 1.682 MB / 357.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.378e-05/0.1219, allocations: 7.984 kB / 357.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.1221, allocations: 68 kB / 357.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.812e-05/0.1221, allocations: 40 kB / 357.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.1252, allocations: 1.558 MB / 359 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008326/0.1335, allocations: 5.821 MB / 364.8 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.1357, allocations: 0.9403 MB / 365.7 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.1368, allocations: 0.52 MB / 366.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.1369, allocations: 20.94 kB / 366.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001199/0.1381, allocations: 0.6645 MB / 367 MB, free: 12.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.474e-06/0.1381, allocations: 0 / 367 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03156/0.1697, allocations: 8.918 MB / 375.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.1698, allocations: 299.7 kB / 376.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/0.171, allocations: 0.7778 MB / 376.9 MB, free: 2.742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.1712, allocations: 57.64 kB / 377 MB, free: 2.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005487/0.1717, allocations: 0.6661 MB / 377.7 MB, free: 2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000338/0.1721, allocations: 410.2 kB / 378.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004881/0.1726, allocations: 239.5 kB / 378.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.1728, allocations: 414.7 kB / 378.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/0.1746, allocations: 0.8159 MB / 379.5 MB, free: 128 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1299/0.3045, allocations: 1.13 MB / 380.7 MB, free: 52.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003276/0.3078, allocations: 1.646 MB / 382.3 MB, free: 51.83 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3078, allocations: 2.125 kB / 382.3 MB, free: 51.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004081/0.3119, allocations: 2.07 MB / 384.4 MB, free: 51.03 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3119, allocations: 7.312 kB / 384.4 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.3119, allocations: 7.531 kB / 384.4 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/0.3123, allocations: 186.1 kB / 384.6 MB, free: 50.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.3139, allocations: 353.5 kB / 384.9 MB, free: 50.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.3171, allocations: 4.816 MB / 389.7 MB, free: 46.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.3186, allocations: 161.3 kB / 389.9 MB, free: 46.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.3187, allocations: 51.33 kB / 389.9 MB, free: 46.27 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.0007208/0.3194, allocations: 385.3 kB / 390.3 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.3196, allocations: 110.9 kB / 390.4 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002087/0.3198, allocations: 133.7 kB / 390.5 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3199, allocations: 16.03 kB / 390.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3199, allocations: 1.125 kB / 390.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.3199, allocations: 11 kB / 390.6 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007358/0.3273, allocations: 4.402 MB / 395 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/0.3273, allocations: 9.516 kB / 395 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.3284, allocations: 261.6 kB / 395.2 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004703/0.3289, allocations: 369.9 kB / 395.6 MB, free: 43.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-05/0.329, allocations: 43.59 kB / 395.6 MB, free: 43.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3302, allocations: 2.274 MB / 397.9 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/0.3302, allocations: 18.66 kB / 397.9 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004051/0.3343, allocations: 2.493 MB / 400.4 MB, free: 40.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004573/0.3348, allocations: 326.7 kB / 400.8 MB, free: 39.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.3349, allocations: 45.78 kB / 400.8 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009551/0.3359, allocations: 139.2 kB / 400.9 MB, free: 39.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.3362, allocations: 166.2 kB / 401.1 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.19e-05/0.3363, allocations: 45.61 kB / 401.1 MB, free: 39.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005833/0.3368, allocations: 0.5325 MB / 401.7 MB, free: 39.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3368, allocations: 0 / 401.7 MB, free: 39.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001096/0.338, allocations: 347.2 kB / 402 MB, free: 39.46 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.0002575/0.3382, allocations: 177.9 kB / 402.2 MB, free: 39.33 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003273/0.3415, allocations: 2.04 MB / 404.2 MB, free: 38.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3415, allocations: 4.531 kB / 404.2 MB, free: 38.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.3434, allocations: 1.06 MB / 405.3 MB, free: 37.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.3445, allocations: 199.4 kB / 405.5 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.349, allocations: 3.075 MB / 408.6 MB, free: 34.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.3495, allocations: 1.175 MB / 409.7 MB, free: 33.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007052/0.3502, allocations: 168.3 kB / 409.9 MB, free: 33.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.3506, allocations: 79.44 kB / 410 MB, free: 33.09 MB / 318.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3506, allocations: 4 kB / 410 MB, free: 33.08 MB / 318.1 MB Notification: Performance of Templates: time 0.02336/0.374, allocations: 18.71 MB / 428.7 MB, free: 14.39 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 -s gbode -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