Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000858/0.0008581, allocations: 96.09 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.7 MB / 247.5 MB, free: 9.465 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1956/0.1956, allocations: 46.19 MB / 345.9 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002713, allocations: 12.31 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 63.56 MB / 483.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3128/0.4287, allocations: 68.44 MB / 0.5392 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03452/0.4632, allocations: 14.06 MB / 0.553 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01716/0.4804, allocations: 313.4 kB / 0.5533 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.483, allocations: 0.5607 MB / 0.5538 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007903/0.491, allocations: 2.176 MB / 0.5559 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003086/0.4941, allocations: 0.9889 MB / 0.5569 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.5076, allocations: 9.922 MB / 0.5666 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01157/0.5192, allocations: 7.026 MB / 0.5734 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004052/0.5233, allocations: 1.634 MB / 0.575 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005004/0.5284, allocations: 2.838 MB / 0.5778 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.5298, allocations: 204 kB / 0.578 GB, free: 6.234 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003121/0.5329, allocations: 1.131 MB / 0.5791 GB, free: 5.102 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003418/0.5364, allocations: 2.419 MB / 0.5815 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004875/0.5413, allocations: 2.758 MB / 0.5842 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009046/0.5503, allocations: 7.552 MB / 0.5915 GB, free: 8.324 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.5504, allocations: 0 / 0.5915 GB, free: 8.324 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5504, allocations: 0 / 0.5915 GB, free: 8.324 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004017/0.5508, allocations: 0 / 0.5915 GB, free: 8.324 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.01517/0.566, allocations: 5.651 MB / 0.5971 GB, free: 2.598 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.017e-05/0.566, allocations: 8.875 kB / 0.5971 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03058/0.5966, allocations: 3.398 MB / 0.6004 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.6079, allocations: 4.314 MB / 0.6046 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003383/0.6083, allocations: 328.8 kB / 0.6049 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001686/0.61, allocations: 443.6 kB / 0.6053 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02669/0.6367, allocations: 13.11 MB / 0.6181 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000321/0.6371, allocations: 67.34 kB / 0.6182 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001402/0.6385, allocations: 203.8 kB / 0.6184 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004774/0.6433, allocations: 2.535 MB / 0.6209 GB, free: 9.262 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02367/0.667, allocations: 11.4 MB / 0.632 GB, free: 13.86 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06851/0.7355, allocations: 53.05 MB / 0.6838 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01457/0.7502, allocations: 5.664 MB / 0.6893 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004587/0.7548, allocations: 3.504 MB / 0.6928 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007565/0.7556, allocations: 0.6877 MB / 0.6934 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.363e-05/0.7556, allocations: 64.55 kB / 0.6935 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.13e-06/0.7556, allocations: 0 / 0.6935 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of matching and sorting (n=315): time 0.3278/1.083, allocations: 36.51 MB / 0.7292 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/1.084, allocations: 272.7 kB / 0.7294 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007199/1.091, allocations: 5.164 MB / 0.7345 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008314/1.092, allocations: 73.88 kB / 0.7345 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002055/1.094, allocations: 3.877 MB / 0.7383 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001511/1.095, allocations: 1.174 MB / 0.7395 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008763/1.096, allocations: 0.6731 MB / 0.7401 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.849e-05/1.096, allocations: 308.8 kB / 0.7404 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004475/1.101, allocations: 3.631 MB / 0.744 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005784/1.106, allocations: 7.807 MB / 0.7516 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/1.118, allocations: 12.24 MB / 0.7635 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.118, allocations: 44 kB / 0.7636 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02259/1.14, allocations: 13.74 MB / 0.777 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001623/1.141, allocations: 64 kB / 0.7771 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002177/1.141, allocations: 144 kB / 0.7772 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007088/1.148, allocations: 2.753 MB / 0.7799 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006094/1.154, allocations: 1.778 MB / 0.7816 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01957/1.174, allocations: 16.61 MB / 0.7978 GB, free: 108.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007188/1.181, allocations: 483 kB / 0.7983 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001512/1.182, allocations: 451.9 kB / 0.7987 GB, free: 107.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (948): * Single equations (assignments): 943 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005787/1.188, allocations: 2.737 MB / 0.8014 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001572/1.19, allocations: 486.9 kB / 0.8019 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.205, allocations: 8.039 MB / 0.8097 GB, free: 96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.424e-05/1.205, allocations: 32.5 kB / 0.8097 GB, free: 95.97 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.959e-05/1.205, allocations: 16 kB / 0.8098 GB, free: 95.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.965e-05/1.205, allocations: 15.94 kB / 0.8098 GB, free: 95.94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03122/1.236, allocations: 17.08 MB / 0.8265 GB, free: 78.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/1.236, allocations: 8 kB / 0.8265 GB, free: 78.78 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002412/1.239, allocations: 0.4922 MB / 0.827 GB, free: 78.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006157/1.245, allocations: 2.487 MB / 0.8294 GB, free: 75.79 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/1.245, allocations: 71.89 kB / 0.8294 GB, free: 75.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01677/1.262, allocations: 14.79 MB / 0.8439 GB, free: 60.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/1.262, allocations: 11.94 kB / 0.8439 GB, free: 60.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01956/1.282, allocations: 12.58 MB / 0.8562 GB, free: 47.89 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001747/1.284, allocations: 0.5417 MB / 0.8567 GB, free: 47.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001526/1.285, allocations: 56 kB / 0.8568 GB, free: 47.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00363/1.289, allocations: 231.7 kB / 0.857 GB, free: 47.04 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000798/1.29, allocations: 209.5 kB / 0.8572 GB, free: 46.83 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004402/1.29, allocations: 87.98 kB / 0.8573 GB, free: 46.75 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005819/1.296, allocations: 3.26 MB / 0.8605 GB, free: 43.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.71e-07/1.296, allocations: 288 / 0.8605 GB, free: 43.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008485/1.304, allocations: 1.526 MB / 0.8619 GB, free: 41.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009337/1.305, allocations: 215.2 kB / 0.8622 GB, free: 41.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01306/1.319, allocations: 8.853 MB / 0.8708 GB, free: 32.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.319, allocations: 5.609 kB / 0.8708 GB, free: 32.89 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00509/1.324, allocations: 3.565 MB / 0.8743 GB, free: 29.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01078/1.334, allocations: 0.6369 MB / 0.8749 GB, free: 28.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02829/1.363, allocations: 18.14 MB / 0.8926 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00622/1.369, allocations: 4.259 MB / 0.8968 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002027/1.371, allocations: 395.4 kB / 0.8972 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of SimCode: time 1.052e-06/1.371, allocations: 4 kB / 0.8972 GB, free: 5.754 MB / 0.5294 GB Notification: Performance of Templates: time 0.4043/1.775, allocations: 133.4 MB / 1.027 GB, free: 77.97 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches