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.001577/0.001577, allocations: 108.6 kB / 17.93 MB, free: 5.535 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.001669/0.001669, allocations: 189.8 kB / 18.86 MB, free: 4.613 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.379/1.379, allocations: 205.1 MB / 224.7 MB, free: 12.43 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.001157/0.001157, allocations: 51.92 kB / 280.8 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08833, allocations: 46.62 MB / 327.4 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00956/0.09793, allocations: 9.111 MB / 336.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004737/0.1027, allocations: 2.26 MB / 338.8 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.1044, allocations: 31.88 kB / 338.9 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.1057, allocations: 254.3 kB / 339.1 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.1078, allocations: 412.9 kB / 339.5 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.1093, allocations: 0.5894 MB / 340.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003219/0.1126, allocations: 2.341 MB / 342.4 MB, free: 5.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.1143, allocations: 1.119 MB / 343.6 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.1156, allocations: 0.845 MB / 344.4 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009801/0.1166, allocations: 0.8909 MB / 345.3 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00031/0.117, allocations: 272 kB / 345.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004217/0.1174, allocations: 327.9 kB / 345.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004003/0.1178, allocations: 0.4948 MB / 346.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008795/0.1187, allocations: 0.9842 MB / 347.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.121, allocations: 2.798 MB / 350.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.121, allocations: 0 / 350.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.888e-06/0.121, allocations: 0 / 350.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.121e-05/0.1211, allocations: 0 / 350.2 MB, free: 13.93 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.003771/0.1249, allocations: 1.928 MB / 352.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1249, allocations: 8.031 kB / 352.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.1252, allocations: 178.9 kB / 352.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.1263, allocations: 0.838 MB / 353.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002541/0.1266, allocations: 228.7 kB / 353.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.1268, allocations: 167.8 kB / 353.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003039/0.1299, allocations: 1.682 MB / 355.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.442e-05/0.13, allocations: 12 kB / 355.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.1301, allocations: 60 kB / 355.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.817e-05/0.1301, allocations: 40 kB / 355.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003151/0.1333, allocations: 1.562 MB / 356.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009232/0.1425, allocations: 5.891 MB / 362.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.1445, allocations: 0.9364 MB / 363.7 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000996/0.1455, allocations: 0.5315 MB / 364.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.846e-05/0.1456, allocations: 13 kB / 364.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.1468, allocations: 0.6606 MB / 364.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.755e-06/0.1469, allocations: 0 / 364.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03327/0.1801, allocations: 8.915 MB / 373.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.1804, allocations: 299.7 kB / 374.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.1815, allocations: 0.7934 MB / 374.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.1817, allocations: 53.7 kB / 374.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005412/0.1822, allocations: 0.6622 MB / 375.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003665/0.1826, allocations: 402.2 kB / 376 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004785/0.1831, allocations: 247.5 kB / 376.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.1833, allocations: 414.7 kB / 376.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001777/0.1851, allocations: 0.8043 MB / 377.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002027/0.1871, allocations: 1.138 MB / 378.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1688/0.3559, allocations: 1.642 MB / 380.2 MB, free: 52.04 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.356, allocations: 1.375 kB / 380.2 MB, free: 52.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004919/0.3609, allocations: 2.076 MB / 382.3 MB, free: 51.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.361, allocations: 12.44 kB / 382.3 MB, free: 51.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/0.361, allocations: 5.438 kB / 382.3 MB, free: 51.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004241/0.3614, allocations: 181.4 kB / 382.5 MB, free: 51.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.3631, allocations: 347.9 kB / 382.8 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.3664, allocations: 4.816 MB / 387.6 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.3681, allocations: 164.8 kB / 387.8 MB, free: 46.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/0.3683, allocations: 51.5 kB / 387.9 MB, free: 46.76 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.0008142/0.3691, allocations: 389 kB / 388.2 MB, free: 46.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.3694, allocations: 111 kB / 388.3 MB, free: 46.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.3697, allocations: 135.7 kB / 388.5 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.3697, allocations: 12.03 kB / 388.5 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.3697, allocations: 5.688 kB / 388.5 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.3697, allocations: 6.188 kB / 388.5 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008572/0.3783, allocations: 4.411 MB / 392.9 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/0.3784, allocations: 10.12 kB / 392.9 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.3795, allocations: 266 kB / 393.2 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005958/0.3802, allocations: 366.6 kB / 393.5 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.3803, allocations: 36.7 kB / 393.6 MB, free: 43.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.3817, allocations: 2.279 MB / 395.8 MB, free: 41.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.3818, allocations: 14.28 kB / 395.9 MB, free: 41.87 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004529/0.3863, allocations: 2.499 MB / 398.4 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006669/0.387, allocations: 323.2 kB / 398.7 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.3872, allocations: 44.06 kB / 398.7 MB, free: 40.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.3883, allocations: 142.5 kB / 398.9 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003376/0.3886, allocations: 169.3 kB / 399 MB, free: 40.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.585e-05/0.3887, allocations: 44.66 kB / 399.1 MB, free: 40.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007265/0.3894, allocations: 0.5337 MB / 399.6 MB, free: 40 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3895, allocations: 0 / 399.6 MB, free: 40 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001467/0.3909, allocations: 344.2 kB / 399.9 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.0003616/0.3913, allocations: 187.7 kB / 400.1 MB, free: 39.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004239/0.3956, allocations: 2.082 MB / 402.2 MB, free: 38.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/0.3956, allocations: 3.969 kB / 402.2 MB, free: 38.82 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.3975, allocations: 1.026 MB / 403.2 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.001259/0.3988, allocations: 198.3 kB / 403.4 MB, free: 38.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.4037, allocations: 3.81 MB / 407.2 MB, free: 35.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.4043, allocations: 1.175 MB / 408.4 MB, free: 34.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.4049, allocations: 91.42 kB / 408.5 MB, free: 34.07 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4049, allocations: 0 / 408.5 MB, free: 34.07 MB / 318.1 MB Notification: Performance of Templates: time 0.03133/0.4362, allocations: 36.1 MB / 444.6 MB, free: 13.91 MB / 334.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","../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