Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000975/0.0009751, allocations: 99.14 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009648/0.000965, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2155, allocations: 50.46 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04306/0.2586, allocations: 56.88 MB / 463.9 MB, free: 2.711 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.282, allocations: 11.7 MB / 475.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009186/0.2913, allocations: 243.4 kB / 475.9 MB, free: 6.742 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005972/0.2973, allocations: 3.172 MB / 479 MB, free: 3.562 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00439/0.3017, allocations: 1.81 MB / 480.9 MB, free: 1.746 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001774/0.3035, allocations: 0.7684 MB / 481.6 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007571/0.3111, allocations: 6.658 MB / 488.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004457/0.3156, allocations: 4.015 MB / 492.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.3177, allocations: 1.479 MB / 493.8 MB, free: 4.746 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002896/0.3206, allocations: 2.317 MB / 496.1 MB, free: 2.422 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006105/0.3213, allocations: 256 kB / 496.3 MB, free: 2.172 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.3235, allocations: 1.213 MB / 497.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001785/0.3253, allocations: 2.01 MB / 499.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002765/0.328, allocations: 2.279 MB / 0.4901 GB, free: 12.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006853/0.3349, allocations: 7.301 MB / 0.4972 GB, free: 5.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.335, allocations: 0 / 0.4972 GB, free: 5.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.335, allocations: 0 / 0.4972 GB, free: 5.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001142/0.3351, allocations: 0 / 0.4972 GB, free: 5.324 MB / 378.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.01066/0.3458, allocations: 5.202 MB / 0.5023 GB, free: 52 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3458, allocations: 12.03 kB / 0.5023 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1652/0.511, allocations: 2.175 MB / 0.5044 GB, free: 96.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005907/0.517, allocations: 2.767 MB / 0.5071 GB, free: 94.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.5171, allocations: 245.4 kB / 0.5074 GB, free: 94.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005519/0.5177, allocations: 336.6 kB / 0.5077 GB, free: 94.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0133/0.531, allocations: 10.83 MB / 0.5183 GB, free: 85.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.153e-05/0.5311, allocations: 39.59 kB / 0.5183 GB, free: 85.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.5315, allocations: 157.1 kB / 0.5185 GB, free: 85.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00279/0.5343, allocations: 2.149 MB / 0.5206 GB, free: 83.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.5482, allocations: 9.222 MB / 0.5296 GB, free: 74.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04041/0.5887, allocations: 41.81 MB / 0.5704 GB, free: 31.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00987/0.5986, allocations: 4.491 MB / 0.5748 GB, free: 26.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/0.601, allocations: 2.496 MB / 0.5772 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009544/0.6106, allocations: 7.386 MB / 0.5844 GB, free: 16.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.6106, allocations: 47.56 kB / 0.5845 GB, free: 16.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 5.07e-06/0.6106, allocations: 0 / 0.5845 GB, free: 16.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.04066/0.6513, allocations: 18.77 MB / 0.6028 GB, free: 13.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.709e-05/0.6514, allocations: 179.5 kB / 0.603 GB, free: 13.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005811/0.6573, allocations: 4.605 MB / 0.6075 GB, free: 8.848 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/0.6576, allocations: 53.7 kB / 0.6075 GB, free: 8.789 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002226/0.6599, allocations: 3.203 MB / 0.6106 GB, free: 5.543 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007999/0.6607, allocations: 0.7597 MB / 0.6114 GB, free: 4.773 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/0.6623, allocations: 1.289 MB / 0.6127 GB, free: 3.473 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.6624, allocations: 313.1 kB / 0.6129 GB, free: 3.164 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003308/0.6657, allocations: 2.39 MB / 0.6153 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005466/0.6712, allocations: 6.116 MB / 0.6213 GB, free: 8.805 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009284/0.6805, allocations: 9.203 MB / 0.6302 GB, free: 13.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.845e-05/0.6805, allocations: 40 kB / 0.6303 GB, free: 13.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=827) (initialization): time 0.01532/0.6959, allocations: 9.329 MB / 0.6394 GB, free: 4.387 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/0.696, allocations: 65 kB / 0.6395 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.6961, allocations: 129.2 kB / 0.6396 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002998/0.6991, allocations: 1.192 MB / 0.6407 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004519/0.7037, allocations: 1.447 MB / 0.6422 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008902/0.7126, allocations: 6.835 MB / 0.6488 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004133/0.7168, allocations: 351.5 kB / 0.6492 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005059/0.7173, allocations: 380 kB / 0.6495 GB, free: 9.871 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 597 * Number of states: 0 () * Number of discrete variables: 46 (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.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 (769): * Single equations (assignments): 763 * 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.002845/0.7201, allocations: 2.233 MB / 0.6517 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005356/0.7207, allocations: 390.9 kB / 0.6521 GB, free: 7.238 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006757/0.7274, allocations: 4.065 MB / 0.656 GB, free: 3.152 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/0.7275, allocations: 24 kB / 0.6561 GB, free: 3.129 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.7275, allocations: 4 kB / 0.6561 GB, free: 3.125 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.7275, allocations: 7.969 kB / 0.6561 GB, free: 3.117 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/0.7436, allocations: 9.623 MB / 0.6655 GB, free: 9.344 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.7436, allocations: 4.469 kB / 0.6655 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.745, allocations: 319.5 kB / 0.6658 GB, free: 9.027 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002587/0.7476, allocations: 1.026 MB / 0.6668 GB, free: 8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.7478, allocations: 40 kB / 0.6668 GB, free: 7.961 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007942/0.7558, allocations: 6.346 MB / 0.673 GB, free: 1.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.7558, allocations: 11.94 kB / 0.673 GB, free: 1.469 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2284/0.9842, allocations: 44.44 MB / 0.7164 GB, free: 129.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006333/0.9849, allocations: 465.3 kB / 0.7169 GB, free: 129.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004364/0.9854, allocations: 40 kB / 0.7169 GB, free: 129.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/0.9868, allocations: 123.2 kB / 0.717 GB, free: 129.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.9872, allocations: 132.2 kB / 0.7172 GB, free: 129.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.9873, allocations: 56 kB / 0.7172 GB, free: 129.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003293/0.9906, allocations: 2.944 MB / 0.7201 GB, free: 126.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9906, allocations: 7.5 kB / 0.7201 GB, free: 126.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004736/0.9954, allocations: 1.471 MB / 0.7215 GB, free: 124.7 MB / 458.7 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.0003706/0.9957, allocations: 178 kB / 0.7217 GB, free: 124.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006588/1.002, allocations: 5.727 MB / 0.7273 GB, free: 118.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.002, allocations: 0 / 0.7273 GB, free: 118.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002711/1.005, allocations: 2.058 MB / 0.7293 GB, free: 116.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002706/1.008, allocations: 483.8 kB / 0.7298 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/1.024, allocations: 14.15 MB / 0.7436 GB, free: 102.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003149/1.027, allocations: 3.527 MB / 0.747 GB, free: 98.62 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004615/1.032, allocations: 2.081 MB / 0.7491 GB, free: 96.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.033, allocations: 271.4 kB / 0.7493 GB, free: 96.27 MB / 458.7 MB Notification: Performance of SimCode: time 8.71e-07/1.033, allocations: 0 / 0.7493 GB, free: 96.27 MB / 458.7 MB Notification: Performance of Templates: time 0.06921/1.102, allocations: 52.93 MB / 0.801 GB, free: 43.5 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches