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.002314/0.002314, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001107/0.001107, allocations: 94.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.099e-05, allocations: 7.984 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09509, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5216, allocations: 98.91 MB / 468 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.522, allocations: 91.88 kB / 468.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6973/1.219, allocations: 98.2 MB / 0.553 GB, free: 90.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.504e-06/1.219, allocations: 0 / 0.553 GB, free: 90.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003282/1.22, allocations: 100.6 kB / 0.5531 GB, free: 90.36 MB / 410.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.03126/1.251, allocations: 5.506 MB / 0.5585 GB, free: 88.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/1.251, allocations: 7.844 kB / 0.5585 GB, free: 88.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01775/1.269, allocations: 2.317 MB / 0.5608 GB, free: 87.97 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/1.287, allocations: 4.939 MB / 0.5656 GB, free: 87.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005017/1.288, allocations: 396 kB / 0.566 GB, free: 87.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003201/1.291, allocations: 0.5133 MB / 0.5665 GB, free: 87.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04018/1.331, allocations: 12.91 MB / 0.5791 GB, free: 83.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003454/1.332, allocations: 64.75 kB / 0.5791 GB, free: 83.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002568/1.334, allocations: 252.2 kB / 0.5794 GB, free: 83.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00287/1.337, allocations: 1.203 MB / 0.5805 GB, free: 83.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0349/1.372, allocations: 11.03 MB / 0.5913 GB, free: 79.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0959/1.468, allocations: 57.18 MB / 0.6472 GB, free: 29.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03682/1.505, allocations: 5.138 MB / 0.6522 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006343/1.511, allocations: 3.173 MB / 0.6553 GB, free: 20.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001915/1.513, allocations: 0.6748 MB / 0.6559 GB, free: 20.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.4e-05/1.513, allocations: 51.88 kB / 0.656 GB, free: 20.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.592e-06/1.513, allocations: 3.938 kB / 0.656 GB, free: 20.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1051/1.618, allocations: 21.53 MB / 0.677 GB, free: 14.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/1.619, allocations: 158.5 kB / 0.6772 GB, free: 14.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/1.63, allocations: 4.066 MB / 0.6811 GB, free: 10.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008012/1.631, allocations: 65.7 kB / 0.6812 GB, free: 10.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004121/1.635, allocations: 3.482 MB / 0.6846 GB, free: 6.602 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001959/1.637, allocations: 0.9455 MB / 0.6855 GB, free: 5.664 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/1.638, allocations: 140 kB / 0.6856 GB, free: 5.527 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007267/1.639, allocations: 0.612 MB / 0.6862 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008768/1.648, allocations: 2.969 MB / 0.6891 GB, free: 1.934 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3161/1.964, allocations: 7.018 MB / 0.696 GB, free: 91.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01691/1.981, allocations: 4.515 MB / 0.7004 GB, free: 91.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003597/1.982, allocations: 41 kB / 0.7004 GB, free: 91.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.04534/2.027, allocations: 10.7 MB / 0.7109 GB, free: 91.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003024/2.027, allocations: 65.97 kB / 0.711 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000387/2.028, allocations: 147 kB / 0.7111 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007205/2.035, allocations: 1.143 MB / 0.7122 GB, free: 91.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01423/2.049, allocations: 1.735 MB / 0.7139 GB, free: 91.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01516/2.064, allocations: 5.939 MB / 0.7197 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/2.077, allocations: 423.9 kB / 0.7201 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002665/2.08, allocations: 434.6 kB / 0.7205 GB, free: 89.66 MB / 426.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 () * 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.004452/2.084, allocations: 0.64 MB / 0.7211 GB, free: 89.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001713/2.086, allocations: 419.1 kB / 0.7215 GB, free: 89.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02633/2.112, allocations: 5.496 MB / 0.7269 GB, free: 87.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-05/2.113, allocations: 28.41 kB / 0.7269 GB, free: 87.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/2.113, allocations: 6 kB / 0.7269 GB, free: 87.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.84e-05/2.113, allocations: 18.69 kB / 0.727 GB, free: 87.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03752/2.15, allocations: 12.1 MB / 0.7388 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.104e-05/2.15, allocations: 3.188 kB / 0.7388 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005401/2.156, allocations: 0.5047 MB / 0.7393 GB, free: 83.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004549/2.16, allocations: 0.9354 MB / 0.7402 GB, free: 83.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007865/2.161, allocations: 43.38 kB / 0.7402 GB, free: 83.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/2.172, allocations: 5.64 MB / 0.7457 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/2.172, allocations: 7.375 kB / 0.7457 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02335/2.196, allocations: 9.7 MB / 0.7552 GB, free: 76.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003443/2.199, allocations: 0.9105 MB / 0.7561 GB, free: 75.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/2.2, allocations: 38.53 kB / 0.7561 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004741/2.205, allocations: 184.4 kB / 0.7563 GB, free: 75.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009219/2.206, allocations: 149.6 kB / 0.7565 GB, free: 75.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003351/2.207, allocations: 73.03 kB / 0.7565 GB, free: 75.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006833/2.213, allocations: 2.837 MB / 0.7593 GB, free: 74.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.452e-06/2.213, allocations: 0 / 0.7593 GB, free: 74.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008785/2.222, allocations: 1.268 MB / 0.7605 GB, free: 74.57 MB / 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 () * 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.001083/2.223, allocations: 202.1 kB / 0.7607 GB, free: 74.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01636/2.24, allocations: 7.166 MB / 0.7677 GB, free: 69.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/2.24, allocations: 4.188 kB / 0.7677 GB, free: 69.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006402/2.246, allocations: 2.688 MB / 0.7704 GB, free: 67.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/2.25, allocations: 464.3 kB / 0.7708 GB, free: 66.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02851/2.279, allocations: 10.68 MB / 0.7812 GB, free: 57.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007573/2.286, allocations: 3.914 MB / 0.7851 GB, free: 54.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002833/2.289, allocations: 367.5 kB / 0.7854 GB, free: 54.04 MB / 426.7 MB Notification: Performance of SimCode: time 1.323e-06/2.289, allocations: 0 / 0.7854 GB, free: 54.04 MB / 426.7 MB Notification: Performance of Templates: time 0.5029/2.792, allocations: 91.59 MB / 0.8748 GB, free: 76.81 MB / 442.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