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.001023/0.001023, allocations: 181.2 kB / 17.41 MB, free: 4.406 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.331/1.331, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.0008307/0.0008307, allocations: 87.39 kB / 271.9 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003089, allocations: 8 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2251, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.3405, allocations: 99.16 MB / 474.9 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.3408, allocations: 99.94 kB / 475 MB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4104/0.7512, allocations: 97.06 MB / 0.5586 GB, free: 57.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.7513, allocations: 4 kB / 0.5586 GB, free: 57.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002264/0.7515, allocations: 104 kB / 0.5587 GB, free: 57.74 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.01932/0.7709, allocations: 5.532 MB / 0.5641 GB, free: 52.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.7709, allocations: 8.031 kB / 0.5642 GB, free: 52.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/0.781, allocations: 2.283 MB / 0.5664 GB, free: 49.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.7913, allocations: 3.903 MB / 0.5702 GB, free: 45.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005726/0.7919, allocations: 403.4 kB / 0.5706 GB, free: 45.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003145/0.7951, allocations: 0.5114 MB / 0.5711 GB, free: 44.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03019/0.8253, allocations: 12.96 MB / 0.5837 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004115/0.8258, allocations: 71.25 kB / 0.5838 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002416/0.8282, allocations: 247.9 kB / 0.584 GB, free: 30.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001783/0.83, allocations: 1.204 MB / 0.5852 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02212/0.8521, allocations: 11.12 MB / 0.5961 GB, free: 18.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.311/1.163, allocations: 57.14 MB / 0.6519 GB, free: 50.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01311/1.176, allocations: 5.127 MB / 0.6569 GB, free: 49.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00401/1.18, allocations: 3.222 MB / 0.66 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/1.181, allocations: 0.6804 MB / 0.6607 GB, free: 49.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/1.182, allocations: 60.19 kB / 0.6608 GB, free: 49.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.712e-06/1.182, allocations: 3.625 kB / 0.6608 GB, free: 49.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.06065/1.242, allocations: 25.14 MB / 0.6853 GB, free: 46.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/1.242, allocations: 155 kB / 0.6855 GB, free: 45.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006604/1.249, allocations: 4.605 MB / 0.69 GB, free: 45.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006522/1.25, allocations: 64.11 kB / 0.69 GB, free: 45.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/1.252, allocations: 3.593 MB / 0.6935 GB, free: 43.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/1.253, allocations: 0.9463 MB / 0.6945 GB, free: 42.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004089/1.253, allocations: 138.8 kB / 0.6946 GB, free: 42.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003297/1.254, allocations: 0.5956 MB / 0.6952 GB, free: 42.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004303/1.258, allocations: 3.059 MB / 0.6982 GB, free: 41.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006714/1.265, allocations: 7.129 MB / 0.7051 GB, free: 34.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.277, allocations: 11.03 MB / 0.7159 GB, free: 26.85 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001662/1.277, allocations: 50 kB / 0.7159 GB, free: 26.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.02041/1.297, allocations: 11.01 MB / 0.7267 GB, free: 19.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/1.298, allocations: 71.66 kB / 0.7268 GB, free: 19.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/1.298, allocations: 140 kB / 0.7269 GB, free: 19.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002682/1.3, allocations: 1.123 MB / 0.728 GB, free: 18.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006349/1.307, allocations: 1.738 MB / 0.7297 GB, free: 17.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006669/1.314, allocations: 5.943 MB / 0.7355 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/1.32, allocations: 426.4 kB / 0.7359 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001872/1.322, allocations: 438.8 kB / 0.7363 GB, free: 11.06 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.007287/1.33, allocations: 2.449 MB / 0.7387 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/1.331, allocations: 410.7 kB / 0.7391 GB, free: 8.492 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/1.341, allocations: 5.595 MB / 0.7446 GB, free: 4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.875e-05/1.341, allocations: 30.11 kB / 0.7446 GB, free: 3.973 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/1.341, allocations: 8 kB / 0.7446 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-05/1.341, allocations: 18.19 kB / 0.7446 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03179/1.373, allocations: 12.24 MB / 0.7566 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.866e-05/1.373, allocations: 4 kB / 0.7566 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003162/1.376, allocations: 0.5012 MB / 0.7571 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/1.379, allocations: 0.9334 MB / 0.758 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006818/1.38, allocations: 51.56 kB / 0.758 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008591/1.388, allocations: 5.651 MB / 0.7635 GB, free: 3.461 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/1.389, allocations: 4 kB / 0.7635 GB, free: 3.457 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01789/1.406, allocations: 9.481 MB / 0.7728 GB, free: 9.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003138/1.41, allocations: 0.9133 MB / 0.7737 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001639/1.411, allocations: 52.47 kB / 0.7737 GB, free: 8.887 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/1.415, allocations: 175.8 kB / 0.7739 GB, free: 8.715 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008708/1.416, allocations: 153.6 kB / 0.7741 GB, free: 8.566 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005016/1.416, allocations: 67.98 kB / 0.7741 GB, free: 8.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007385/1.423, allocations: 2.884 MB / 0.7769 GB, free: 5.617 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.424, allocations: 0 / 0.7769 GB, free: 5.617 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009157/1.433, allocations: 1.27 MB / 0.7782 GB, free: 4.355 MB / 442.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.001257/1.434, allocations: 195.1 kB / 0.7784 GB, free: 4.156 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01478/1.449, allocations: 7.306 MB / 0.7855 GB, free: 12.87 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/1.449, allocations: 1.172 kB / 0.7855 GB, free: 12.87 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005696/1.455, allocations: 2.739 MB / 0.7882 GB, free: 10.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007471/1.462, allocations: 494.1 kB / 0.7886 GB, free: 9.648 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03269/1.495, allocations: 14.7 MB / 0.803 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00878/1.504, allocations: 3.808 MB / 0.8067 GB, free: 7.113 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002411/1.506, allocations: 363.3 kB / 0.8071 GB, free: 6.758 MB / 474.7 MB Notification: Performance of SimCode: time 2.154e-06/1.506, allocations: 0 / 0.8071 GB, free: 6.758 MB / 474.7 MB Notification: Performance of Templates: time 0.3393/1.845, allocations: 94.4 MB / 0.8993 GB, free: 129.8 MB / 490.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