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.001624/0.001624, allocations: 109.4 kB / 17.73 MB, free: 5.344 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.00194/0.00194, allocations: 192.2 kB / 18.66 MB, free: 4.418 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.358/1.358, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001329/0.001329, allocations: 52.41 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09759, allocations: 46.62 MB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1733/0.2709, allocations: 12.49 MB / 387.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.2832, allocations: 4.188 MB / 391.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004446/0.2878, allocations: 74 kB / 391.9 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009542/0.2974, allocations: 3.232 MB / 395.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007176/0.3046, allocations: 2.077 MB / 397.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002553/0.3072, allocations: 0.8253 MB / 398 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00783/0.315, allocations: 4.554 MB / 402.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00678/0.3219, allocations: 4.18 MB / 406.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003822/0.3257, allocations: 1.758 MB / 408.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003934/0.3297, allocations: 2.35 MB / 410.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.3311, allocations: 387.8 kB / 411.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003313/0.3344, allocations: 1.279 MB / 412.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.3373, allocations: 2.233 MB / 414.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003841/0.3411, allocations: 2.544 MB / 417.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.3503, allocations: 8.249 MB / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3504, allocations: 0 / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3504, allocations: 4 kB / 425.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001823/0.3506, allocations: 0 / 425.6 MB, free: 12.97 MB / 350.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.01001/0.3606, allocations: 5.521 MB / 431.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3606, allocations: 8.031 kB / 431.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009241/0.3699, allocations: 2.232 MB / 433.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005368/0.3753, allocations: 2.991 MB / 436.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.3755, allocations: 274.7 kB / 436.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007985/0.3763, allocations: 351.7 kB / 436.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/0.3942, allocations: 11.65 MB / 448.6 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-05/0.3943, allocations: 43.59 kB / 448.6 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004101/0.3947, allocations: 167.8 kB / 448.8 MB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003778/0.3985, allocations: 2.35 MB / 451.1 MB, free: 2.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01759/0.4161, allocations: 9.971 MB / 461.1 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04983/0.466, allocations: 44.27 MB / 0.4935 GB, free: 11.13 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01282/0.4788, allocations: 5.334 MB / 0.4987 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003546/0.4824, allocations: 2.814 MB / 0.5015 GB, free: 2.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/0.4941, allocations: 8.124 MB / 0.5094 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.4942, allocations: 67.8 kB / 0.5095 GB, free: 10.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 4.899e-06/0.4942, allocations: 3.938 kB / 0.5095 GB, free: 10.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05761/0.5518, allocations: 20.78 MB / 0.5298 GB, free: 5.484 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.769e-05/0.552, allocations: 184.2 kB / 0.53 GB, free: 5.266 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006893/0.5589, allocations: 4.758 MB / 0.5346 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005166/0.5594, allocations: 65.69 kB / 0.5347 GB, free: 436 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/0.5618, allocations: 3.393 MB / 0.538 GB, free: 12.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/0.563, allocations: 0.8946 MB / 0.5389 GB, free: 12.08 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002004/0.565, allocations: 1.38 MB / 0.5402 GB, free: 10.69 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5651, allocations: 305.1 kB / 0.5405 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004296/0.5694, allocations: 2.699 MB / 0.5431 GB, free: 7.684 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2081/0.7775, allocations: 6.611 MB / 0.5496 GB, free: 142.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01406/0.7916, allocations: 10.08 MB / 0.5594 GB, free: 136.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001548/0.7918, allocations: 39.53 kB / 0.5595 GB, free: 136.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02358/0.8154, allocations: 10.18 MB / 0.5694 GB, free: 132.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.8156, allocations: 63.09 kB / 0.5695 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003427/0.816, allocations: 138.5 kB / 0.5696 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00413/0.8201, allocations: 1.199 MB / 0.5708 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006477/0.8266, allocations: 1.608 MB / 0.5723 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009486/0.8361, allocations: 7.266 MB / 0.5794 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00677/0.8429, allocations: 384.8 kB / 0.5798 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001205/0.8442, allocations: 401.6 kB / 0.5802 GB, free: 128.4 MB / 478.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.003161/0.8474, allocations: 2.384 MB / 0.5825 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005812/0.8479, allocations: 416 kB / 0.5829 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007302/0.8552, allocations: 4.773 MB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.943e-05/0.8553, allocations: 31.5 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.8554, allocations: 6.781 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.761e-05/0.8554, allocations: 11.48 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/0.8716, allocations: 10.79 MB / 0.5982 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.256e-05/0.8717, allocations: 4 kB / 0.5982 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.8737, allocations: 427.3 kB / 0.5986 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002346/0.876, allocations: 1.02 MB / 0.5996 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002354/0.8763, allocations: 44 kB / 0.5996 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007333/0.8836, allocations: 6.88 MB / 0.6063 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.8836, allocations: 12.48 kB / 0.6063 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.8939, allocations: 8.164 MB / 0.6143 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/0.8958, allocations: 0.8326 MB / 0.6151 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006056/0.8964, allocations: 51.98 kB / 0.6152 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/0.8984, allocations: 151.5 kB / 0.6153 GB, free: 100.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003848/0.8988, allocations: 145.6 kB / 0.6155 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.8989, allocations: 68 kB / 0.6155 GB, free: 100.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003845/0.9028, allocations: 3.054 MB / 0.6185 GB, free: 97.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9028, allocations: 0 / 0.6185 GB, free: 97.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005726/0.9085, allocations: 1.178 MB / 0.6197 GB, free: 96.48 MB / 478.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.0005964/0.9092, allocations: 196.8 kB / 0.6198 GB, free: 96.29 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00894/0.9181, allocations: 6.536 MB / 0.6262 GB, free: 89.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.9182, allocations: 4 kB / 0.6262 GB, free: 89.78 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003686/0.9219, allocations: 2.418 MB / 0.6286 GB, free: 87.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/0.9252, allocations: 0.5029 MB / 0.6291 GB, free: 86.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/0.9412, allocations: 11.22 MB / 0.64 GB, free: 75.58 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003111/0.9443, allocations: 3.675 MB / 0.6436 GB, free: 71.88 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004258/0.9486, allocations: 2.219 MB / 0.6458 GB, free: 69.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009273/0.9496, allocations: 291.4 kB / 0.6461 GB, free: 69.37 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9496, allocations: 0 / 0.6461 GB, free: 69.37 MB / 478.1 MB Notification: Performance of Templates: time 0.06647/1.016, allocations: 42.64 MB / 0.6877 GB, free: 26.78 MB / 478.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/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