Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001463/0.001463, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001155, allocations: 100.2 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003901, allocations: 12 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3342, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.4963, allocations: 99 MB / 473.5 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.4967, allocations: 95.95 kB / 473.6 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.644/1.141, allocations: 98.12 MB / 0.5584 GB, free: 57.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.141, allocations: 7.938 kB / 0.5584 GB, free: 57.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002781/1.141, allocations: 104 kB / 0.5585 GB, free: 57.14 MB / 378.7 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.03035/1.171, allocations: 5.77 MB / 0.5641 GB, free: 51.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/1.172, allocations: 12.03 kB / 0.5641 GB, free: 51.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01757/1.189, allocations: 2.317 MB / 0.5664 GB, free: 48.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/1.207, allocations: 4.96 MB / 0.5712 GB, free: 43.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/1.208, allocations: 390.3 kB / 0.5716 GB, free: 43.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002742/1.211, allocations: 0.5115 MB / 0.5721 GB, free: 43.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03773/1.248, allocations: 13.03 MB / 0.5848 GB, free: 28.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002899/1.249, allocations: 63.41 kB / 0.5849 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001547/1.25, allocations: 247.9 kB / 0.5851 GB, free: 28.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002424/1.253, allocations: 1.215 MB / 0.5863 GB, free: 27.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03373/1.286, allocations: 11.22 MB / 0.5973 GB, free: 16.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4221/1.709, allocations: 57.18 MB / 0.6531 GB, free: 50.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02611/1.735, allocations: 5.203 MB / 0.6582 GB, free: 49.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001819/1.737, allocations: 0.6833 MB / 0.6588 GB, free: 49.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/1.737, allocations: 58.94 kB / 0.6589 GB, free: 49.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.082e-06/1.737, allocations: 0 / 0.6589 GB, free: 49.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1169/1.854, allocations: 25.66 MB / 0.684 GB, free: 45.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/1.854, allocations: 152 kB / 0.6841 GB, free: 45.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009399/1.863, allocations: 4.111 MB / 0.6881 GB, free: 45.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007459/1.864, allocations: 63.33 kB / 0.6882 GB, free: 45.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002855/1.867, allocations: 3.481 MB / 0.6916 GB, free: 43.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001639/1.869, allocations: 0.9483 MB / 0.6925 GB, free: 42.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/1.87, allocations: 137.8 kB / 0.6926 GB, free: 42.57 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004749/1.87, allocations: 0.6009 MB / 0.6932 GB, free: 42.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007699/1.878, allocations: 3.057 MB / 0.6962 GB, free: 42.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01073/1.889, allocations: 7.107 MB / 0.7031 GB, free: 35.58 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/1.9, allocations: 4.555 MB / 0.7076 GB, free: 34.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001769/1.9, allocations: 38.69 kB / 0.7076 GB, free: 34.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.03088/1.931, allocations: 10.85 MB / 0.7182 GB, free: 30.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/1.931, allocations: 70.59 kB / 0.7183 GB, free: 30.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002391/1.931, allocations: 148.2 kB / 0.7184 GB, free: 30.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004943/1.936, allocations: 1.145 MB / 0.7196 GB, free: 29.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01169/1.948, allocations: 1.741 MB / 0.7213 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/1.959, allocations: 6.038 MB / 0.7272 GB, free: 23.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008726/1.968, allocations: 435.1 kB / 0.7276 GB, free: 22.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001801/1.97, allocations: 441 kB / 0.728 GB, free: 22.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (873): * Single equations (assignments): 869 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007113/1.977, allocations: 2.441 MB / 0.7304 GB, free: 20.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.978, allocations: 422.2 kB / 0.7308 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0176/1.996, allocations: 5.594 MB / 0.7362 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.229e-05/1.996, allocations: 27.44 kB / 0.7363 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/1.996, allocations: 4 kB / 0.7363 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.599e-05/1.996, allocations: 16.8 kB / 0.7363 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03617/2.032, allocations: 12.22 MB / 0.7482 GB, free: 5.477 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.749e-05/2.033, allocations: 4 kB / 0.7482 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00533/2.038, allocations: 0.5063 MB / 0.7487 GB, free: 5.078 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004526/2.042, allocations: 0.9333 MB / 0.7496 GB, free: 4.445 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008059/2.043, allocations: 52 kB / 0.7497 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/2.055, allocations: 5.747 MB / 0.7553 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/2.055, allocations: 7.938 kB / 0.7553 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02754/2.082, allocations: 9.849 MB / 0.7649 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003771/2.086, allocations: 0.9093 MB / 0.7658 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/2.088, allocations: 40 kB / 0.7658 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004844/2.093, allocations: 183.8 kB / 0.766 GB, free: 4.547 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001161/2.094, allocations: 156.7 kB / 0.7662 GB, free: 4.395 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004489/2.094, allocations: 67.98 kB / 0.7662 GB, free: 4.328 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008605/2.103, allocations: 2.88 MB / 0.769 GB, free: 1.449 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.61e-07/2.103, allocations: 0 / 0.769 GB, free: 1.449 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009535/2.112, allocations: 1.266 MB / 0.7703 GB, free: 196 kB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00119/2.114, allocations: 196 kB / 0.7705 GB, free: 16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0203/2.134, allocations: 7.322 MB / 0.7776 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/2.134, allocations: 0 / 0.7776 GB, free: 8.695 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007967/2.142, allocations: 2.728 MB / 0.7803 GB, free: 5.957 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004384/2.147, allocations: 461.7 kB / 0.7807 GB, free: 5.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04/2.187, allocations: 14.63 MB / 0.795 GB, free: 6.863 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/2.197, allocations: 3.912 MB / 0.7988 GB, free: 2.938 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003025/2.2, allocations: 369.2 kB / 0.7992 GB, free: 2.578 MB / 458.7 MB Notification: Performance of SimCode: time 1.703e-06/2.2, allocations: 4 kB / 0.7992 GB, free: 2.574 MB / 458.7 MB Notification: Performance of Templates: time 0.4864/2.686, allocations: 91.6 MB / 0.8886 GB, free: 111 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches