Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009466/0.0009466, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 94.3 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 8 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2379, allocations: 47.57 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03432/0.2723, allocations: 52.57 MB / 427.7 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02328/0.2956, allocations: 11.17 MB / 438.8 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009992/0.3056, allocations: 243.4 kB / 439.1 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008532/0.3142, allocations: 2.729 MB / 441.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02034/0.3346, allocations: 8.148 MB / 449.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.3381, allocations: 0.6709 MB / 450.6 MB, free: 4.973 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02424/0.3624, allocations: 19.47 MB / 470.1 MB, free: 1.477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007716/0.3701, allocations: 5.638 MB / 475.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002577/0.3728, allocations: 1.405 MB / 477.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002989/0.3758, allocations: 2.146 MB / 479.3 MB, free: 8.184 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006541/0.3764, allocations: 163.9 kB / 479.4 MB, free: 8.023 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002278/0.3787, allocations: 1.115 MB / 480.6 MB, free: 6.906 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001879/0.3806, allocations: 1.932 MB / 482.5 MB, free: 4.969 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002203/0.3828, allocations: 2.145 MB / 484.6 MB, free: 2.805 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006509/0.3894, allocations: 6.328 MB / 491 MB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/0.3894, allocations: 0 / 491 MB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3894, allocations: 0 / 491 MB, free: 12.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002462/0.3897, allocations: 0 / 491 MB, free: 12.46 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.008861/0.3985, allocations: 4.526 MB / 495.5 MB, free: 7.867 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3986, allocations: 8.031 kB / 495.5 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008732/0.4073, allocations: 2.287 MB / 497.8 MB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006096/0.4135, allocations: 2.956 MB / 0.489 GB, free: 2.547 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.4137, allocations: 266.8 kB / 0.4893 GB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008765/0.4146, allocations: 355.7 kB / 0.4896 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1929/0.6074, allocations: 11.62 MB / 0.5009 GB, free: 107.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.6076, allocations: 43.81 kB / 0.501 GB, free: 107.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004558/0.6081, allocations: 167.7 kB / 0.5011 GB, free: 107.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00333/0.6114, allocations: 2.34 MB / 0.5034 GB, free: 106.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/0.6279, allocations: 9.94 MB / 0.5131 GB, free: 98.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04412/0.672, allocations: 44.52 MB / 0.5566 GB, free: 53.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/0.6828, allocations: 5.342 MB / 0.5618 GB, free: 47.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/0.6857, allocations: 2.801 MB / 0.5646 GB, free: 45.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/0.6967, allocations: 8.134 MB / 0.5725 GB, free: 36.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.6967, allocations: 59.81 kB / 0.5726 GB, free: 36.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=216): time 4.658e-06/0.6967, allocations: 0 / 0.5726 GB, free: 36.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=237): time 0.04429/0.741, allocations: 20.75 MB / 0.5928 GB, free: 15.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.423e-05/0.7412, allocations: 184.2 kB / 0.593 GB, free: 15.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005716/0.7469, allocations: 4.746 MB / 0.5976 GB, free: 10.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000593/0.7475, allocations: 57.7 kB / 0.5977 GB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001719/0.7492, allocations: 3.383 MB / 0.601 GB, free: 7.496 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001105/0.7504, allocations: 0.8951 MB / 0.6019 GB, free: 6.609 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.7507, allocations: 132 kB / 0.602 GB, free: 6.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000353/0.751, allocations: 0.603 MB / 0.6026 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003593/0.7546, allocations: 2.68 MB / 0.6052 GB, free: 3.188 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005984/0.7606, allocations: 6.583 MB / 0.6116 GB, free: 10.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01365/0.7743, allocations: 10.05 MB / 0.6214 GB, free: 14.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/0.7745, allocations: 40 kB / 0.6215 GB, free: 14.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02038/0.7949, allocations: 10.13 MB / 0.6314 GB, free: 4.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.7951, allocations: 64 kB / 0.6314 GB, free: 4.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/0.7953, allocations: 136.1 kB / 0.6316 GB, free: 4.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002972/0.7983, allocations: 1.215 MB / 0.6328 GB, free: 3.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005547/0.8038, allocations: 1.61 MB / 0.6343 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009568/0.8134, allocations: 6.768 MB / 0.6409 GB, free: 10.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/0.8187, allocations: 383.4 kB / 0.6413 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001332/0.82, allocations: 412.4 kB / 0.6417 GB, free: 9.82 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005364/0.8254, allocations: 2.374 MB / 0.644 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009988/0.8264, allocations: 414.6 kB / 0.6444 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009444/0.8359, allocations: 4.76 MB / 0.6491 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-05/0.8359, allocations: 27.98 kB / 0.6491 GB, free: 2.219 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.668e-05/0.836, allocations: 7.938 kB / 0.6491 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-05/0.836, allocations: 23.83 kB / 0.6491 GB, free: 2.188 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1955/1.032, allocations: 10.87 MB / 0.6597 GB, free: 139.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-05/1.032, allocations: 12.72 kB / 0.6597 GB, free: 139.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/1.033, allocations: 435.6 kB / 0.6602 GB, free: 139.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/1.036, allocations: 1.018 MB / 0.6612 GB, free: 138.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002044/1.036, allocations: 45.64 kB / 0.6612 GB, free: 138.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007463/1.044, allocations: 6.358 MB / 0.6674 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.044, allocations: 11.78 kB / 0.6674 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/1.054, allocations: 8.134 MB / 0.6754 GB, free: 132.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/1.056, allocations: 0.8455 MB / 0.6762 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004563/1.056, allocations: 47.83 kB / 0.6762 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/1.058, allocations: 152.2 kB / 0.6764 GB, free: 132.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003349/1.058, allocations: 144.2 kB / 0.6765 GB, free: 132.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/1.058, allocations: 70.02 kB / 0.6766 GB, free: 132.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00379/1.062, allocations: 3.024 MB / 0.6795 GB, free: 130.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.062, allocations: 0 / 0.6795 GB, free: 130.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004234/1.066, allocations: 1.183 MB / 0.6807 GB, free: 130.3 MB / 426.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 (198): * Single equations (assignments): 194 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004161/1.067, allocations: 193 kB / 0.6809 GB, free: 130.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008547/1.075, allocations: 6.493 MB / 0.6872 GB, free: 123.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.075, allocations: 7.406 kB / 0.6872 GB, free: 123.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003177/1.078, allocations: 2.397 MB / 0.6896 GB, free: 121.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006614/1.085, allocations: 0.5037 MB / 0.6901 GB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01989/1.105, allocations: 13.61 MB / 0.7033 GB, free: 107.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004412/1.109, allocations: 3.662 MB / 0.7069 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/1.111, allocations: 343.4 kB / 0.7072 GB, free: 103.3 MB / 426.7 MB Notification: Performance of SimCode: time 8.61e-07/1.111, allocations: 0 / 0.7072 GB, free: 103.3 MB / 426.7 MB Notification: Performance of Templates: time 0.09175/1.203, allocations: 88.34 MB / 0.7935 GB, free: 14.75 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches