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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 186.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.0008988, allocations: 105.4 kB / 291.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008185/0.0008185, allocations: 43.94 kB / 350 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2096, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04195/0.2516, allocations: 56.88 MB / 456.4 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02336/0.275, allocations: 11.66 MB / 468 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01167/0.2867, allocations: 243.4 kB / 468.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006143/0.293, allocations: 3.183 MB / 471.4 MB, free: 9.125 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.2978, allocations: 1.827 MB / 473.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.2995, allocations: 0.7723 MB / 474 MB, free: 6.52 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007843/0.3074, allocations: 6.589 MB / 480.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005019/0.3124, allocations: 4.027 MB / 484.7 MB, free: 11.83 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002406/0.3149, allocations: 1.471 MB / 486.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.318, allocations: 2.317 MB / 488.4 MB, free: 8.027 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008128/0.3188, allocations: 263.9 kB / 488.7 MB, free: 7.77 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002342/0.3212, allocations: 1.236 MB / 489.9 MB, free: 6.531 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001714/0.3229, allocations: 1.995 MB / 491.9 MB, free: 4.531 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002599/0.3255, allocations: 2.283 MB / 494.2 MB, free: 2.234 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008696/0.3342, allocations: 7.309 MB / 0.4898 GB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3342, allocations: 0 / 0.4898 GB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3343, allocations: 0 / 0.4898 GB, free: 10.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001677/0.3344, allocations: 0 / 0.4898 GB, free: 10.9 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.008965/0.3434, allocations: 5.19 MB / 0.4948 GB, free: 5.641 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3435, allocations: 16.03 kB / 0.4949 GB, free: 5.625 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008606/0.3521, allocations: 2.171 MB / 0.497 GB, free: 3.445 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008837/0.3609, allocations: 2.792 MB / 0.4997 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.3611, allocations: 246.3 kB / 0.4999 GB, free: 360 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008606/0.362, allocations: 331.8 kB / 0.5002 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1871/0.5491, allocations: 10.82 MB / 0.5108 GB, free: 95.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.5492, allocations: 42.52 kB / 0.5109 GB, free: 95.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003764/0.5496, allocations: 158.1 kB / 0.511 GB, free: 95.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00289/0.5525, allocations: 2.155 MB / 0.5131 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.5665, allocations: 9.226 MB / 0.5221 GB, free: 83.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03854/0.6051, allocations: 41.88 MB / 0.563 GB, free: 41.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009711/0.6148, allocations: 4.495 MB / 0.5674 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.6171, allocations: 2.49 MB / 0.5698 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009425/0.6266, allocations: 7.384 MB / 0.5771 GB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.6267, allocations: 55.5 kB / 0.5771 GB, free: 26.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 4.459e-06/0.6267, allocations: 0 / 0.5771 GB, free: 26.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.04298/0.6697, allocations: 18.75 MB / 0.5954 GB, free: 7.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.6698, allocations: 183.5 kB / 0.5956 GB, free: 7.254 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005888/0.6757, allocations: 4.626 MB / 0.6001 GB, free: 2.609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003158/0.676, allocations: 49.7 kB / 0.6002 GB, free: 2.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.6777, allocations: 3.211 MB / 0.6033 GB, free: 15.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/0.6787, allocations: 0.7636 MB / 0.604 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002311/0.6811, allocations: 1.305 MB / 0.6053 GB, free: 13.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.169e-05/0.6812, allocations: 305.1 kB / 0.6056 GB, free: 12.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003277/0.6844, allocations: 2.394 MB / 0.6079 GB, free: 10.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005787/0.6902, allocations: 6.139 MB / 0.6139 GB, free: 2.508 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009885/0.7001, allocations: 9.239 MB / 0.623 GB, free: 7.422 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.564e-05/0.7002, allocations: 36 kB / 0.623 GB, free: 7.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01531/0.7156, allocations: 9.346 MB / 0.6321 GB, free: 14.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.214e-05/0.7157, allocations: 63.98 kB / 0.6322 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/0.7158, allocations: 132 kB / 0.6323 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00298/0.7188, allocations: 1.196 MB / 0.6335 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004214/0.7231, allocations: 1.446 MB / 0.6349 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008697/0.7318, allocations: 6.83 MB / 0.6416 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/0.7359, allocations: 355.4 kB / 0.6419 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008567/0.7367, allocations: 387.9 kB / 0.6423 GB, free: 3.504 MB / 426.7 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.003385/0.7401, allocations: 2.241 MB / 0.6445 GB, free: 1.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007472/0.7409, allocations: 390.9 kB / 0.6448 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007228/0.7481, allocations: 4.058 MB / 0.6488 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/0.7482, allocations: 20 kB / 0.6488 GB, free: 12.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.7482, allocations: 8.406 kB / 0.6488 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.878e-05/0.7482, allocations: 11.97 kB / 0.6488 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02028/0.7685, allocations: 9.611 MB / 0.6582 GB, free: 2.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.302e-05/0.7686, allocations: 4 kB / 0.6582 GB, free: 2.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/0.7708, allocations: 319.5 kB / 0.6585 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004332/0.7751, allocations: 1.024 MB / 0.6595 GB, free: 1.641 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002698/0.7754, allocations: 40 kB / 0.6596 GB, free: 1.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2286/1.004, allocations: 6.358 MB / 0.6658 GB, free: 142.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.004, allocations: 7.703 kB / 0.6658 GB, free: 142.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06356/1.068, allocations: 44.44 MB / 0.7092 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006715/1.068, allocations: 461.7 kB / 0.7096 GB, free: 111.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004333/1.069, allocations: 43.94 kB / 0.7097 GB, free: 111.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/1.07, allocations: 119.8 kB / 0.7098 GB, free: 111.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/1.071, allocations: 124.5 kB / 0.7099 GB, free: 111.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/1.071, allocations: 59.75 kB / 0.71 GB, free: 111.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003562/1.075, allocations: 2.952 MB / 0.7128 GB, free: 108.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.075, allocations: 0 / 0.7128 GB, free: 108.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004862/1.079, allocations: 1.479 MB / 0.7143 GB, free: 106.9 MB / 442.7 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.0003569/1.08, allocations: 193.3 kB / 0.7145 GB, free: 106.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006482/1.086, allocations: 5.732 MB / 0.7201 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.086, allocations: 0 / 0.7201 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002707/1.089, allocations: 2.063 MB / 0.7221 GB, free: 98.99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/1.092, allocations: 491.2 kB / 0.7225 GB, free: 98.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/1.11, allocations: 14.14 MB / 0.7364 GB, free: 84.33 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003148/1.113, allocations: 3.523 MB / 0.7398 GB, free: 80.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004554/1.117, allocations: 2.091 MB / 0.7418 GB, free: 78.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009052/1.118, allocations: 275.4 kB / 0.7421 GB, free: 78.41 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/1.118, allocations: 0 / 0.7421 GB, free: 78.41 MB / 442.7 MB Notification: Performance of Templates: time 0.07085/1.189, allocations: 52.96 MB / 0.7938 GB, free: 25.66 MB / 442.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@2/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