Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001645/0.001645, allocations: 115.9 kB / 18.41 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002046/0.002046, allocations: 203.5 kB / 19.36 MB, free: 3.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.5 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2359/0.2359, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 77.12 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 62.45 MB / 481.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.01762/0.1381, allocations: 17.83 MB / 499.3 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.1496, allocations: 5.634 MB / 0.4931 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003198/0.1528, allocations: 131.6 kB / 0.4932 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01079/0.1637, allocations: 6.265 MB / 0.4993 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007644/0.1713, allocations: 2.898 MB / 0.5022 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003586/0.175, allocations: 1.583 MB / 0.5037 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2318/0.4068, allocations: 9.864 MB / 0.5133 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01159/0.4184, allocations: 7.987 MB / 0.5211 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006155/0.4246, allocations: 3.121 MB / 0.5242 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006557/0.4312, allocations: 4.221 MB / 0.5283 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001994/0.4332, allocations: 0.6784 MB / 0.529 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003294/0.4365, allocations: 1.689 MB / 0.5306 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003302/0.4398, allocations: 3.817 MB / 0.5344 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003821/0.4437, allocations: 4.204 MB / 0.5385 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.4549, allocations: 12.98 MB / 0.5511 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4549, allocations: 0 / 0.5511 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.455, allocations: 0 / 0.5511 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003882/0.4554, allocations: 0 / 0.5511 GB, free: 10.43 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2491 * Number of variables: 2491 Notification: Performance of Generate backend data structure: time 0.02111/0.4765, allocations: 9.032 MB / 0.56 GB, free: 1.465 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.4765, allocations: 12.03 kB / 0.56 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.4931, allocations: 3.491 MB / 0.5634 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.5066, allocations: 6.021 MB / 0.5693 GB, free: 8.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003174/0.5069, allocations: 448 kB / 0.5697 GB, free: 7.766 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001671/0.5086, allocations: 0.5914 MB / 0.5703 GB, free: 7.223 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02877/0.5374, allocations: 17.11 MB / 0.587 GB, free: 5.336 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002095/0.5376, allocations: 87.02 kB / 0.5871 GB, free: 5.281 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000657/0.5383, allocations: 277.9 kB / 0.5873 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004688/0.543, allocations: 2.888 MB / 0.5901 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/0.5719, allocations: 14.34 MB / 0.6042 GB, free: 4.125 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08314/0.655, allocations: 64.41 MB / 0.667 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01754/0.6726, allocations: 6.608 MB / 0.6735 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00502/0.6777, allocations: 3.901 MB / 0.6773 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007673/0.6785, allocations: 0.6486 MB / 0.6779 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/0.6785, allocations: 64.16 kB / 0.678 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=231): time 4.849e-06/0.6786, allocations: 4 kB / 0.678 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of matching and sorting (n=255): time 0.08626/0.7648, allocations: 31.31 MB / 0.7086 GB, free: 7.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/0.765, allocations: 283 kB / 0.7089 GB, free: 7.434 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0124/0.7774, allocations: 7.315 MB / 0.716 GB, free: 136 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005897/0.7781, allocations: 61.7 kB / 0.7161 GB, free: 68 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.3927/1.171, allocations: 5.082 MB / 0.721 GB, free: 185.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.172, allocations: 0.9985 MB / 0.722 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003374/1.176, allocations: 1.847 MB / 0.7238 GB, free: 184.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.39e-05/1.176, allocations: 303 kB / 0.7241 GB, free: 184 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005451/1.181, allocations: 3.427 MB / 0.7274 GB, free: 182.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009102/1.19, allocations: 8.626 MB / 0.7359 GB, free: 174.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.205, allocations: 12.84 MB / 0.7484 GB, free: 164.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002947/1.205, allocations: 50.88 kB / 0.7484 GB, free: 164.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.02538/1.231, allocations: 13.84 MB / 0.762 GB, free: 159.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003775/1.231, allocations: 84.53 kB / 0.762 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003835/1.232, allocations: 181.9 kB / 0.7622 GB, free: 159.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005934/1.238, allocations: 2.311 MB / 0.7645 GB, free: 158.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006532/1.244, allocations: 2.028 MB / 0.7665 GB, free: 158.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/1.261, allocations: 16.7 MB / 0.7828 GB, free: 144.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007526/1.269, allocations: 0.4955 MB / 0.7832 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/1.27, allocations: 0.5231 MB / 0.7838 GB, free: 143.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1086): * Single equations (assignments): 1079 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006567/1.277, allocations: 3.406 MB / 0.7871 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.278, allocations: 0.6016 MB / 0.7877 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.289, allocations: 6.453 MB / 0.794 GB, free: 132.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.663e-05/1.289, allocations: 28 kB / 0.794 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-05/1.289, allocations: 12 kB / 0.794 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/1.289, allocations: 11.95 kB / 0.794 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02679/1.316, allocations: 14.29 MB / 0.808 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/1.316, allocations: 3.984 kB / 0.808 GB, free: 118.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/1.318, allocations: 399.4 kB / 0.8084 GB, free: 117.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004691/1.323, allocations: 1.998 MB / 0.8103 GB, free: 115.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003299/1.323, allocations: 45.62 kB / 0.8104 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/1.337, allocations: 15.62 MB / 0.8256 GB, free: 99.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.337, allocations: 3.938 kB / 0.8256 GB, free: 99.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.351, allocations: 10.13 MB / 0.8355 GB, free: 89.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.353, allocations: 0.6777 MB / 0.8362 GB, free: 88.62 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001607/1.354, allocations: 44 kB / 0.8362 GB, free: 88.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003351/1.358, allocations: 179.3 kB / 0.8364 GB, free: 88.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005933/1.358, allocations: 157.7 kB / 0.8365 GB, free: 88.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003016/1.359, allocations: 68.8 kB / 0.8366 GB, free: 88.19 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007356/1.366, allocations: 4.659 MB / 0.8412 GB, free: 83.55 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.7e-07/1.366, allocations: 0 / 0.8412 GB, free: 83.55 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008699/1.375, allocations: 1.738 MB / 0.8429 GB, free: 81.82 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (195): * Single equations (assignments): 188 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007518/1.376, allocations: 184 kB / 0.843 GB, free: 81.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01158/1.387, allocations: 8.497 MB / 0.8513 GB, free: 73.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.387, allocations: 0 / 0.8513 GB, free: 73.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003736/1.391, allocations: 2.948 MB / 0.8542 GB, free: 70.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006/1.397, allocations: 0.9132 MB / 0.8551 GB, free: 69.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02404/1.421, allocations: 16.12 MB / 0.8708 GB, free: 53.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009165/1.43, allocations: 5.227 MB / 0.8759 GB, free: 47.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006372/1.437, allocations: 2.681 MB / 0.8786 GB, free: 45.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001612/1.438, allocations: 403.4 kB / 0.8789 GB, free: 44.76 MB / 0.545 GB Notification: Performance of SimCode: time 1.683e-06/1.438, allocations: 0 / 0.8789 GB, free: 44.76 MB / 0.545 GB Notification: Performance of Templates: time 0.3174/1.756, allocations: 63.44 MB / 0.9409 GB, free: 163.3 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches