Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001414, allocations: 108 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 211.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.235, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01188/0.2469, allocations: 11.18 MB / 421.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008073/0.2551, allocations: 4.041 MB / 425.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.2569, allocations: 67.88 kB / 425.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005995/0.263, allocations: 3.173 MB / 428.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00494/0.2679, allocations: 1.887 MB / 430.3 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.2699, allocations: 0.8188 MB / 431.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00649/0.2764, allocations: 4.405 MB / 435.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005118/0.2816, allocations: 4.003 MB / 439.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002653/0.2843, allocations: 1.616 MB / 441.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0034/0.2877, allocations: 2.114 MB / 443.2 MB, free: 124 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001071/0.2888, allocations: 348 kB / 443.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.2915, allocations: 1.233 MB / 444.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002411/0.294, allocations: 2.011 MB / 446.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002554/0.2965, allocations: 2.272 MB / 449.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.3043, allocations: 7.362 MB / 456.5 MB, free: 2.859 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3043, allocations: 4 kB / 456.5 MB, free: 2.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3043, allocations: 0 / 456.5 MB, free: 2.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001926/0.3045, allocations: 0 / 456.5 MB, free: 2.855 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01108/0.3156, allocations: 5.057 MB / 461.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3157, allocations: 12.03 kB / 461.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008669/0.3244, allocations: 2.12 MB / 463.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005992/0.3304, allocations: 2.779 MB / 466.4 MB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001934/0.3306, allocations: 242.2 kB / 466.7 MB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009239/0.3316, allocations: 323.8 kB / 467 MB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.3489, allocations: 10.45 MB / 477.4 MB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.3491, allocations: 43.67 kB / 477.5 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004732/0.3496, allocations: 155.8 kB / 477.6 MB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003344/0.3529, allocations: 2.029 MB / 479.7 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0171/0.3701, allocations: 8.913 MB / 488.6 MB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04982/0.4199, allocations: 40.8 MB / 0.517 GB, free: 7.992 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.4314, allocations: 4.483 MB / 0.5213 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003225/0.4347, allocations: 2.493 MB / 0.5238 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.446, allocations: 7.349 MB / 0.5309 GB, free: 9.301 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.4461, allocations: 55.44 kB / 0.531 GB, free: 9.238 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.109e-06/0.4461, allocations: 4 kB / 0.531 GB, free: 9.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2302/0.6763, allocations: 18.65 MB / 0.5492 GB, free: 122.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.6764, allocations: 171.3 kB / 0.5494 GB, free: 121.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004778/0.6812, allocations: 4.559 MB / 0.5538 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/0.6817, allocations: 49.55 kB / 0.5539 GB, free: 120.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.6831, allocations: 3.124 MB / 0.5569 GB, free: 117.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007297/0.6838, allocations: 0.7597 MB / 0.5577 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/0.6852, allocations: 1.275 MB / 0.5589 GB, free: 116.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.97e-05/0.6852, allocations: 308.4 kB / 0.5592 GB, free: 116.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/0.6879, allocations: 2.384 MB / 0.5615 GB, free: 115.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/0.6916, allocations: 6.076 MB / 0.5675 GB, free: 108.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007015/0.6986, allocations: 9.146 MB / 0.5764 GB, free: 98.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.902e-05/0.6987, allocations: 36 kB / 0.5764 GB, free: 98.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.0135/0.7122, allocations: 9.279 MB / 0.5855 GB, free: 88.87 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.985e-05/0.7123, allocations: 67.92 kB / 0.5856 GB, free: 88.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001038/0.7124, allocations: 131.9 kB / 0.5857 GB, free: 88.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/0.715, allocations: 1.191 MB / 0.5869 GB, free: 87.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004135/0.7192, allocations: 1.439 MB / 0.5883 GB, free: 86.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007366/0.7266, allocations: 7.293 MB / 0.5954 GB, free: 78.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004542/0.7311, allocations: 347.5 kB / 0.5957 GB, free: 78.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008357/0.732, allocations: 380 kB / 0.5961 GB, free: 77.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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.002977/0.735, allocations: 2.174 MB / 0.5982 GB, free: 75.72 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006937/0.7357, allocations: 386.9 kB / 0.5986 GB, free: 75.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005834/0.7415, allocations: 4.057 MB / 0.6025 GB, free: 71.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.7416, allocations: 20 kB / 0.6026 GB, free: 71.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.7416, allocations: 4 kB / 0.6026 GB, free: 71.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.279e-05/0.7416, allocations: 15.91 kB / 0.6026 GB, free: 71.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.7566, allocations: 9.414 MB / 0.6118 GB, free: 61.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.106e-05/0.7567, allocations: 7.75 kB / 0.6118 GB, free: 61.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.7581, allocations: 323.5 kB / 0.6121 GB, free: 61.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002257/0.7604, allocations: 1.019 MB / 0.6131 GB, free: 60.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.7606, allocations: 43.98 kB / 0.6131 GB, free: 60.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007054/0.7677, allocations: 6.874 MB / 0.6198 GB, free: 53.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.7677, allocations: 4 kB / 0.6198 GB, free: 53.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008808/0.7765, allocations: 7.051 MB / 0.6267 GB, free: 46.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.7777, allocations: 461 kB / 0.6272 GB, free: 45.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000783/0.7785, allocations: 37.23 kB / 0.6272 GB, free: 45.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/0.7804, allocations: 127.8 kB / 0.6273 GB, free: 45.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/0.7807, allocations: 133 kB / 0.6274 GB, free: 45.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.7809, allocations: 49.09 kB / 0.6275 GB, free: 45.37 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004105/0.785, allocations: 2.927 MB / 0.6304 GB, free: 42.44 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.785, allocations: 0 / 0.6304 GB, free: 42.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004991/0.79, allocations: 1.057 MB / 0.6314 GB, free: 41.39 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.0004512/0.7905, allocations: 176.5 kB / 0.6316 GB, free: 41.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007073/0.7976, allocations: 5.735 MB / 0.6372 GB, free: 35.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.7976, allocations: 0 / 0.6372 GB, free: 35.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.8004, allocations: 2.063 MB / 0.6392 GB, free: 33.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002875/0.8033, allocations: 499 kB / 0.6396 GB, free: 32.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.818, allocations: 10.49 MB / 0.6499 GB, free: 22.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004725/0.8227, allocations: 3.359 MB / 0.6532 GB, free: 18.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/0.8246, allocations: 315.4 kB / 0.6535 GB, free: 18.65 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8246, allocations: 0 / 0.6535 GB, free: 18.65 MB / 462.1 MB Notification: Performance of Templates: time 0.3216/1.146, allocations: 80.82 MB / 0.7324 GB, free: 172.4 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches