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.001404/0.001404, allocations: 177.1 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 221.5 MB / 230.3 MB, free: 7.539 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008937/0.0008937, allocations: 93.7 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.431e-05/1.433e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09119, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/0.4094, allocations: 99.8 MB / 487.3 MB, free: 11.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000346/0.4098, allocations: 87.94 kB / 487.3 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.444/0.8538, allocations: 90.49 MB / 0.5643 GB, free: 96.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.8539, allocations: 0 / 0.5643 GB, free: 96.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003064/0.8542, allocations: 90.16 kB / 0.5644 GB, free: 96.37 MB / 426.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.0151/0.8693, allocations: 4.418 MB / 0.5687 GB, free: 94.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.8694, allocations: 9.125 kB / 0.5687 GB, free: 94.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01896/0.8884, allocations: 4.432 MB / 0.573 GB, free: 94.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01292/0.9013, allocations: 4.759 MB / 0.5777 GB, free: 93.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.9017, allocations: 143.2 kB / 0.5778 GB, free: 93.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001963/0.9036, allocations: 263.8 kB / 0.5781 GB, free: 93.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01072/0.9144, allocations: 6.425 MB / 0.5843 GB, free: 93.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/0.9294, allocations: 9.887 MB / 0.594 GB, free: 89.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/0.9296, allocations: 68.66 kB / 0.5941 GB, free: 89.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004857/0.9301, allocations: 34.28 kB / 0.5941 GB, free: 89.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/0.9312, allocations: 1.093 MB / 0.5952 GB, free: 89.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03775/0.969, allocations: 48.32 MB / 0.6423 GB, free: 53.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.9726, allocations: 3.637 MB / 0.6459 GB, free: 51.28 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002023/0.9746, allocations: 2.1 MB / 0.6479 GB, free: 49.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006701/0.9753, allocations: 0.6851 MB / 0.6486 GB, free: 48.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.9754, allocations: 51.88 kB / 0.6487 GB, free: 48.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=168): time 4.348e-06/0.9754, allocations: 0 / 0.6487 GB, free: 48.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.02561/1.001, allocations: 14.81 MB / 0.6631 GB, free: 35.87 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/1.001, allocations: 179.5 kB / 0.6633 GB, free: 35.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/1.005, allocations: 3.263 MB / 0.6665 GB, free: 32.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003506/1.005, allocations: 29.7 kB / 0.6665 GB, free: 32.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/1.007, allocations: 3.334 MB / 0.6698 GB, free: 29.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007313/1.008, allocations: 0.7096 MB / 0.6705 GB, free: 29.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/1.008, allocations: 5.969 kB / 0.6705 GB, free: 29.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002603/1.008, allocations: 0.569 MB / 0.671 GB, free: 28.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/1.01, allocations: 2.099 MB / 0.6731 GB, free: 26.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003503/1.014, allocations: 5.919 MB / 0.6788 GB, free: 19.22 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003618/1.018, allocations: 3.504 MB / 0.6823 GB, free: 15.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.721e-05/1.018, allocations: 40 kB / 0.6823 GB, free: 15.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=831) (initialization): time 0.0118/1.029, allocations: 7.881 MB / 0.69 GB, free: 7.918 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-05/1.03, allocations: 65.55 kB / 0.6901 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/1.03, allocations: 143.9 kB / 0.6902 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001819/1.031, allocations: 0.9186 MB / 0.6911 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/1.036, allocations: 1.516 MB / 0.6926 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00581/1.042, allocations: 5.483 MB / 0.6979 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004357/1.047, allocations: 231.4 kB / 0.6982 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008826/1.047, allocations: 391.6 kB / 0.6985 GB, free: 15.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 49 (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.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (783): * Single equations (assignments): 779 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000876/1.048, allocations: 462.1 kB / 0.699 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005951/1.049, allocations: 343.6 kB / 0.6993 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005585/1.055, allocations: 3.28 MB / 0.7025 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-05/1.055, allocations: 23.98 kB / 0.7025 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/1.055, allocations: 8 kB / 0.7025 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/1.055, allocations: 7.969 kB / 0.7025 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/1.068, allocations: 7.886 MB / 0.7102 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/1.068, allocations: 0 / 0.7102 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/1.069, allocations: 359.6 kB / 0.7106 GB, free: 2.688 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/1.071, allocations: 0.7073 MB / 0.7113 GB, free: 1.977 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/1.071, allocations: 12 kB / 0.7113 GB, free: 1.965 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2469/1.318, allocations: 4.91 MB / 0.7161 GB, free: 98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.936e-06/1.318, allocations: 6.219 kB / 0.7161 GB, free: 98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009411/1.328, allocations: 6.246 MB / 0.7222 GB, free: 97.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.329, allocations: 382.4 kB / 0.7226 GB, free: 97.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004702/1.329, allocations: 5.062 kB / 0.7226 GB, free: 97.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/1.331, allocations: 88.53 kB / 0.7226 GB, free: 97.17 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/1.331, allocations: 111.6 kB / 0.7227 GB, free: 97.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.331, allocations: 52.22 kB / 0.7228 GB, free: 97.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004461/1.336, allocations: 2.176 MB / 0.7249 GB, free: 97.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.336, allocations: 0 / 0.7249 GB, free: 97.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006852/1.343, allocations: 0.9068 MB / 0.7258 GB, free: 97.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 144 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006007/1.343, allocations: 149.1 kB / 0.726 GB, free: 96.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009149/1.352, allocations: 5.191 MB / 0.731 GB, free: 96.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.352, allocations: 0 / 0.731 GB, free: 96.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/1.355, allocations: 1.771 MB / 0.7328 GB, free: 96.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002155/1.357, allocations: 362.2 kB / 0.7331 GB, free: 96.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/1.37, allocations: 8.152 MB / 0.7411 GB, free: 95.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003649/1.374, allocations: 3.538 MB / 0.7445 GB, free: 94.26 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005013/1.379, allocations: 2.085 MB / 0.7465 GB, free: 94.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007846/1.38, allocations: 244 kB / 0.7468 GB, free: 94.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/1.38, allocations: 0 / 0.7468 GB, free: 94.21 MB / 442.7 MB Notification: Performance of Templates: time 0.0615/1.441, allocations: 31.92 MB / 0.778 GB, free: 92.78 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/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