Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001022/0.001022, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.306/1.306, allocations: 205.1 MB / 225.1 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.001226/0.001226, allocations: 44.41 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.09008, allocations: 46.62 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01379/0.1039, allocations: 13.77 MB / 342.5 MB, free: 5.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009312/0.1132, allocations: 4.369 MB / 346.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.1159, allocations: 83.75 kB / 346.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006964/0.1229, allocations: 3.742 MB / 350.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005657/0.1286, allocations: 2.116 MB / 352.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.1305, allocations: 0.6824 MB / 353.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008101/0.1386, allocations: 4.412 MB / 357.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00637/0.145, allocations: 4.832 MB / 362.7 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.148, allocations: 1.916 MB / 364.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003529/0.1516, allocations: 2.589 MB / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007873/0.1524, allocations: 436 kB / 367.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002423/0.1548, allocations: 1.147 MB / 368.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.1569, allocations: 2.326 MB / 371.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.1598, allocations: 2.754 MB / 373.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1671/0.3268, allocations: 8.593 MB / 382.5 MB, free: 24.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3269, allocations: 0 / 382.5 MB, free: 24.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3269, allocations: 0.7812 kB / 382.5 MB, free: 24.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002967/0.3272, allocations: 3.969 kB / 382.5 MB, free: 24.22 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.02177/0.349, allocations: 6.423 MB / 388.9 MB, free: 22.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.349, allocations: 9.188 kB / 388.9 MB, free: 22.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007109/0.3562, allocations: 1.99 MB / 390.9 MB, free: 21.72 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005963/0.3621, allocations: 2.809 MB / 393.7 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.3624, allocations: 310.9 kB / 394 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/0.3634, allocations: 401.3 kB / 394.4 MB, free: 21.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/0.3837, allocations: 12.88 MB / 407.3 MB, free: 16.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001268/0.3838, allocations: 47.66 kB / 407.3 MB, free: 16.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004976/0.3843, allocations: 187 kB / 407.5 MB, free: 16.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003545/0.3879, allocations: 2.373 MB / 409.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/0.4119, allocations: 11.74 MB / 421.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07634/0.4883, allocations: 48.41 MB / 470 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01816/0.5065, allocations: 5.57 MB / 475.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004832/0.5114, allocations: 3.477 MB / 479.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007381/0.5121, allocations: 389.3 kB / 479.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.702e-05/0.5122, allocations: 51.88 kB / 479.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=221): time 5.861e-06/0.5122, allocations: 4 kB / 479.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=252): time 0.07582/0.588, allocations: 27.94 MB / 0.4956 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.779e-05/0.5882, allocations: 157.6 kB / 0.4957 GB, free: 14.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006163/0.5943, allocations: 4.603 MB / 0.5002 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006037/0.595, allocations: 61.7 kB / 0.5003 GB, free: 10.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.5972, allocations: 3.585 MB / 0.5038 GB, free: 6.504 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001206/0.5985, allocations: 0.9469 MB / 0.5047 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002019/0.6005, allocations: 1.501 MB / 0.5062 GB, free: 4.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.6006, allocations: 313.1 kB / 0.5065 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004733/0.6053, allocations: 3.449 MB / 0.5098 GB, free: 300 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007215/0.6126, allocations: 7.519 MB / 0.5172 GB, free: 6.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/0.6258, allocations: 11.82 MB / 0.5287 GB, free: 9.598 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.543e-05/0.6259, allocations: 46.91 kB / 0.5288 GB, free: 9.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.1795/0.8054, allocations: 11.89 MB / 0.5404 GB, free: 155.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.8056, allocations: 66.88 kB / 0.5404 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002819/0.8059, allocations: 142.9 kB / 0.5406 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003221/0.8091, allocations: 1.132 MB / 0.5417 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00704/0.8161, allocations: 1.798 MB / 0.5434 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007403/0.8236, allocations: 6.361 MB / 0.5496 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006131/0.8297, allocations: 425 kB / 0.5501 GB, free: 153.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/0.8309, allocations: 470.2 kB / 0.5505 GB, free: 153.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (875): * Single equations (assignments): 871 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003775/0.8346, allocations: 2.443 MB / 0.5529 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008902/0.8355, allocations: 415.9 kB / 0.5533 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008854/0.8444, allocations: 6.481 MB / 0.5596 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-05/0.8445, allocations: 27.44 kB / 0.5596 GB, free: 150.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.8445, allocations: 7.844 kB / 0.5596 GB, free: 150.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/0.8445, allocations: 11.44 kB / 0.5597 GB, free: 150.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01994/0.8645, allocations: 13.57 MB / 0.5729 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/0.8645, allocations: 4 kB / 0.5729 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002757/0.8673, allocations: 0.5771 MB / 0.5735 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/0.8696, allocations: 0.9469 MB / 0.5744 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003198/0.8699, allocations: 94.64 kB / 0.5745 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00604/0.876, allocations: 6.055 MB / 0.5804 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.876, allocations: 7.562 kB / 0.5804 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/0.889, allocations: 10.91 MB / 0.5911 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002739/0.8918, allocations: 0.9319 MB / 0.592 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008677/0.8927, allocations: 49.75 kB / 0.592 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/0.895, allocations: 179.1 kB / 0.5922 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/0.8954, allocations: 189.6 kB / 0.5924 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002425/0.8957, allocations: 111.9 kB / 0.5925 GB, free: 123.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003478/0.8992, allocations: 2.899 MB / 0.5953 GB, free: 120.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8992, allocations: 0 / 0.5953 GB, free: 120.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005753/0.905, allocations: 1.268 MB / 0.5966 GB, free: 119.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 221 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005118/0.9055, allocations: 193 kB / 0.5967 GB, free: 119.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009814/0.9153, allocations: 8.153 MB / 0.6047 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.9154, allocations: 4.188 kB / 0.6047 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003625/0.919, allocations: 3.157 MB / 0.6078 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/0.922, allocations: 0.5132 MB / 0.6083 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.938, allocations: 12.46 MB / 0.6205 GB, free: 94.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003118/0.9411, allocations: 3.806 MB / 0.6242 GB, free: 91.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004712/0.9459, allocations: 2.396 MB / 0.6265 GB, free: 88.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001351/0.9472, allocations: 435.1 kB / 0.6269 GB, free: 88.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.9472, allocations: 0 / 0.6269 GB, free: 88.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07952/1.027, allocations: 52.11 MB / 0.6778 GB, free: 36.2 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches