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.001576/0.001576, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.001784/0.001784, allocations: 191 kB / 18.63 MB, free: 4.512 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.338/1.338, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001095, allocations: 41.59 kB / 302.1 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09223/0.09335, allocations: 49.46 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01151/0.1049, allocations: 11.4 MB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007626/0.1126, allocations: 4.077 MB / 367 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.114, allocations: 71.81 kB / 367.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00514/0.1192, allocations: 3.201 MB / 370.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.183/0.3021, allocations: 1.934 MB / 372.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.304, allocations: 0.8311 MB / 373 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006232/0.3102, allocations: 4.449 MB / 377.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005677/0.3159, allocations: 4.057 MB / 381.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002864/0.3188, allocations: 1.656 MB / 383.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003453/0.3222, allocations: 2.159 MB / 385.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001408/0.3237, allocations: 353.3 kB / 385.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003496/0.3272, allocations: 1.26 MB / 386.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003323/0.3305, allocations: 2.065 MB / 389 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005/0.3355, allocations: 2.35 MB / 391.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008982/0.3445, allocations: 7.628 MB / 399 MB, free: 1.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3445, allocations: 4 kB / 399 MB, free: 1.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3445, allocations: 3.984 kB / 399 MB, free: 1.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003006/0.3449, allocations: 0 / 399 MB, free: 1.172 MB / 302.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.01231/0.3572, allocations: 5.177 MB / 404.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3572, allocations: 8.031 kB / 404.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008219/0.3655, allocations: 2.181 MB / 406.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00799/0.3735, allocations: 2.845 MB / 409.2 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.3737, allocations: 249.9 kB / 409.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000848/0.3746, allocations: 341.9 kB / 409.8 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/0.3924, allocations: 10.82 MB / 420.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001114/0.3926, allocations: 43.69 kB / 420.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004255/0.393, allocations: 162.5 kB / 420.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/0.3964, allocations: 2.147 MB / 423 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/0.4141, allocations: 9.226 MB / 432.2 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0514/0.4656, allocations: 41.68 MB / 473.9 MB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/0.4766, allocations: 4.49 MB / 478.4 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/0.4797, allocations: 2.503 MB / 480.9 MB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/0.4915, allocations: 7.382 MB / 488.2 MB, free: 6.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.4916, allocations: 51.56 kB / 488.3 MB, free: 6.844 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.979e-06/0.4916, allocations: 0 / 488.3 MB, free: 6.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.04734/0.539, allocations: 18.75 MB / 0.4951 GB, free: 3.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.5391, allocations: 183.4 kB / 0.4953 GB, free: 3.762 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/0.5459, allocations: 4.614 MB / 0.4998 GB, free: 15.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004438/0.5464, allocations: 64.84 kB / 0.4999 GB, free: 15.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002198/0.5486, allocations: 3.211 MB / 0.503 GB, free: 11.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000909/0.5495, allocations: 0.7602 MB / 0.5038 GB, free: 11.1 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001614/0.5511, allocations: 1.299 MB / 0.505 GB, free: 9.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.066e-05/0.5512, allocations: 301.1 kB / 0.5053 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003199/0.5544, allocations: 2.394 MB / 0.5077 GB, free: 7.098 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005548/0.56, allocations: 6.147 MB / 0.5137 GB, free: 15.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/0.57, allocations: 9.229 MB / 0.5227 GB, free: 4.051 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-05/0.5701, allocations: 43.94 kB / 0.5227 GB, free: 4.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.1932/0.7634, allocations: 9.351 MB / 0.5319 GB, free: 141.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.7637, allocations: 65.75 kB / 0.5319 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000349/0.764, allocations: 131.8 kB / 0.532 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003404/0.7674, allocations: 1.19 MB / 0.5332 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00503/0.7725, allocations: 1.453 MB / 0.5346 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009223/0.7817, allocations: 7.289 MB / 0.5417 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004811/0.7866, allocations: 358.4 kB / 0.5421 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001026/0.7876, allocations: 384.1 kB / 0.5424 GB, free: 138.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.003803/0.7914, allocations: 2.24 MB / 0.5446 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007305/0.7922, allocations: 392.2 kB / 0.545 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006157/0.7984, allocations: 4.054 MB / 0.549 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.7984, allocations: 21.97 kB / 0.549 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.7984, allocations: 10.25 kB / 0.549 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.7984, allocations: 11.2 kB / 0.549 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/0.8119, allocations: 9.6 MB / 0.5584 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.8119, allocations: 6.594 kB / 0.5584 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.8132, allocations: 320.1 kB / 0.5587 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002224/0.8154, allocations: 1.021 MB / 0.5597 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.8156, allocations: 38.22 kB / 0.5597 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006923/0.8225, allocations: 6.835 MB / 0.5664 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.8226, allocations: 11.94 kB / 0.5664 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007764/0.8303, allocations: 7.043 MB / 0.5733 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.8316, allocations: 467.9 kB / 0.5737 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004601/0.8321, allocations: 36 kB / 0.5738 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.8336, allocations: 123.7 kB / 0.5739 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003117/0.8339, allocations: 125 kB / 0.574 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/0.834, allocations: 59.75 kB / 0.5741 GB, free: 118.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003277/0.8373, allocations: 2.956 MB / 0.577 GB, free: 115.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8373, allocations: 4 kB / 0.577 GB, free: 115.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004515/0.8419, allocations: 1.09 MB / 0.578 GB, free: 114.8 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.0004087/0.8423, allocations: 178.2 kB / 0.5782 GB, free: 114.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00683/0.8491, allocations: 5.76 MB / 0.5838 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.8492, allocations: 4.5 kB / 0.5838 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.8517, allocations: 2.059 MB / 0.5858 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.8542, allocations: 0.4988 MB / 0.5863 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01256/0.8668, allocations: 10.26 MB / 0.5963 GB, free: 95.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.8695, allocations: 3.459 MB / 0.5997 GB, free: 92.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003765/0.8733, allocations: 2.044 MB / 0.6017 GB, free: 90.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007142/0.874, allocations: 267.4 kB / 0.602 GB, free: 90.18 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.874, allocations: 0 / 0.602 GB, free: 90.18 MB / 446.1 MB Notification: Performance of Templates: time 0.05689/0.9309, allocations: 37.32 MB / 0.6384 GB, free: 53.16 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 -s cvode -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