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.001235/0.001235, allocations: 107.6 kB / 17.15 MB, free: 6.332 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.001236/0.001236, allocations: 198 kB / 18.07 MB, free: 5.434 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.495/1.495, allocations: 205.1 MB / 223.9 MB, free: 12.41 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.001135/0.001135, allocations: 47.88 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 46.63 MB / 326.6 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01079/0.1179, allocations: 9.114 MB / 335.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006862/0.1248, allocations: 2.264 MB / 338 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002322/0.1273, allocations: 31.88 kB / 338 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001274/0.1286, allocations: 246.3 kB / 338.3 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002678/0.1313, allocations: 416.8 kB / 338.7 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.1329, allocations: 0.5816 MB / 339.3 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003204/0.1361, allocations: 2.161 MB / 341.4 MB, free: 6.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.1378, allocations: 1.019 MB / 342.4 MB, free: 4.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.1392, allocations: 0.6888 MB / 343.1 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009999/0.1402, allocations: 0.7934 MB / 343.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000221/0.1404, allocations: 128 kB / 344 MB, free: 3.324 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003885/0.1408, allocations: 172 kB / 344.2 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003408/0.1412, allocations: 362.7 kB / 344.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009599/0.1421, allocations: 0.8474 MB / 345.4 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003318/0.1455, allocations: 3.142 MB / 348.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1455, allocations: 4 kB / 348.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1455, allocations: 0 / 348.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.405e-05/0.1456, allocations: 0 / 348.6 MB, free: 14.79 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.004542/0.1502, allocations: 1.924 MB / 350.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.1502, allocations: 8.031 kB / 350.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.1506, allocations: 178.9 kB / 350.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.1519, allocations: 0.838 MB / 351.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002701/0.1522, allocations: 232.7 kB / 351.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.1524, allocations: 159.8 kB / 351.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003221/0.1557, allocations: 1.686 MB / 353.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.671e-05/0.1557, allocations: 11.94 kB / 353.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.1559, allocations: 60 kB / 353.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.211e-05/0.1559, allocations: 36 kB / 353.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/0.1592, allocations: 1.554 MB / 355.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009822/0.1691, allocations: 5.907 MB / 361.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.1711, allocations: 0.9403 MB / 362.1 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.1721, allocations: 0.5276 MB / 362.6 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.379e-05/0.1722, allocations: 9 kB / 362.6 MB, free: 352 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.1735, allocations: 0.6568 MB / 363.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=90): time 2.534e-06/0.1735, allocations: 4 kB / 363.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.03354/0.207, allocations: 8.926 MB / 372.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001848/0.2073, allocations: 299.7 kB / 372.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.2085, allocations: 0.7857 MB / 373.3 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.2087, allocations: 57.69 kB / 373.3 MB, free: 5.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005759/0.2092, allocations: 0.6583 MB / 374 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.2096, allocations: 406.2 kB / 374.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004649/0.2101, allocations: 243.4 kB / 374.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.2103, allocations: 414.7 kB / 375 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.212, allocations: 0.8082 MB / 375.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/0.2141, allocations: 1.138 MB / 377 MB, free: 1.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.199/0.4131, allocations: 1.642 MB / 378.6 MB, free: 51.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.4132, allocations: 7 kB / 378.6 MB, free: 51.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005536/0.4187, allocations: 2.071 MB / 380.7 MB, free: 51.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.4188, allocations: 8.734 kB / 380.7 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.273e-05/0.4188, allocations: 6.594 kB / 380.7 MB, free: 51.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005943/0.4194, allocations: 179.4 kB / 380.9 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.4213, allocations: 350.6 kB / 381.2 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/0.4244, allocations: 4.437 MB / 385.7 MB, free: 47.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/0.4261, allocations: 173.9 kB / 385.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.4262, allocations: 50.31 kB / 385.9 MB, free: 47.1 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.0007091/0.4269, allocations: 392.1 kB / 386.3 MB, free: 46.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.4271, allocations: 106.7 kB / 386.4 MB, free: 46.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.4273, allocations: 134.2 kB / 386.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.4274, allocations: 11.84 kB / 386.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.4274, allocations: 1.672 kB / 386.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.4274, allocations: 10.78 kB / 386.5 MB, free: 46.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008834/0.4362, allocations: 4.41 MB / 390.9 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/0.4363, allocations: 13.94 kB / 391 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/0.4374, allocations: 260.7 kB / 391.2 MB, free: 44.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007441/0.4382, allocations: 371 kB / 391.6 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.4383, allocations: 40.45 kB / 391.6 MB, free: 44.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001632/0.4399, allocations: 2.17 MB / 393.8 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/0.44, allocations: 14.64 kB / 393.8 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.4444, allocations: 2.502 MB / 396.3 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005677/0.445, allocations: 323.4 kB / 396.6 MB, free: 40.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.4452, allocations: 43.69 kB / 396.7 MB, free: 40.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009783/0.4461, allocations: 136.8 kB / 396.8 MB, free: 40.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/0.4465, allocations: 164.8 kB / 396.9 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.261e-05/0.4466, allocations: 45.34 kB / 397 MB, free: 40.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007752/0.4474, allocations: 0.5347 MB / 397.5 MB, free: 40.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4474, allocations: 0 / 397.5 MB, free: 40.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001407/0.4488, allocations: 344.2 kB / 397.9 MB, free: 40.43 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.0003195/0.4491, allocations: 193.5 kB / 398.1 MB, free: 40.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003966/0.4531, allocations: 2.024 MB / 400.1 MB, free: 39.3 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.4531, allocations: 0 / 400.1 MB, free: 39.3 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.455, allocations: 1.054 MB / 401.1 MB, free: 38.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.4562, allocations: 193.7 kB / 401.3 MB, free: 38.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.4611, allocations: 3.76 MB / 405.1 MB, free: 36.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.4617, allocations: 1.176 MB / 406.3 MB, free: 35.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008199/0.4625, allocations: 166.5 kB / 406.4 MB, free: 35.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.4628, allocations: 81.39 kB / 406.5 MB, free: 35.21 MB / 318.1 MB Notification: Performance of SimCode: time 1.353e-06/0.4628, allocations: 0 / 406.5 MB, free: 35.21 MB / 318.1 MB Notification: Performance of Templates: time 0.02357/0.4864, allocations: 17.7 MB / 424.2 MB, free: 17.66 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