Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") [: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.001106/0.001106, allocations: 199.2 kB / 8.542 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008665/0.0008665, allocations: 90.38 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1638/0.1638, allocations: 45.15 MB / 383.4 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.72e-06/5.73e-06, allocations: 0 / 452.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0841/0.08412, allocations: 63.25 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.3558, allocations: 109.1 MB / 0.6103 GB, free: 10.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.3561, allocations: 76.5 kB / 0.6104 GB, free: 10.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3061/0.6622, allocations: 124.2 MB / 0.7317 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003895/0.6626, allocations: 124 kB / 0.7318 GB, free: 5.895 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01925/0.6819, allocations: 6.405 MB / 0.738 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.682, allocations: 8.031 kB / 0.738 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02724/0.7092, allocations: 6.687 MB / 0.7446 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01729/0.7265, allocations: 6.36 MB / 0.7508 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003286/0.7269, allocations: 204 kB / 0.751 GB, free: 2.051 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002405/0.7293, allocations: 379.8 kB / 0.7513 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1944/0.9237, allocations: 8.869 MB / 0.76 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01786/0.9416, allocations: 13.74 MB / 0.7734 GB, free: 90.51 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.9418, allocations: 86.84 kB / 0.7735 GB, free: 90.51 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000695/0.9425, allocations: 48.06 kB / 0.7736 GB, free: 90.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001353/0.9439, allocations: 1.52 MB / 0.775 GB, free: 90.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05375/0.9977, allocations: 68.14 MB / 0.8416 GB, free: 50.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00516/1.003, allocations: 5.181 MB / 0.8466 GB, free: 48.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003263/1.006, allocations: 3.532 MB / 0.8501 GB, free: 47.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/1.02, allocations: 9.325 MB / 0.8592 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/1.02, allocations: 65.97 kB / 0.8593 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=221): time 6.773e-06/1.02, allocations: 3.719 kB / 0.8593 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263): time 0.04712/1.067, allocations: 23.97 MB / 0.8827 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/1.067, allocations: 233.2 kB / 0.8829 GB, free: 33.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006469/1.074, allocations: 4.667 MB / 0.8875 GB, free: 31.45 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006558/1.074, allocations: 28.14 kB / 0.8875 GB, free: 31.42 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002886/1.077, allocations: 4.24 MB / 0.8916 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.079, allocations: 0.9828 MB / 0.8926 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005731/1.079, allocations: 0 / 0.8926 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003904/1.08, allocations: 0.6785 MB / 0.8932 GB, free: 26.99 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004566/1.084, allocations: 3.152 MB / 0.8963 GB, free: 25.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005909/1.09, allocations: 8.327 MB / 0.9045 GB, free: 17.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007248/1.098, allocations: 5.082 MB / 0.9094 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002017/1.098, allocations: 53.28 kB / 0.9095 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1127) (initialization): time 0.02264/1.12, allocations: 11.57 MB / 0.9208 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/1.12, allocations: 4 kB / 0.9208 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001948/1.121, allocations: 185.1 kB / 0.9209 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003835/1.124, allocations: 1.623 MB / 0.9225 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007445/1.132, allocations: 1.988 MB / 0.9245 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/1.146, allocations: 10.44 MB / 0.9347 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008039/1.154, allocations: 287.1 kB / 0.9349 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002748/1.157, allocations: 0.524 MB / 0.9355 GB, free: 11.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1055): * Single equations (assignments): 1050 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002766/1.159, allocations: 0.5664 MB / 0.936 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001455/1.161, allocations: 493.6 kB / 0.9365 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.172, allocations: 5.708 MB / 0.942 GB, free: 6.023 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.704e-05/1.172, allocations: 24 kB / 0.9421 GB, free: 6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/1.172, allocations: 8 kB / 0.9421 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/1.172, allocations: 15.48 kB / 0.9421 GB, free: 5.988 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1898/1.362, allocations: 12.25 MB / 0.9541 GB, free: 173.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.6e-05/1.362, allocations: 0 / 0.9541 GB, free: 173.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002231/1.364, allocations: 407.3 kB / 0.9544 GB, free: 173.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003437/1.368, allocations: 1.31 MB / 0.9557 GB, free: 173.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/1.368, allocations: 14.44 kB / 0.9557 GB, free: 173.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/1.379, allocations: 9.617 MB / 0.9651 GB, free: 170.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.379, allocations: 2.625 kB / 0.9651 GB, free: 170.7 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01275/1.392, allocations: 9.648 MB / 0.9746 GB, free: 170 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/1.393, allocations: 0.5068 MB / 0.9751 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007759/1.394, allocations: 10.09 kB / 0.9751 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/1.396, allocations: 85.8 kB / 0.9751 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/1.397, allocations: 115.6 kB / 0.9753 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002049/1.397, allocations: 68.92 kB / 0.9753 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.004466/1.401, allocations: 3.146 MB / 0.9784 GB, free: 169.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007632/1.409, allocations: 1.308 MB / 0.9797 GB, free: 169.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 200 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005948/1.409, allocations: 159.8 kB / 0.9798 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01123/1.421, allocations: 7.823 MB / 0.9875 GB, free: 169.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/1.421, allocations: 0 / 0.9875 GB, free: 169.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004016/1.425, allocations: 2.881 MB / 0.9903 GB, free: 169.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/1.428, allocations: 0.5197 MB / 0.9908 GB, free: 169.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/1.451, allocations: 12.08 MB / 1.003 GB, free: 167 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007025/1.458, allocations: 5.134 MB / 1.008 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of SimCode: time 9.61e-07/1.458, allocations: 0 / 1.008 GB, free: 166.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.09315/1.551, allocations: 57.45 MB / 1.064 GB, free: 140.9 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches