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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002117/0.002117, allocations: 186.2 kB / 8.14 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0008999/0.0008999, allocations: 86.53 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.134e-06/7.154e-06, allocations: 3.938 kB / 336.5 MB, free: 9.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.239, allocations: 50.38 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.3505, allocations: 99.2 MB / 486.1 MB, free: 3.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.3508, allocations: 87.89 kB / 486.2 MB, free: 3.488 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3713/0.7221, allocations: 92.31 MB / 0.5649 GB, free: 43.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002156/0.7223, allocations: 107.9 kB / 0.565 GB, free: 43.68 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: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.0199/0.7422, allocations: 5.279 MB / 0.5702 GB, free: 38.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.7423, allocations: 8.031 kB / 0.5702 GB, free: 38.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.7524, allocations: 1.892 MB / 0.5721 GB, free: 36.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.7645, allocations: 4.738 MB / 0.5767 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.7647, allocations: 164 kB / 0.5768 GB, free: 31.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00241/0.7671, allocations: 291.9 kB / 0.5771 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01418/0.7813, allocations: 7.641 MB / 0.5846 GB, free: 23.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.8039, allocations: 11.31 MB / 0.5956 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003915/0.8044, allocations: 71.3 kB / 0.5957 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001691/0.8061, allocations: 39.92 kB / 0.5957 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001571/0.8077, allocations: 1.203 MB / 0.5969 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06855/0.8762, allocations: 54.19 MB / 0.6498 GB, free: 2.086 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1649/1.041, allocations: 4.268 MB / 0.654 GB, free: 126.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00361/1.045, allocations: 3.146 MB / 0.6571 GB, free: 126 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/1.06, allocations: 9.546 MB / 0.6664 GB, free: 124.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/1.06, allocations: 51.5 kB / 0.6664 GB, free: 124.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=194): time 8.125e-06/1.06, allocations: 3.969 kB / 0.6664 GB, free: 124.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=225): time 0.04175/1.102, allocations: 21.32 MB / 0.6873 GB, free: 121.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/1.102, allocations: 155.3 kB / 0.6874 GB, free: 121.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004586/1.106, allocations: 3.323 MB / 0.6907 GB, free: 120.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004782/1.107, allocations: 29.27 kB / 0.6907 GB, free: 120.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/1.108, allocations: 3.295 MB / 0.6939 GB, free: 118.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008573/1.109, allocations: 0.8305 MB / 0.6947 GB, free: 118.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002914/1.109, allocations: 3.5 kB / 0.6947 GB, free: 118.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003144/1.11, allocations: 0.5942 MB / 0.6953 GB, free: 118 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003248/1.113, allocations: 2.807 MB / 0.698 GB, free: 117.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004905/1.118, allocations: 6.828 MB / 0.7047 GB, free: 111.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005541/1.123, allocations: 4.335 MB / 0.7089 GB, free: 109.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.68e-05/1.123, allocations: 43.91 kB / 0.709 GB, free: 109.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=892) (initialization): time 0.01861/1.142, allocations: 9.6 MB / 0.7184 GB, free: 107.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/1.142, allocations: 11.47 kB / 0.7184 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002005/1.142, allocations: 141.8 kB / 0.7185 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002719/1.145, allocations: 1.073 MB / 0.7196 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006341/1.151, allocations: 1.661 MB / 0.7212 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00664/1.158, allocations: 5.517 MB / 0.7266 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006442/1.165, allocations: 233 kB / 0.7268 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001432/1.166, allocations: 440.5 kB / 0.7272 GB, free: 103.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 660 * 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 (853): * Single equations (assignments): 849 * 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.001966/1.168, allocations: 470.4 kB / 0.7277 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009216/1.169, allocations: 359.2 kB / 0.728 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008159/1.177, allocations: 4.992 MB / 0.7329 GB, free: 98.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-05/1.177, allocations: 20 kB / 0.7329 GB, free: 98.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.177, allocations: 4 kB / 0.7329 GB, free: 98.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-05/1.177, allocations: 13.59 kB / 0.7329 GB, free: 98.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/1.194, allocations: 10.1 MB / 0.7428 GB, free: 90.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.481e-05/1.194, allocations: 4 kB / 0.7428 GB, free: 90.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002734/1.197, allocations: 422 kB / 0.7432 GB, free: 90.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002459/1.199, allocations: 0.8637 MB / 0.744 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004275/1.199, allocations: 12 kB / 0.744 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005701/1.205, allocations: 5.242 MB / 0.7492 GB, free: 84.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.205, allocations: 4 kB / 0.7492 GB, free: 84.85 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01098/1.216, allocations: 8.972 MB / 0.7579 GB, free: 76.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002021/1.218, allocations: 0.7885 MB / 0.7587 GB, free: 76.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008999/1.219, allocations: 15.61 kB / 0.7587 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002085/1.221, allocations: 83.25 kB / 0.7588 GB, free: 76.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004003/1.222, allocations: 116.4 kB / 0.7589 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/1.222, allocations: 61.64 kB / 0.759 GB, free: 75.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003472/1.225, allocations: 2.226 MB / 0.7611 GB, free: 74.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006338/1.232, allocations: 1.033 MB / 0.7621 GB, free: 73.04 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 (197): * Single equations (assignments): 193 * 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.000577/1.232, allocations: 162.5 kB / 0.7623 GB, free: 72.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00901/1.241, allocations: 6.599 MB / 0.7687 GB, free: 67.01 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/1.241, allocations: 0 / 0.7687 GB, free: 67.01 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003371/1.245, allocations: 2.461 MB / 0.7711 GB, free: 64.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/1.247, allocations: 346.1 kB / 0.7715 GB, free: 64.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02252/1.27, allocations: 9.539 MB / 0.7808 GB, free: 55.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006185/1.276, allocations: 4.087 MB / 0.7848 GB, free: 52.84 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.276, allocations: 0 / 0.7848 GB, free: 52.84 MB / 426.7 MB Notification: Performance of Templates: time 0.2335/1.51, allocations: 45.98 MB / 0.8297 GB, free: 103.7 MB / 426.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