Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [: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 3.2.3+maint.om/package.mo): time 0.002617/0.002621, allocations: 175.2 kB / 8.149 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.972/1.972, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001263/0.001262, allocations: 89 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.124e-05/1.135e-05, allocations: 4 kB / 314.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2361, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.3906, allocations: 99.45 MB / 461.3 MB, free: 2.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.391, allocations: 92.44 kB / 461.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5762/0.9671, allocations: 94.36 MB / 0.5427 GB, free: 94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003439/0.9675, allocations: 96.81 kB / 0.5428 GB, free: 93.99 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.02083/0.9884, allocations: 4.652 MB / 0.5473 GB, free: 90.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.9885, allocations: 10.03 kB / 0.5474 GB, free: 90.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03384/1.022, allocations: 4.152 MB / 0.5514 GB, free: 88.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02101/1.043, allocations: 5.107 MB / 0.5564 GB, free: 84.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/1.044, allocations: 156 kB / 0.5565 GB, free: 84.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002608/1.046, allocations: 279.9 kB / 0.5568 GB, free: 84.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01854/1.065, allocations: 7.168 MB / 0.5638 GB, free: 77.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02841/1.093, allocations: 10.77 MB / 0.5743 GB, free: 65.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002801/1.094, allocations: 59.41 kB / 0.5744 GB, free: 65.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002336/1.096, allocations: 28 kB / 0.5744 GB, free: 65.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/1.099, allocations: 1.277 MB / 0.5757 GB, free: 64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08143/1.18, allocations: 51.39 MB / 0.6258 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007893/1.188, allocations: 4.214 MB / 0.63 GB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00511/1.193, allocations: 2.583 MB / 0.6325 GB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02096/1.214, allocations: 7.277 MB / 0.6396 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/1.214, allocations: 51.88 kB / 0.6396 GB, free: 12.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.212e-06/1.214, allocations: 0 / 0.6396 GB, free: 12.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=213): time 0.2043/1.419, allocations: 15.39 MB / 0.6547 GB, free: 139.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/1.419, allocations: 174.4 kB / 0.6548 GB, free: 138.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/1.43, allocations: 3.471 MB / 0.6582 GB, free: 138.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007238/1.431, allocations: 25.7 kB / 0.6582 GB, free: 138.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003569/1.434, allocations: 3.258 MB / 0.6614 GB, free: 136.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001879/1.436, allocations: 0.7973 MB / 0.6622 GB, free: 136.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/1.437, allocations: 0 / 0.6622 GB, free: 136.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001124/1.439, allocations: 0.601 MB / 0.6628 GB, free: 136.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009473/1.448, allocations: 2.434 MB / 0.6652 GB, free: 136.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01205/1.46, allocations: 6.462 MB / 0.6715 GB, free: 130.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.473, allocations: 3.973 MB / 0.6754 GB, free: 130.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002498/1.473, allocations: 45.72 kB / 0.6754 GB, free: 130.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02897/1.502, allocations: 8.555 MB / 0.6838 GB, free: 130.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/1.502, allocations: 6.531 kB / 0.6838 GB, free: 130.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002826/1.502, allocations: 142.4 kB / 0.6839 GB, free: 130.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003877/1.506, allocations: 0.8622 MB / 0.6847 GB, free: 130.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0112/1.517, allocations: 1.609 MB / 0.6863 GB, free: 130 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/1.529, allocations: 5.324 MB / 0.6915 GB, free: 127.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006923/1.536, allocations: 205.3 kB / 0.6917 GB, free: 127.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001852/1.538, allocations: 419.5 kB / 0.6921 GB, free: 127.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 842 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002841/1.541, allocations: 402.1 kB / 0.6925 GB, free: 126.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/1.542, allocations: 362.8 kB / 0.6928 GB, free: 126.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/1.555, allocations: 3.896 MB / 0.6966 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001148/1.555, allocations: 21.44 kB / 0.6967 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/1.555, allocations: 6.812 kB / 0.6967 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.295e-05/1.555, allocations: 13.41 kB / 0.6967 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03019/1.585, allocations: 8.481 MB / 0.705 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.392e-05/1.585, allocations: 5.031 kB / 0.705 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004445/1.59, allocations: 368.5 kB / 0.7053 GB, free: 122.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003728/1.593, allocations: 0.6579 MB / 0.706 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005851/1.594, allocations: 12.86 kB / 0.706 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/1.605, allocations: 4.819 MB / 0.7107 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/1.605, allocations: 0 / 0.7107 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01759/1.623, allocations: 7.045 MB / 0.7176 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002999/1.626, allocations: 0.7175 MB / 0.7183 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001533/1.628, allocations: 4 kB / 0.7183 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003842/1.632, allocations: 66.16 kB / 0.7183 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000712/1.632, allocations: 96.45 kB / 0.7184 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/1.633, allocations: 57.03 kB / 0.7185 GB, free: 112.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.006203/1.639, allocations: 2.328 MB / 0.7207 GB, free: 110.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008797/1.648, allocations: 0.9734 MB / 0.7217 GB, free: 109.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (174): * Single equations (assignments): 170 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009147/1.649, allocations: 150.4 kB / 0.7218 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01386/1.663, allocations: 5.818 MB / 0.7275 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.663, allocations: 0 / 0.7275 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005728/1.668, allocations: 2.049 MB / 0.7295 GB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/1.672, allocations: 349.5 kB / 0.7299 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03065/1.703, allocations: 9.549 MB / 0.7392 GB, free: 93.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01143/1.714, allocations: 4.087 MB / 0.7432 GB, free: 90.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.964e-06/1.714, allocations: 0 / 0.7432 GB, free: 90.07 MB / 410.7 MB Notification: Performance of Templates: time 0.2991/2.013, allocations: 83.25 MB / 0.8245 GB, free: 126.9 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches