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.001608/0.001608, allocations: 108.4 kB / 18.35 MB, free: 4.629 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.001727/0.001727, allocations: 187 kB / 19.29 MB, free: 3.699 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.335/1.335, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.002024/0.002024, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1178, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.02187/0.1397, allocations: 12.48 MB / 341.2 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.1524, allocations: 4.198 MB / 345.4 MB, free: 3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002/0.1544, allocations: 75.81 kB / 345.5 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009606/0.1641, allocations: 3.224 MB / 348.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008351/0.1725, allocations: 2.093 MB / 350.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003322/0.1758, allocations: 0.8188 MB / 351.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009102/0.1849, allocations: 4.557 MB / 356.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006604/0.1916, allocations: 4.166 MB / 360.3 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003091/0.1947, allocations: 1.768 MB / 362.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004052/0.1988, allocations: 2.344 MB / 364.5 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008702/0.1996, allocations: 388 kB / 364.8 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.2029, allocations: 1.28 MB / 366.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002894/0.2058, allocations: 2.221 MB / 368.3 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003497/0.2093, allocations: 2.548 MB / 370.9 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.2203, allocations: 8.241 MB / 379.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2204, allocations: 0 / 379.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2204, allocations: 0 / 379.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002053/0.2206, allocations: 0 / 379.1 MB, free: 1.129 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.1509/0.3715, allocations: 5.512 MB / 384.6 MB, free: 49.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.3716, allocations: 9.016 kB / 384.6 MB, free: 49.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009145/0.3807, allocations: 2.235 MB / 386.9 MB, free: 49.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006254/0.387, allocations: 3.001 MB / 389.9 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3872, allocations: 266.7 kB / 390.1 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006109/0.3878, allocations: 358.1 kB / 390.5 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01461/0.4024, allocations: 11.65 MB / 402.1 MB, free: 39.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.749e-05/0.4025, allocations: 39.59 kB / 402.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003672/0.4029, allocations: 168.9 kB / 402.4 MB, free: 39.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.4058, allocations: 2.338 MB / 404.7 MB, free: 37.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.4196, allocations: 9.983 MB / 414.7 MB, free: 27.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/0.4612, allocations: 44.27 MB / 458.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/0.475, allocations: 5.326 MB / 464.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003612/0.4786, allocations: 2.822 MB / 467.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/0.4911, allocations: 8.125 MB / 475.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.4911, allocations: 55.81 kB / 475.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=216): time 4.728e-06/0.4912, allocations: 3.938 kB / 475.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=237): time 0.04844/0.5396, allocations: 20.77 MB / 496 MB, free: 8.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.878e-05/0.5397, allocations: 180.2 kB / 496.2 MB, free: 7.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006486/0.5462, allocations: 4.762 MB / 0.4892 GB, free: 3.074 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001641/0.5464, allocations: 61.7 kB / 0.4893 GB, free: 3.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002164/0.5486, allocations: 3.397 MB / 0.4926 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007796/0.5494, allocations: 0.8868 MB / 0.4935 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001777/0.5512, allocations: 1.386 MB / 0.4948 GB, free: 13.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.212e-05/0.5512, allocations: 301.1 kB / 0.4951 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00385/0.5551, allocations: 2.703 MB / 0.4978 GB, free: 10.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006428/0.5615, allocations: 6.618 MB / 0.5042 GB, free: 1.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01116/0.5727, allocations: 10.08 MB / 0.5141 GB, free: 5.715 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.796e-05/0.5728, allocations: 43.94 kB / 0.5141 GB, free: 5.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01572/0.5886, allocations: 10.18 MB / 0.5241 GB, free: 11.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.614e-05/0.5887, allocations: 64 kB / 0.5241 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/0.5888, allocations: 136 kB / 0.5242 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/0.5917, allocations: 1.207 MB / 0.5254 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004783/0.5965, allocations: 1.602 MB / 0.527 GB, free: 8.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009069/0.6055, allocations: 7.268 MB / 0.5341 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004136/0.6097, allocations: 379.5 kB / 0.5344 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005671/0.6103, allocations: 415.9 kB / 0.5348 GB, free: 292 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.1641/0.7743, allocations: 2.364 MB / 0.5372 GB, free: 141.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007297/0.7751, allocations: 418.2 kB / 0.5375 GB, free: 141.8 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007733/0.7828, allocations: 4.768 MB / 0.5422 GB, free: 140.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/0.7829, allocations: 24.84 kB / 0.5422 GB, free: 140.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.7829, allocations: 6.141 kB / 0.5422 GB, free: 140.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.377e-05/0.7829, allocations: 15.28 kB / 0.5423 GB, free: 140.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.7989, allocations: 10.88 MB / 0.5529 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/0.7989, allocations: 3.938 kB / 0.5529 GB, free: 136.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/0.8008, allocations: 431.5 kB / 0.5533 GB, free: 136.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/0.8031, allocations: 1.016 MB / 0.5543 GB, free: 136.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.8033, allocations: 49.81 kB / 0.5543 GB, free: 136.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007155/0.8104, allocations: 6.831 MB / 0.561 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.8105, allocations: 10.56 kB / 0.561 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009696/0.8202, allocations: 8.156 MB / 0.569 GB, free: 128.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.822, allocations: 0.8376 MB / 0.5698 GB, free: 127.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004612/0.8225, allocations: 47.77 kB / 0.5698 GB, free: 127.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.8241, allocations: 151.8 kB / 0.57 GB, free: 127.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003404/0.8245, allocations: 149.7 kB / 0.5701 GB, free: 127.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.8246, allocations: 60 kB / 0.5702 GB, free: 127.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003514/0.8282, allocations: 3.05 MB / 0.5732 GB, free: 124 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8282, allocations: 0 / 0.5732 GB, free: 124 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0044/0.8326, allocations: 1.19 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.0004197/0.833, allocations: 192.4 kB / 0.5745 GB, free: 122.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007288/0.8403, allocations: 6.533 MB / 0.5809 GB, free: 116.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.8403, allocations: 4 kB / 0.5809 GB, free: 116.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002919/0.8432, allocations: 2.405 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.00233/0.8456, allocations: 0.5183 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.01259/0.8582, 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.002914/0.8611, allocations: 3.673 MB / 0.5983 GB, free: 98.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003997/0.8651, allocations: 2.215 MB / 0.6005 GB, free: 96.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008841/0.866, allocations: 295.4 kB / 0.6007 GB, free: 95.81 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.866, allocations: 0 / 0.6007 GB, free: 95.81 MB / 430.1 MB Notification: Performance of Templates: time 0.06126/0.9273, allocations: 40.29 MB / 0.6401 GB, free: 55.65 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 gbode -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