Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001166/0.001166, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001394/0.001394, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002714, allocations: 5.969 kB / 300.8 MB, free: 5.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1117, allocations: 50.43 MB / 351.3 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.008248/0.12, allocations: 8.135 MB / 359.4 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004627/0.1247, allocations: 2.205 MB / 361.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.1265, allocations: 31.88 kB / 361.6 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.1277, allocations: 230.3 kB / 361.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.13, allocations: 408.8 kB / 362.2 MB, free: 376 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.1315, allocations: 355.5 kB / 362.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003663/0.1352, allocations: 2.076 MB / 364.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002299/0.1375, allocations: 0.8171 MB / 365.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002016/0.1396, allocations: 0.5797 MB / 366.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.1415, allocations: 0.6532 MB / 366.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000637/0.1421, allocations: 80 kB / 366.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008724/0.143, allocations: 124 kB / 366.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005242/0.1436, allocations: 278.9 kB / 367.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007664/0.1443, allocations: 344.9 kB / 367.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003083/0.1474, allocations: 2.668 MB / 370.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/0.1475, allocations: 4 kB / 370.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1475, allocations: 0 / 370.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001369/0.1476, allocations: 0 / 370.2 MB, free: 8.352 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.004376/0.152, allocations: 1.643 MB / 371.8 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.1521, allocations: 12.03 kB / 371.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006203/0.1527, allocations: 181.9 kB / 372 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.1539, allocations: 0.8022 MB / 372.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.1541, allocations: 236.1 kB / 373.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/0.1544, allocations: 159.9 kB / 373.2 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003093/0.1575, allocations: 1.686 MB / 374.9 MB, free: 3.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.1575, allocations: 11.95 kB / 374.9 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.1577, allocations: 67.98 kB / 375 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.1577, allocations: 36 kB / 375 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003021/0.1607, allocations: 1.577 MB / 376.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008176/0.1689, allocations: 5.954 MB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.1708, allocations: 0.9481 MB / 383.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009711/0.1718, allocations: 0.5356 MB / 384 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.596e-05/0.1718, allocations: 12.94 kB / 384.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.173, allocations: 0.6685 MB / 384.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.585e-06/0.173, allocations: 0 / 384.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03152/0.2046, allocations: 9.854 MB / 394.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.2047, allocations: 307.8 kB / 394.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.2061, allocations: 0.7817 MB / 395.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.2062, allocations: 53.7 kB / 395.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006789/0.2069, allocations: 0.6584 MB / 396.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004326/0.2073, allocations: 410.1 kB / 396.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.2074, allocations: 28 kB / 396.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.2077, allocations: 410.7 kB / 397.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.2097, allocations: 0.8433 MB / 398 MB, free: 11.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.2117, allocations: 1.169 MB / 399.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001854/0.2136, allocations: 0.8262 MB / 400 MB, free: 9.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.2136, allocations: 0 / 400 MB, free: 9.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004314/0.2179, allocations: 2.131 MB / 402.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.218, allocations: 8 kB / 402.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.218, allocations: 8 kB / 402.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004123/0.2184, allocations: 178.5 kB / 402.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.22, allocations: 383.4 kB / 402.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003762/0.2238, allocations: 4.454 MB / 407.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.2252, allocations: 207.8 kB / 407.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.2253, allocations: 52 kB / 407.4 MB, free: 1.902 MB / 334.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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007395/0.226, allocations: 391.3 kB / 407.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.2262, allocations: 106.8 kB / 407.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.2265, allocations: 134 kB / 408.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.2266, allocations: 12 kB / 408.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.2266, allocations: 0 / 408.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.2266, allocations: 7.969 kB / 408.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007825/0.2344, allocations: 4.533 MB / 412.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/0.2345, allocations: 12.03 kB / 412.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.2356, allocations: 287.6 kB / 412.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006206/0.2363, allocations: 361.5 kB / 413.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.2364, allocations: 39.98 kB / 413.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.2381, allocations: 2.173 MB / 415.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.2381, allocations: 15.94 kB / 415.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004718/0.2429, allocations: 2.598 MB / 418.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005688/0.2435, allocations: 323.7 kB / 418.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/0.2437, allocations: 44 kB / 418.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.2448, allocations: 175.8 kB / 418.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.2451, allocations: 184.2 kB / 418.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.484e-05/0.2452, allocations: 44 kB / 418.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007551/0.246, allocations: 0.5303 MB / 419.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.246, allocations: 0 / 419.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0013/0.2473, allocations: 347.9 kB / 419.7 MB, free: 5.098 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000307/0.2476, allocations: 179.6 kB / 419.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003979/0.2516, allocations: 2.092 MB / 422 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.2516, allocations: 5.812 kB / 422 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002116/0.2537, allocations: 1.082 MB / 423.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.255, allocations: 197.8 kB / 423.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1947/0.4497, allocations: 3.743 MB / 427 MB, free: 63.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008505/0.4506, allocations: 1.177 MB / 428.2 MB, free: 62.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.4517, allocations: 164.3 kB / 428.3 MB, free: 62.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.4521, allocations: 76.41 kB / 428.4 MB, free: 62.34 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4521, allocations: 3.938 kB / 428.4 MB, free: 62.34 MB / 350.1 MB Notification: Performance of Templates: time 0.03084/0.483, allocations: 16.99 MB / 445.4 MB, free: 56.24 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches