Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 221.4 MB / 235.5 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009457/0.0009458, allocations: 91.86 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.318e-05, allocations: 0 / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 50.42 MB / 394.3 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3997/0.5088, allocations: 99.93 MB / 494.2 MB, free: 3.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5091, allocations: 91.77 kB / 494.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4898/0.9989, allocations: 95.37 MB / 0.5758 GB, free: 96.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.999, allocations: 2.531 kB / 0.5758 GB, free: 96.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002495/0.9993, allocations: 99.55 kB / 0.5759 GB, free: 96.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.02047/1.02, allocations: 5.342 MB / 0.5811 GB, free: 94.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/1.02, allocations: 11.72 kB / 0.5811 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01081/1.031, allocations: 2.28 MB / 0.5834 GB, free: 94.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01459/1.045, allocations: 4.682 MB / 0.5879 GB, free: 93.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/1.046, allocations: 381.2 kB / 0.5883 GB, free: 93.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002964/1.049, allocations: 0.5019 MB / 0.5888 GB, free: 93.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03006/1.079, allocations: 12.44 MB / 0.6009 GB, free: 88.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002269/1.079, allocations: 62.78 kB / 0.601 GB, free: 88.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001055/1.08, allocations: 249.3 kB / 0.6012 GB, free: 88.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001417/1.082, allocations: 1.138 MB / 0.6024 GB, free: 87.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02404/1.106, allocations: 10.61 MB / 0.6127 GB, free: 84.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06103/1.167, allocations: 55.56 MB / 0.667 GB, free: 31.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/1.181, allocations: 4.923 MB / 0.6718 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004058/1.185, allocations: 3.011 MB / 0.6747 GB, free: 23.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001428/1.187, allocations: 0.6816 MB / 0.6754 GB, free: 22.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.879e-05/1.187, allocations: 55.81 kB / 0.6754 GB, free: 22.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 6.231e-06/1.187, allocations: 0 / 0.6754 GB, free: 22.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=231): time 0.06497/1.252, allocations: 20.51 MB / 0.6955 GB, free: 2.094 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/1.252, allocations: 158.5 kB / 0.6956 GB, free: 1.906 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008908/1.261, allocations: 3.979 MB / 0.6995 GB, free: 13.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007679/1.262, allocations: 57.7 kB / 0.6996 GB, free: 13.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003573/1.265, allocations: 3.48 MB / 0.703 GB, free: 10.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001788/1.267, allocations: 0.8822 MB / 0.7038 GB, free: 9.492 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/1.268, allocations: 128 kB / 0.7039 GB, free: 9.367 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008271/1.269, allocations: 0.5871 MB / 0.7045 GB, free: 8.773 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005771/1.275, allocations: 2.813 MB / 0.7073 GB, free: 5.953 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2815/1.557, allocations: 6.745 MB / 0.7138 GB, free: 96.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008469/1.565, allocations: 4.313 MB / 0.7181 GB, free: 96.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002044/1.565, allocations: 43.8 kB / 0.7181 GB, free: 96.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.02561/1.591, allocations: 10.39 MB / 0.7282 GB, free: 95.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002847/1.591, allocations: 64.69 kB / 0.7283 GB, free: 95.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004143/1.592, allocations: 142.3 kB / 0.7284 GB, free: 95.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003463/1.595, allocations: 1.136 MB / 0.7296 GB, free: 95.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006933/1.602, allocations: 1.663 MB / 0.7312 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007679/1.61, allocations: 5.918 MB / 0.737 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006619/1.617, allocations: 413 kB / 0.7373 GB, free: 94.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/1.618, allocations: 417.9 kB / 0.7377 GB, free: 94.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 44 (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.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (835): * Single equations (assignments): 831 * 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.002466/1.621, allocations: 0.6263 MB / 0.7384 GB, free: 94.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.622, allocations: 399.2 kB / 0.7387 GB, free: 94.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009757/1.632, allocations: 5.14 MB / 0.7438 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.225e-05/1.632, allocations: 27.8 kB / 0.7438 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.632, allocations: 5 kB / 0.7438 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.928e-05/1.632, allocations: 13.5 kB / 0.7438 GB, free: 92.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/1.654, allocations: 11.42 MB / 0.755 GB, free: 88.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-05/1.654, allocations: 7.141 kB / 0.755 GB, free: 88.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/1.657, allocations: 473.1 kB / 0.7554 GB, free: 88.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00241/1.659, allocations: 0.941 MB / 0.7563 GB, free: 87.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003882/1.659, allocations: 43.84 kB / 0.7564 GB, free: 87.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007201/1.667, allocations: 5.624 MB / 0.7619 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.856e-06/1.667, allocations: 11.08 kB / 0.7619 GB, free: 84.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01468/1.681, allocations: 9.119 MB / 0.7708 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003078/1.685, allocations: 0.8666 MB / 0.7716 GB, free: 80.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001741/1.686, allocations: 43.25 kB / 0.7717 GB, free: 80.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003038/1.689, allocations: 166.2 kB / 0.7718 GB, free: 80.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005468/1.69, allocations: 144 kB / 0.772 GB, free: 80.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/1.69, allocations: 60.44 kB / 0.772 GB, free: 80.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00596/1.696, allocations: 2.773 MB / 0.7747 GB, free: 79.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.61e-07/1.696, allocations: 2.516 kB / 0.7747 GB, free: 79.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008097/1.704, allocations: 1.21 MB / 0.7759 GB, free: 79.43 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 199 * 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.000896/1.705, allocations: 189 kB / 0.7761 GB, free: 79.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01164/1.717, allocations: 6.784 MB / 0.7827 GB, free: 76.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.717, allocations: 0 / 0.7827 GB, free: 76.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003942/1.721, allocations: 2.511 MB / 0.7852 GB, free: 75.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/1.724, allocations: 452.9 kB / 0.7856 GB, free: 74.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/1.748, allocations: 9.634 MB / 0.795 GB, free: 66.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00656/1.755, allocations: 3.776 MB / 0.7987 GB, free: 63.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006679/1.761, allocations: 2.223 MB / 0.8009 GB, free: 61.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/1.763, allocations: 303.7 kB / 0.8012 GB, free: 61.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.362e-06/1.763, allocations: 4 kB / 0.8012 GB, free: 61.56 MB / 442.7 MB Notification: Performance of Templates: time 0.07954/1.843, allocations: 45.9 MB / 0.846 GB, free: 19.52 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches