Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001503/0.001503, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 229.5 MB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007441/0.0007442, allocations: 97.73 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.000251, allocations: 4 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2074, allocations: 51.42 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04036/0.2479, allocations: 51.77 MB / 463.8 MB, free: 5.988 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.2746, allocations: 14.8 MB / 478.6 MB, free: 6.363 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009803/0.2844, allocations: 239.4 kB / 478.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.2857, allocations: 445.8 kB / 479.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004696/0.2904, allocations: 1.818 MB / 481.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.2917, allocations: 0.6515 MB / 481.8 MB, free: 3.215 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006466/0.2982, allocations: 6.629 MB / 488.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007308/0.3055, allocations: 6.915 MB / 495.3 MB, free: 5.266 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.3073, allocations: 1.331 MB / 496.6 MB, free: 3.93 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002071/0.3094, allocations: 1.969 MB / 498.6 MB, free: 1.953 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.3097, allocations: 144 kB / 498.8 MB, free: 1.812 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.3115, allocations: 1.084 MB / 499.8 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.3128, allocations: 1.819 MB / 0.4899 GB, free: 14.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.3144, allocations: 2.101 MB / 0.492 GB, free: 12.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006005/0.3205, allocations: 7.092 MB / 0.4989 GB, free: 5.664 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3205, allocations: 0 / 0.4989 GB, free: 5.664 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3205, allocations: 0 / 0.4989 GB, free: 5.664 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.04e-05/0.3206, allocations: 0 / 0.4989 GB, free: 5.664 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.006878/0.3275, allocations: 4.278 MB / 0.5031 GB, free: 1.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3275, allocations: 12.03 kB / 0.5031 GB, free: 1.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1834/0.5109, allocations: 2.227 MB / 0.5052 GB, free: 94.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006483/0.5174, allocations: 2.771 MB / 0.5079 GB, free: 93.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.5177, allocations: 248.9 kB / 0.5082 GB, free: 93.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001024/0.5187, allocations: 338 kB / 0.5085 GB, free: 93.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01649/0.5352, allocations: 10.81 MB / 0.5191 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.5354, allocations: 43.58 kB / 0.5191 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004435/0.5358, allocations: 158.5 kB / 0.5193 GB, free: 85.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.5387, allocations: 2.152 MB / 0.5214 GB, free: 83.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01569/0.5544, allocations: 9.186 MB / 0.5303 GB, free: 74.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03806/0.5925, allocations: 41.92 MB / 0.5713 GB, free: 31.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009475/0.6021, allocations: 4.495 MB / 0.5757 GB, free: 26.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002437/0.6045, allocations: 2.491 MB / 0.5781 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008716/0.6133, allocations: 7.388 MB / 0.5853 GB, free: 16.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.6133, allocations: 47.56 kB / 0.5854 GB, free: 16.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 4.449e-06/0.6134, allocations: 0 / 0.5854 GB, free: 16.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.04036/0.6537, allocations: 18.74 MB / 0.6037 GB, free: 13.74 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.6538, allocations: 179.5 kB / 0.6038 GB, free: 13.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006264/0.6601, allocations: 4.579 MB / 0.6083 GB, free: 8.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000369/0.6605, allocations: 53.7 kB / 0.6084 GB, free: 8.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.6628, allocations: 3.214 MB / 0.6115 GB, free: 5.609 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009914/0.6638, allocations: 0.7598 MB / 0.6122 GB, free: 4.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/0.6641, allocations: 128 kB / 0.6124 GB, free: 4.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003885/0.6645, allocations: 0.5707 MB / 0.6129 GB, free: 4.137 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.6682, allocations: 2.374 MB / 0.6152 GB, free: 1.758 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/0.6742, allocations: 6.119 MB / 0.6212 GB, free: 9.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/0.6853, allocations: 9.209 MB / 0.6302 GB, free: 14.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/0.6855, allocations: 36 kB / 0.6302 GB, free: 14.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01841/0.7039, allocations: 9.302 MB / 0.6393 GB, free: 5.375 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.704, allocations: 60 kB / 0.6394 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.7042, allocations: 135.9 kB / 0.6395 GB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002902/0.7071, allocations: 1.207 MB / 0.6407 GB, free: 3.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/0.7118, allocations: 1.443 MB / 0.6421 GB, free: 2.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009239/0.721, allocations: 6.769 MB / 0.6487 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005841/0.7269, allocations: 351.4 kB / 0.649 GB, free: 11.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/0.728, allocations: 384 kB / 0.6494 GB, free: 10.9 MB / 442.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 {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004404/0.7324, allocations: 2.24 MB / 0.6516 GB, free: 8.652 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008993/0.7333, allocations: 390.9 kB / 0.652 GB, free: 8.266 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007105/0.7404, allocations: 4.054 MB / 0.6559 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.989e-05/0.7405, allocations: 20 kB / 0.6559 GB, free: 4.172 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.7405, allocations: 8 kB / 0.6559 GB, free: 4.164 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.93e-05/0.7405, allocations: 11.91 kB / 0.656 GB, free: 4.152 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/0.7584, allocations: 9.618 MB / 0.6654 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/0.7584, allocations: 8.031 kB / 0.6654 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/0.76, allocations: 323.5 kB / 0.6657 GB, free: 10.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002917/0.763, allocations: 1.022 MB / 0.6667 GB, free: 9.039 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002349/0.7632, allocations: 39.98 kB / 0.6667 GB, free: 9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008542/0.7718, allocations: 6.354 MB / 0.6729 GB, free: 2.512 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.844e-06/0.7718, allocations: 8 kB / 0.6729 GB, free: 2.504 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2245/0.9964, allocations: 7.029 MB / 0.6798 GB, free: 152.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.9976, allocations: 473.1 kB / 0.6802 GB, free: 152.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005124/0.9981, allocations: 39.02 kB / 0.6803 GB, free: 152.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.9996, allocations: 120.5 kB / 0.6804 GB, free: 152.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/1, allocations: 129 kB / 0.6805 GB, free: 152.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001416/1, allocations: 55.84 kB / 0.6806 GB, free: 152.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004388/1.005, allocations: 2.923 MB / 0.6834 GB, free: 151.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.005, allocations: 0 / 0.6834 GB, free: 151.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005147/1.01, allocations: 1.088 MB / 0.6845 GB, free: 151.5 MB / 458.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.0004088/1.01, allocations: 179.2 kB / 0.6847 GB, free: 151.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007208/1.017, allocations: 5.768 MB / 0.6903 GB, free: 149.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/1.017, allocations: 3.969 kB / 0.6903 GB, free: 149.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003073/1.021, allocations: 2.05 MB / 0.6923 GB, free: 148.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006537/1.027, allocations: 488.3 kB / 0.6928 GB, free: 148.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/1.042, allocations: 12.5 MB / 0.705 GB, free: 139.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003185/1.046, allocations: 3.462 MB / 0.7083 GB, free: 137.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004723/1.05, allocations: 2.042 MB / 0.7103 GB, free: 135.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009448/1.051, allocations: 271.4 kB / 0.7106 GB, free: 135.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.023e-06/1.051, allocations: 0 / 0.7106 GB, free: 135.4 MB / 458.7 MB Notification: Performance of Templates: time 0.06679/1.118, allocations: 40.74 MB / 0.7504 GB, free: 94.87 MB / 458.7 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches