Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 182 kB / 8.131 MB, free: 2.188 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.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 2.977 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.0009783/0.0009782, allocations: 96.14 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.334e-06/7.354e-06, allocations: 4 kB / 336.5 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1969, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.2973, allocations: 99.72 MB / 486.6 MB, free: 3.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.2976, allocations: 91.86 kB / 486.7 MB, free: 2.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3307/0.6283, allocations: 89.32 MB / 0.5625 GB, free: 46.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.6285, allocations: 88 kB / 0.5626 GB, free: 46.2 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.009707/0.6382, allocations: 4.398 MB / 0.5669 GB, free: 41.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.6383, allocations: 12.03 kB / 0.5669 GB, free: 41.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.6544, allocations: 4.088 MB / 0.5709 GB, free: 37.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.6656, allocations: 4.8 MB / 0.5756 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.6657, allocations: 144 kB / 0.5757 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00085/0.6666, allocations: 259.9 kB / 0.576 GB, free: 32.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007784/0.6744, allocations: 6.597 MB / 0.5824 GB, free: 25.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009723/0.6841, allocations: 10.07 MB / 0.5923 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.6842, allocations: 63.41 kB / 0.5923 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004554/0.6847, allocations: 28 kB / 0.5924 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001014/0.6857, allocations: 1.163 MB / 0.5935 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04548/0.7312, allocations: 49.07 MB / 0.6414 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00441/0.7357, allocations: 3.793 MB / 0.6451 GB, free: 6.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/0.7383, allocations: 2.267 MB / 0.6473 GB, free: 4.547 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1241/0.8624, allocations: 6.513 MB / 0.6537 GB, free: 129.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.8625, allocations: 43.03 kB / 0.6537 GB, free: 129.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 4.278e-06/0.8625, allocations: 2.938 kB / 0.6537 GB, free: 129.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=174): time 0.02523/0.8877, allocations: 13.99 MB / 0.6674 GB, free: 127 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.8878, allocations: 175.1 kB / 0.6676 GB, free: 126.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003883/0.8917, allocations: 3.343 MB / 0.6708 GB, free: 126.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.8919, allocations: 32.36 kB / 0.6709 GB, free: 126.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001114/0.893, allocations: 3.103 MB / 0.6739 GB, free: 124.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004401/0.8934, allocations: 0.6684 MB / 0.6745 GB, free: 124.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.8937, allocations: 3.969 kB / 0.6745 GB, free: 124.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002775/0.8939, allocations: 0.5766 MB / 0.6751 GB, free: 124 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002291/0.8962, allocations: 2.131 MB / 0.6772 GB, free: 123.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003428/0.8997, allocations: 5.947 MB / 0.683 GB, free: 119 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0036/0.9033, allocations: 3.565 MB / 0.6865 GB, free: 119 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.665e-05/0.9033, allocations: 39.69 kB / 0.6865 GB, free: 119 MB / 426.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01153/0.9149, allocations: 7.844 MB / 0.6942 GB, free: 118.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.915, allocations: 3.844 kB / 0.6942 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/0.9151, allocations: 140.7 kB / 0.6943 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.9172, allocations: 0.8634 MB / 0.6952 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00462/0.9218, allocations: 1.473 MB / 0.6966 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005736/0.9276, allocations: 5.237 MB / 0.7017 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/0.9319, allocations: 196.2 kB / 0.7019 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006204/0.9325, allocations: 392.3 kB / 0.7023 GB, free: 117 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 49 (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.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (774): * Single equations (assignments): 770 * 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%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007084/0.9332, allocations: 456.2 kB / 0.7027 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004636/0.9337, allocations: 336.4 kB / 0.703 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004965/0.9387, allocations: 3.22 MB / 0.7062 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-05/0.9387, allocations: 18.97 kB / 0.7062 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.9387, allocations: 12.28 kB / 0.7062 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.9388, allocations: 7.078 kB / 0.7062 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/0.9509, allocations: 7.311 MB / 0.7133 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.186e-06/0.9509, allocations: 1.375 kB / 0.7133 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/0.9525, allocations: 293.5 kB / 0.7136 GB, free: 113.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001788/0.9543, allocations: 0.6674 MB / 0.7143 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.9544, allocations: 7.812 kB / 0.7143 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005541/0.96, allocations: 4.821 MB / 0.719 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.96, allocations: 3.188 kB / 0.719 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007017/0.967, allocations: 5.956 MB / 0.7248 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008867/0.9679, allocations: 381.6 kB / 0.7252 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004916/0.9684, allocations: 7.906 kB / 0.7252 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.9697, allocations: 52.77 kB / 0.7252 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.97, allocations: 80.59 kB / 0.7253 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.9701, allocations: 44 kB / 0.7254 GB, free: 107.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002865/0.973, allocations: 2.244 MB / 0.7275 GB, free: 105.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004613/0.9776, allocations: 0.8859 MB / 0.7284 GB, free: 104.4 MB / 426.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 (133): * Single equations (assignments): 129 * 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.0004304/0.978, allocations: 150.8 kB / 0.7286 GB, free: 104.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006794/0.9848, allocations: 5.149 MB / 0.7336 GB, free: 99.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.9849, allocations: 0 / 0.7336 GB, free: 99.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002291/0.9872, allocations: 1.715 MB / 0.7353 GB, free: 98.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.989, allocations: 349.5 kB / 0.7356 GB, free: 97.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/1.002, allocations: 8.171 MB / 0.7436 GB, free: 90.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003754/1.006, allocations: 3.805 MB / 0.7473 GB, free: 87.55 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/1.006, allocations: 0 / 0.7473 GB, free: 87.55 MB / 426.7 MB Notification: Performance of Templates: time 0.05957/1.065, allocations: 37.53 MB / 0.7839 GB, free: 58.22 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches