Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008986/0.0008986, allocations: 99.98 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009437/0.0009438, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.2 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2274/0.2274, allocations: 45.92 MB / 344 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003296, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1546, allocations: 63.46 MB / 481.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02414/0.1788, allocations: 25.02 MB / 0.4945 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.197, allocations: 6.695 MB / 0.5011 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006641/0.2037, allocations: 119.7 kB / 0.5012 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005623/0.2093, allocations: 1.283 MB / 0.5024 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01886/0.2282, allocations: 3.9 MB / 0.5063 GB, free: 312 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3509/0.5791, allocations: 393 kB / 0.5066 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006619/0.5858, allocations: 2.218 MB / 0.5088 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004282/0.5901, allocations: 2.16 MB / 0.5109 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002095/0.5922, allocations: 0.8633 MB / 0.5117 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.5949, allocations: 1.183 MB / 0.5129 GB, free: 11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000636/0.5955, allocations: 128.8 kB / 0.513 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002903/0.5984, allocations: 0.8569 MB / 0.5139 GB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002435/0.6009, allocations: 1.418 MB / 0.5152 GB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.6024, allocations: 0.7484 MB / 0.516 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008008/0.6105, allocations: 4.722 MB / 0.5206 GB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.6105, allocations: 0 / 0.5206 GB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6105, allocations: 0 / 0.5206 GB, free: 10.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002447/0.6108, allocations: 0.8438 kB / 0.5206 GB, free: 10.63 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.01118/0.6219, allocations: 3.594 MB / 0.5241 GB, free: 8.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.622, allocations: 9.094 kB / 0.5241 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.6369, allocations: 3.892 MB / 0.5279 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/0.6441, allocations: 2.252 MB / 0.5301 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.6444, allocations: 181.6 kB / 0.5303 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001991/0.6464, allocations: 333.9 kB / 0.5306 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02084/0.6672, allocations: 10.53 MB / 0.5409 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001556/0.6674, allocations: 27.31 kB / 0.5409 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/0.6686, allocations: 117 kB / 0.541 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003877/0.6725, allocations: 2.497 MB / 0.5435 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0231/0.6956, allocations: 10.04 MB / 0.5533 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07312/0.7688, allocations: 35.13 MB / 0.5876 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009644/0.7785, allocations: 4.305 MB / 0.5918 GB, free: 3.637 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001601/0.7801, allocations: 1.317 MB / 0.5931 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.658e-05/0.7803, allocations: 56.56 kB / 0.5931 GB, free: 2.051 MB / 430.1 MB Notification: Performance of pre-optimization done (n=236): time 2.829e-05/0.7803, allocations: 1.75 kB / 0.5931 GB, free: 2.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.052/0.8323, allocations: 17.29 MB / 0.61 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001719/0.8341, allocations: 1.545 MB / 0.6115 GB, free: 14.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006382/0.8405, allocations: 2.926 MB / 0.6144 GB, free: 11.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007004/0.8412, allocations: 57.7 kB / 0.6144 GB, free: 11.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002251/0.8435, allocations: 2.667 MB / 0.617 GB, free: 9.242 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001815/0.8453, allocations: 0.9344 MB / 0.6179 GB, free: 8.316 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007258/0.8461, allocations: 105.3 kB / 0.618 GB, free: 8.215 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000542/0.8466, allocations: 0.5416 MB / 0.6186 GB, free: 7.664 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004164/0.8508, allocations: 2.404 MB / 0.6209 GB, free: 5.254 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006553/0.8574, allocations: 5.34 MB / 0.6261 GB, free: 14.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006263/0.8637, allocations: 3.593 MB / 0.6296 GB, free: 10.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/0.8638, allocations: 28 kB / 0.6297 GB, free: 10.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.0261/0.8899, allocations: 9.688 MB / 0.6391 GB, free: 1.219 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.8901, allocations: 52 kB / 0.6392 GB, free: 1.168 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01602/0.9062, allocations: 4.893 MB / 0.644 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01189/0.9181, allocations: 2.472 MB / 0.6464 GB, free: 9.773 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005043/0.9232, allocations: 1.261 MB / 0.6476 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008936/0.9322, allocations: 6.173 MB / 0.6536 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005419/0.9376, allocations: 391.6 kB / 0.654 GB, free: 1.684 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/0.9392, allocations: 317.1 kB / 0.6543 GB, free: 1.375 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (670): * Single equations (assignments): 658 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006263/0.9454, allocations: 2.067 MB / 0.6563 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009985/0.9465, allocations: 272.4 kB / 0.6566 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/0.9589, allocations: 5.322 MB / 0.6618 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01086/0.9698, allocations: 4.595 MB / 0.6663 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/0.9699, allocations: 3.953 kB / 0.6663 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.854e-05/0.9699, allocations: 7.969 kB / 0.6663 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03594/1.006, allocations: 14.42 MB / 0.6804 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-05/1.006, allocations: 12 kB / 0.6804 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/1.008, allocations: 399.4 kB / 0.6808 GB, free: 6.023 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004507/1.013, allocations: 1.252 MB / 0.682 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006236/1.013, allocations: 63.48 kB / 0.682 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005032/1.018, allocations: 4.528 MB / 0.6865 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001114/1.019, allocations: 1.483 MB / 0.6879 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01645/1.036, allocations: 8.781 MB / 0.6965 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/1.037, allocations: 349.4 kB / 0.6968 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/1.038, allocations: 51.98 kB / 0.6969 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.041, allocations: 191.7 kB / 0.6971 GB, free: 4.504 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006542/1.041, allocations: 168.8 kB / 0.6972 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003663/1.042, allocations: 78.86 kB / 0.6973 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004444/1.046, allocations: 1.816 MB / 0.6991 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.11e-07/1.046, allocations: 0 / 0.6991 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008258/1.055, allocations: 1.07 MB / 0.7001 GB, free: 1.371 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001265/1.056, allocations: 210.7 kB / 0.7003 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01392/1.07, allocations: 6.372 MB / 0.7065 GB, free: 10.75 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/1.07, allocations: 384 / 0.7065 GB, free: 10.75 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006505/1.076, allocations: 2.839 MB / 0.7093 GB, free: 7.844 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003237/1.08, allocations: 359.3 kB / 0.7096 GB, free: 7.496 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3493/1.429, allocations: 12.17 MB / 0.7215 GB, free: 165.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008175/1.437, allocations: 3.317 MB / 0.7248 GB, free: 164.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006342/1.444, allocations: 2.073 MB / 0.7268 GB, free: 164.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009585/1.445, allocations: 219.6 kB / 0.727 GB, free: 164.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.452e-06/1.445, allocations: 0 / 0.727 GB, free: 164.3 MB / 0.545 GB Notification: Performance of Templates: time 0.06431/1.509, allocations: 34.93 MB / 0.7611 GB, free: 146.8 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches