Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001061/0.001061, allocations: 108.4 kB / 18.36 MB, free: 4.633 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.001023/0.001023, allocations: 191 kB / 19.29 MB, free: 3.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.285/1.285, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001196, allocations: 55.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08847/0.08968, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01248/0.1022, allocations: 12.49 MB / 341.2 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009114/0.1113, allocations: 4.198 MB / 345.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.1138, allocations: 75.75 kB / 345.5 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005795/0.1196, allocations: 3.22 MB / 348.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005532/0.1251, allocations: 2.089 MB / 350.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.127, allocations: 0.8266 MB / 351.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005799/0.1328, allocations: 4.561 MB / 356.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004467/0.1373, allocations: 4.158 MB / 360.3 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.14, allocations: 1.768 MB / 362.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00312/0.1432, allocations: 2.352 MB / 364.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008017/0.144, allocations: 388 kB / 364.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00212/0.1461, allocations: 1.276 MB / 366.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/0.148, allocations: 2.221 MB / 368.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002522/0.1506, allocations: 2.548 MB / 370.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007623/0.1582, allocations: 8.249 MB / 379.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1582, allocations: 0 / 379.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1583, allocations: 0 / 379.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001722/0.1584, allocations: 0 / 379.1 MB, free: 1.113 MB / 318.1 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.1616/0.32, allocations: 5.503 MB / 384.6 MB, free: 50.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.32, allocations: 9.5 kB / 384.7 MB, free: 50.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009885/0.3299, allocations: 2.235 MB / 386.9 MB, free: 49.65 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007587/0.3376, allocations: 3.006 MB / 389.9 MB, free: 48.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003833/0.338, allocations: 266.4 kB / 390.2 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001684/0.3397, allocations: 355.2 kB / 390.5 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01914/0.3588, allocations: 11.65 MB / 402.1 MB, free: 39.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.359, allocations: 47.58 kB / 402.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004433/0.3594, allocations: 167.8 kB / 402.4 MB, free: 39.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003014/0.3624, allocations: 2.338 MB / 404.7 MB, free: 37.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01627/0.3787, allocations: 9.972 MB / 414.7 MB, free: 27.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05221/0.431, allocations: 44.27 MB / 458.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01319/0.4442, allocations: 5.332 MB / 464.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003919/0.4482, allocations: 2.818 MB / 467.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/0.4641, allocations: 8.114 MB / 475.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.414e-05/0.4642, allocations: 71.73 kB / 475.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=216): time 6.713e-06/0.4642, allocations: 0 / 475.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=237): time 0.05852/0.5228, allocations: 20.77 MB / 496 MB, free: 8.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.5229, allocations: 176.2 kB / 496.2 MB, free: 7.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008673/0.5316, allocations: 4.766 MB / 0.4892 GB, free: 3.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005753/0.5322, allocations: 61.69 kB / 0.4893 GB, free: 3.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002979/0.5352, allocations: 3.389 MB / 0.4926 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001382/0.5366, allocations: 0.9024 MB / 0.4935 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003588/0.5402, allocations: 1.376 MB / 0.4948 GB, free: 13.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.018e-05/0.5403, allocations: 301.1 kB / 0.4951 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004642/0.545, allocations: 2.699 MB / 0.4978 GB, free: 10.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00757/0.5526, allocations: 6.622 MB / 0.5042 GB, free: 1.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01387/0.5665, allocations: 10.08 MB / 0.5141 GB, free: 5.719 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001313/0.5667, allocations: 39.94 kB / 0.5141 GB, free: 5.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02132/0.588, allocations: 10.18 MB / 0.524 GB, free: 11.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.5882, allocations: 64 kB / 0.5241 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002197/0.5884, allocations: 136.2 kB / 0.5242 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00333/0.5918, allocations: 1.207 MB / 0.5254 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006004/0.5978, allocations: 1.61 MB / 0.527 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.6081, allocations: 7.26 MB / 0.5341 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005819/0.6139, allocations: 391.4 kB / 0.5344 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/0.6154, allocations: 408 kB / 0.5348 GB, free: 296 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (835): * Single equations (assignments): 829 * 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.1713/0.7868, allocations: 2.374 MB / 0.5372 GB, free: 141.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009119/0.7877, allocations: 416.2 kB / 0.5376 GB, free: 141.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008723/0.7964, allocations: 4.766 MB / 0.5422 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.547e-05/0.7965, allocations: 26.98 kB / 0.5422 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/0.7965, allocations: 5.438 kB / 0.5422 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.192e-05/0.7966, allocations: 11.48 kB / 0.5422 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01986/0.8164, allocations: 10.88 MB / 0.5529 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.112e-05/0.8165, allocations: 3.906 kB / 0.5529 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001921/0.8184, allocations: 432.7 kB / 0.5533 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/0.8208, allocations: 1.019 MB / 0.5543 GB, free: 136.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002714/0.8211, allocations: 50.88 kB / 0.5543 GB, free: 136.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007544/0.8286, allocations: 6.827 MB / 0.561 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.8287, allocations: 10.84 kB / 0.561 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/0.8403, allocations: 8.16 MB / 0.569 GB, free: 128.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003499/0.8439, allocations: 0.8288 MB / 0.5698 GB, free: 127.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001538/0.8455, allocations: 53.86 kB / 0.5698 GB, free: 127.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002536/0.848, allocations: 148.5 kB / 0.57 GB, free: 127.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005554/0.8486, allocations: 151.9 kB / 0.5701 GB, free: 127.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002543/0.8489, allocations: 67.34 kB / 0.5702 GB, free: 127.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004128/0.853, allocations: 3.05 MB / 0.5732 GB, free: 124.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.853, allocations: 0 / 0.5732 GB, free: 124.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006024/0.8591, allocations: 1.187 MB / 0.5743 GB, free: 122.9 MB / 430.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 (198): * Single equations (assignments): 194 * 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.0005465/0.8596, allocations: 193.3 kB / 0.5745 GB, free: 122.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008766/0.8684, allocations: 6.531 MB / 0.5809 GB, free: 116.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.8685, allocations: 4 kB / 0.5809 GB, free: 116.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003216/0.8717, allocations: 2.407 MB / 0.5832 GB, free: 113.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.8747, allocations: 0.5119 MB / 0.5837 GB, free: 113.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01604/0.8907, allocations: 11.23 MB / 0.5947 GB, free: 102 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004289/0.895, allocations: 3.677 MB / 0.5983 GB, free: 98.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004494/0.8996, allocations: 2.221 MB / 0.6005 GB, free: 96.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000975/0.9006, allocations: 287.4 kB / 0.6007 GB, free: 95.82 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.9006, allocations: 0 / 0.6007 GB, free: 95.82 MB / 430.1 MB Notification: Performance of Templates: time 0.06325/0.9638, allocations: 40.29 MB / 0.6401 GB, free: 55.66 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches