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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 111 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 196.3 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 47.92 kB / 352 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2608, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01225/0.2731, allocations: 11.41 MB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008004/0.2812, allocations: 4.061 MB / 416.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.2831, allocations: 71.81 kB / 417 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005894/0.289, allocations: 3.193 MB / 420.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005209/0.2943, allocations: 1.953 MB / 422.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.2963, allocations: 0.8305 MB / 422.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0074/0.3037, allocations: 4.456 MB / 427.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008283/0.3121, allocations: 4.054 MB / 431.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004384/0.3165, allocations: 1.651 MB / 433.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005247/0.3218, allocations: 2.161 MB / 435.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00172/0.3235, allocations: 352 kB / 435.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004466/0.3281, allocations: 1.256 MB / 436.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004461/0.3326, allocations: 2.069 MB / 438.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006116/0.3387, allocations: 2.361 MB / 441.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0159/0.3547, allocations: 7.634 MB / 448.9 MB, free: 9.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.3548, allocations: 4 kB / 448.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3548, allocations: 0 / 448.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002876/0.3551, allocations: 0 / 448.9 MB, free: 9.125 MB / 366.1 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.01976/0.3749, allocations: 5.182 MB / 454.1 MB, free: 3.871 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.3749, allocations: 12.03 kB / 454.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01755/0.3925, allocations: 2.178 MB / 456.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.4032, allocations: 2.846 MB / 459.1 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003395/0.4036, allocations: 254.3 kB / 459.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.4052, allocations: 319.8 kB / 459.7 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/0.439, allocations: 10.82 MB / 470.5 MB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/0.4393, allocations: 43.5 kB / 470.6 MB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.4403, allocations: 163.8 kB / 470.7 MB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006851/0.4472, allocations: 2.15 MB / 472.9 MB, free: 344 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03239/0.4797, allocations: 9.219 MB / 482.1 MB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07039/0.5501, allocations: 41.69 MB / 0.5115 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.5622, allocations: 4.491 MB / 0.5159 GB, free: 7.633 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003266/0.5655, allocations: 2.493 MB / 0.5183 GB, free: 5.133 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.5772, allocations: 7.373 MB / 0.5255 GB, free: 13.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.5773, allocations: 59.5 kB / 0.5256 GB, free: 13.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.821e-06/0.5773, allocations: 0 / 0.5256 GB, free: 13.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2616/0.8389, allocations: 18.76 MB / 0.5439 GB, free: 129.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.8391, allocations: 178.9 kB / 0.5441 GB, free: 129 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/0.8447, allocations: 4.623 MB / 0.5486 GB, free: 127.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003487/0.8451, allocations: 53.2 kB / 0.5487 GB, free: 127.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.8466, allocations: 3.216 MB / 0.5518 GB, free: 124.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006196/0.8472, allocations: 0.7505 MB / 0.5525 GB, free: 124.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.8485, allocations: 1.299 MB / 0.5538 GB, free: 123.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.669e-05/0.8486, allocations: 308.7 kB / 0.5541 GB, free: 123.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/0.8512, allocations: 2.405 MB / 0.5564 GB, free: 122.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003698/0.8549, allocations: 6.14 MB / 0.5624 GB, free: 116.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007165/0.862, allocations: 9.234 MB / 0.5714 GB, free: 106.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.671e-05/0.8621, allocations: 36 kB / 0.5715 GB, free: 106.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01366/0.8758, allocations: 9.357 MB / 0.5806 GB, free: 97.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.75e-05/0.8759, allocations: 64 kB / 0.5807 GB, free: 97.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001067/0.876, allocations: 131.9 kB / 0.5808 GB, free: 97.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002498/0.8786, allocations: 1.195 MB / 0.582 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004146/0.8827, allocations: 1.45 MB / 0.5834 GB, free: 94.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007155/0.8899, allocations: 7.285 MB / 0.5905 GB, free: 87.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004669/0.8946, allocations: 359.5 kB / 0.5908 GB, free: 86.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006967/0.8953, allocations: 384 kB / 0.5912 GB, free: 86.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 766 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002765/0.8981, allocations: 2.236 MB / 0.5934 GB, free: 84.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006901/0.8988, allocations: 386.9 kB / 0.5938 GB, free: 83.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005786/0.9046, allocations: 4.058 MB / 0.5977 GB, free: 79.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.804e-05/0.9046, allocations: 27.22 kB / 0.5978 GB, free: 79.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.9046, allocations: 12 kB / 0.5978 GB, free: 79.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/0.9047, allocations: 7.969 kB / 0.5978 GB, free: 79.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.9178, allocations: 9.516 MB / 0.6071 GB, free: 70.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.9179, allocations: 4 kB / 0.6071 GB, free: 70.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.9192, allocations: 326 kB / 0.6074 GB, free: 69.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/0.9215, allocations: 1.018 MB / 0.6084 GB, free: 68.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.9217, allocations: 40 kB / 0.6084 GB, free: 68.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006889/0.9286, allocations: 6.878 MB / 0.6151 GB, free: 61.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.9286, allocations: 7.938 kB / 0.6151 GB, free: 61.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008391/0.937, allocations: 7.054 MB / 0.622 GB, free: 54.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.9381, allocations: 463.9 kB / 0.6225 GB, free: 54.19 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004947/0.9386, allocations: 35.91 kB / 0.6225 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.9401, allocations: 123.8 kB / 0.6226 GB, free: 54.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003057/0.9405, allocations: 132.9 kB / 0.6228 GB, free: 53.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.9406, allocations: 60 kB / 0.6228 GB, free: 53.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003263/0.9439, allocations: 2.96 MB / 0.6257 GB, free: 50.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9439, allocations: 0 / 0.6257 GB, free: 50.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004825/0.9487, allocations: 1.085 MB / 0.6268 GB, free: 49.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004298/0.9492, allocations: 169.3 kB / 0.6269 GB, free: 49.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006905/0.9561, allocations: 5.773 MB / 0.6326 GB, free: 43.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/0.9561, allocations: 0 / 0.6326 GB, free: 43.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00265/0.9588, allocations: 2.065 MB / 0.6346 GB, free: 41.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002853/0.9616, allocations: 0.5116 MB / 0.6351 GB, free: 41.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.9753, allocations: 10.73 MB / 0.6456 GB, free: 30.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002714/0.9781, allocations: 3.441 MB / 0.6489 GB, free: 27.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.9792, allocations: 315.4 kB / 0.6492 GB, free: 26.71 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.9792, allocations: 0 / 0.6492 GB, free: 26.71 MB / 462.1 MB Notification: Performance of Templates: time 0.3011/1.28, allocations: 82.83 MB / 0.7301 GB, free: 173.3 MB / 0.5137 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches