Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001549/0.001549, allocations: 199.5 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000931/0.0009312, allocations: 86.38 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.951e-06/6.061e-06, allocations: 0 / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.08889, allocations: 51.47 MB / 394.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2929/0.3818, allocations: 99.85 MB / 494.5 MB, free: 9.656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.3822, allocations: 90 kB / 494.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2441/0.6263, allocations: 92.96 MB / 0.5737 GB, free: 1.449 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003524/0.6267, allocations: 100 kB / 0.5738 GB, free: 1.352 MB / 442.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.1596/0.7863, allocations: 5.372 MB / 0.5791 GB, free: 121.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.7863, allocations: 9.625 kB / 0.5791 GB, free: 121.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009597/0.7959, allocations: 1.943 MB / 0.581 GB, free: 120.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.8062, allocations: 4.197 MB / 0.5851 GB, free: 120.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.8064, allocations: 158 kB / 0.5852 GB, free: 120.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002804/0.8092, allocations: 296.3 kB / 0.5855 GB, free: 120.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01415/0.8234, allocations: 7.643 MB / 0.593 GB, free: 120.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.8395, allocations: 11.32 MB / 0.604 GB, free: 117.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.8398, allocations: 66.97 kB / 0.6041 GB, free: 117.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006274/0.8404, allocations: 34.67 kB / 0.6041 GB, free: 117.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001609/0.842, allocations: 1.204 MB / 0.6053 GB, free: 117.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05691/0.899, allocations: 54.19 MB / 0.6582 GB, free: 81.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005343/0.9044, allocations: 4.277 MB / 0.6624 GB, free: 79.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004216/0.9086, allocations: 3.151 MB / 0.6655 GB, free: 78.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01882/0.9275, allocations: 9.543 MB / 0.6748 GB, free: 73.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.899e-05/0.9276, allocations: 58.28 kB / 0.6749 GB, free: 73.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=194): time 7.344e-06/0.9276, allocations: 3.25 kB / 0.6749 GB, free: 73.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=225): time 0.05225/0.9799, allocations: 21.33 MB / 0.6957 GB, free: 65.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.9801, allocations: 153.3 kB / 0.6958 GB, free: 65.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007044/0.9871, allocations: 3.325 MB / 0.6991 GB, free: 64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007615/0.9879, allocations: 25.7 kB / 0.6991 GB, free: 63.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002103/0.99, allocations: 3.291 MB / 0.7023 GB, free: 61.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/0.9915, allocations: 0.833 MB / 0.7031 GB, free: 60.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004218/0.992, allocations: 4 kB / 0.7031 GB, free: 60.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003375/0.9923, allocations: 0.6014 MB / 0.7037 GB, free: 59.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003492/0.9958, allocations: 2.794 MB / 0.7065 GB, free: 57.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005407/1.001, allocations: 6.824 MB / 0.7131 GB, free: 48.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005891/1.007, allocations: 4.34 MB / 0.7174 GB, free: 45.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.133e-05/1.007, allocations: 44 kB / 0.7174 GB, free: 45.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=892) (initialization): time 0.01919/1.026, allocations: 9.6 MB / 0.7268 GB, free: 36.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/1.027, allocations: 7.281 kB / 0.7268 GB, free: 36.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000224/1.027, allocations: 147.8 kB / 0.7269 GB, free: 36.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003283/1.03, allocations: 1.073 MB / 0.728 GB, free: 35.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007061/1.037, allocations: 1.66 MB / 0.7296 GB, free: 34.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007307/1.045, allocations: 5.52 MB / 0.735 GB, free: 29.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007108/1.052, allocations: 231 kB / 0.7352 GB, free: 29.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/1.054, allocations: 438.8 kB / 0.7356 GB, free: 29.03 MB / 442.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.002521/1.056, allocations: 479.7 kB / 0.7361 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.057, allocations: 359.3 kB / 0.7364 GB, free: 28.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008622/1.066, allocations: 4.988 MB / 0.7413 GB, free: 24.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.174e-05/1.066, allocations: 24 kB / 0.7413 GB, free: 24.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/1.066, allocations: 4 kB / 0.7413 GB, free: 24.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.57e-05/1.066, allocations: 14.12 kB / 0.7413 GB, free: 24.15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01948/1.086, allocations: 10.09 MB / 0.7512 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/1.086, allocations: 8.031 kB / 0.7512 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00252/1.088, allocations: 419.9 kB / 0.7516 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002462/1.091, allocations: 0.8664 MB / 0.7524 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003495/1.091, allocations: 11.28 kB / 0.7524 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006217/1.097, allocations: 5.251 MB / 0.7576 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/1.097, allocations: 10.19 kB / 0.7576 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0141/1.111, allocations: 8.965 MB / 0.7663 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002332/1.114, allocations: 0.7887 MB / 0.7671 GB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.115, allocations: 4 kB / 0.7671 GB, free: 1.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002475/1.117, allocations: 92.44 kB / 0.7672 GB, free: 1.555 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004413/1.118, allocations: 114.3 kB / 0.7673 GB, free: 1.488 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/1.118, allocations: 69.97 kB / 0.7674 GB, free: 1.426 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.1398/1.258, allocations: 2.221 MB / 0.7695 GB, free: 111 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005671/1.264, allocations: 1.036 MB / 0.7706 GB, free: 111 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 (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.0004616/1.264, allocations: 156.1 kB / 0.7707 GB, free: 110.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008214/1.272, allocations: 6.598 MB / 0.7771 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/1.272, allocations: 5.172 kB / 0.7772 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002984/1.275, allocations: 2.45 MB / 0.7795 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/1.277, allocations: 348.8 kB / 0.7799 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/1.295, allocations: 9.549 MB / 0.7892 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005492/1.301, allocations: 4.085 MB / 0.7932 GB, free: 108.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.523e-06/1.301, allocations: 0 / 0.7932 GB, free: 108.1 MB / 442.7 MB Notification: Performance of Templates: time 0.09612/1.397, allocations: 45.97 MB / 0.8381 GB, free: 106 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches