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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007692/0.0007692, allocations: 94.16 kB / 17.31 MB, free: 6.109 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.0008351/0.0008351, allocations: 178.4 kB / 18.21 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.109/1.109, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000206/0.000206, allocations: 7.938 kB / 302.1 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06936/0.06958, allocations: 50.42 MB / 352.5 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1548/0.2244, allocations: 55.44 MB / 407.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01956/0.244, allocations: 11.6 MB / 419.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004907/0.2489, allocations: 239.9 kB / 419.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007673/0.2497, allocations: 439.8 kB / 420.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002968/0.2527, allocations: 1.839 MB / 422 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009968/0.2537, allocations: 0.6553 MB / 422.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00517/0.2589, allocations: 6.555 MB / 429.2 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0058/0.2647, allocations: 5.742 MB / 435 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.2659, allocations: 1.202 MB / 436.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.2677, allocations: 1.981 MB / 438.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002312/0.2679, allocations: 144 kB / 438.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.2694, allocations: 1.127 MB / 439.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.2706, allocations: 1.85 MB / 441.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.272, allocations: 2.089 MB / 443.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004018/0.276, allocations: 5.868 MB / 449.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.276, allocations: 4 kB / 449.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.276, allocations: 0 / 449.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.164e-05/0.2761, allocations: 0 / 449.3 MB, free: 3.441 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.005996/0.2821, allocations: 4.255 MB / 453.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.2821, allocations: 8.031 kB / 453.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007763/0.2899, allocations: 2.229 MB / 455.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003861/0.2938, allocations: 2.8 MB / 458.5 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.2939, allocations: 250.2 kB / 458.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004876/0.2944, allocations: 323.8 kB / 459.1 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01326/0.3077, allocations: 10.84 MB / 469.9 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-05/0.3078, allocations: 39.69 kB / 470 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003448/0.3081, allocations: 155.8 kB / 470.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003085/0.3112, allocations: 2.154 MB / 472.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01331/0.3245, allocations: 9.238 MB / 481.5 MB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03568/0.3602, allocations: 41.92 MB / 0.5112 GB, free: 7.258 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009974/0.3702, allocations: 4.491 MB / 0.5156 GB, free: 2.621 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.3727, allocations: 2.496 MB / 0.518 GB, free: 120 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008296/0.3811, allocations: 7.396 MB / 0.5252 GB, free: 8.512 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.3811, allocations: 51.5 kB / 0.5253 GB, free: 8.453 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 3.536e-06/0.3811, allocations: 0 / 0.5253 GB, free: 8.453 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.1662/0.5473, allocations: 18.76 MB / 0.5436 GB, free: 149.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5474, allocations: 177.3 kB / 0.5438 GB, free: 149 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004997/0.5524, allocations: 4.62 MB / 0.5483 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.5525, allocations: 52.44 kB / 0.5483 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001245/0.5538, allocations: 3.213 MB / 0.5515 GB, free: 144.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00039/0.5542, allocations: 0.7614 MB / 0.5522 GB, free: 144.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005021/0.5547, allocations: 0.5555 MB / 0.5527 GB, free: 144 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.995e-05/0.5547, allocations: 306.2 kB / 0.553 GB, free: 143.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.5574, allocations: 2.395 MB / 0.5554 GB, free: 142.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/0.5607, allocations: 6.146 MB / 0.5614 GB, free: 137.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00603/0.5667, allocations: 9.227 MB / 0.5704 GB, free: 129.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.644e-05/0.5667, allocations: 36.72 kB / 0.5704 GB, free: 129.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01033/0.5771, allocations: 9.367 MB / 0.5796 GB, free: 122.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.5771, allocations: 60 kB / 0.5796 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.97e-05/0.5772, allocations: 132 kB / 0.5798 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/0.5795, allocations: 1.203 MB / 0.5809 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003192/0.5827, allocations: 1.447 MB / 0.5823 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006169/0.5889, allocations: 6.824 MB / 0.589 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/0.592, allocations: 364.1 kB / 0.5894 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003166/0.5924, allocations: 381.2 kB / 0.5897 GB, free: 112.2 MB / 446.1 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002134/0.5945, allocations: 2.246 MB / 0.5919 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003699/0.5949, allocations: 386.9 kB / 0.5923 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005367/0.6003, allocations: 4.058 MB / 0.5962 GB, free: 105.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.6003, allocations: 24.55 kB / 0.5963 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6003, allocations: 4 kB / 0.5963 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.6003, allocations: 7.969 kB / 0.5963 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.6113, allocations: 9.622 MB / 0.6057 GB, free: 95.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.6113, allocations: 11.94 kB / 0.6057 GB, free: 95.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.6125, allocations: 319.4 kB / 0.606 GB, free: 95.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.6146, allocations: 1.019 MB / 0.607 GB, free: 94.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.6148, allocations: 43.98 kB / 0.607 GB, free: 94.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006087/0.6208, allocations: 6.358 MB / 0.6132 GB, free: 87.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6209, allocations: 8 kB / 0.6132 GB, free: 87.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007207/0.6281, allocations: 7.046 MB / 0.6201 GB, free: 80.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004926/0.6286, allocations: 471.8 kB / 0.6206 GB, free: 80.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003637/0.6289, allocations: 36.61 kB / 0.6206 GB, free: 80.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.6303, allocations: 127.8 kB / 0.6207 GB, free: 80.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.6305, allocations: 130.2 kB / 0.6209 GB, free: 79.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6306, allocations: 56 kB / 0.6209 GB, free: 79.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002635/0.6333, allocations: 2.952 MB / 0.6238 GB, free: 76.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6333, allocations: 0 / 0.6238 GB, free: 76.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003401/0.6367, allocations: 1.093 MB / 0.6249 GB, free: 75.84 MB / 446.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 (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.0002865/0.637, allocations: 174.3 kB / 0.625 GB, free: 75.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005275/0.6423, allocations: 5.736 MB / 0.6306 GB, free: 69.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6423, allocations: 0 / 0.6306 GB, free: 69.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002376/0.6447, allocations: 2.062 MB / 0.6326 GB, free: 67.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004698/0.6494, allocations: 490.4 kB / 0.6331 GB, free: 67.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.6601, allocations: 12.95 MB / 0.6458 GB, free: 54.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002439/0.6626, allocations: 3.448 MB / 0.6491 GB, free: 50.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007387/0.6633, allocations: 311.4 kB / 0.6494 GB, free: 50.55 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.6633, allocations: 0 / 0.6494 GB, free: 50.55 MB / 446.1 MB Notification: Performance of Templates: time 0.1934/0.8568, allocations: 81.23 MB / 0.7287 GB, free: 112.6 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches