Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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) 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 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(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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007704/0.0007704, allocations: 95.48 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3445/0.3445, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002865, allocations: 11.98 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3471, allocations: 62.95 MB / 0.5159 GB, free: 37.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01974/0.3669, allocations: 26.42 MB / 0.5417 GB, free: 18.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01418/0.3811, allocations: 6.458 MB / 0.548 GB, free: 14.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005866/0.3871, allocations: 118.8 kB / 0.5481 GB, free: 13.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004133/0.3912, allocations: 1.271 MB / 0.5493 GB, free: 13.55 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01443/0.4057, allocations: 4.025 MB / 0.5533 GB, free: 11.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.4083, allocations: 455.7 kB / 0.5537 GB, free: 11.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008143/0.4165, allocations: 4.434 MB / 0.558 GB, free: 10.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005167/0.4217, allocations: 2.237 MB / 0.5602 GB, free: 9.227 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002919/0.4247, allocations: 1.031 MB / 0.5612 GB, free: 8.711 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003659/0.4284, allocations: 1.672 MB / 0.5629 GB, free: 7.887 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.4295, allocations: 130.2 kB / 0.563 GB, free: 7.883 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003152/0.4326, allocations: 1.035 MB / 0.564 GB, free: 7.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00265/0.4353, allocations: 1.521 MB / 0.5655 GB, free: 6.488 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.4377, allocations: 1.698 MB / 0.5671 GB, free: 4.773 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005106/0.4428, allocations: 4.728 MB / 0.5718 GB, free: 36 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4429, allocations: 0 / 0.5718 GB, free: 36 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4429, allocations: 4 kB / 0.5718 GB, free: 32 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001942/0.4431, allocations: 0 / 0.5718 GB, free: 32 kB / 378.7 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.0075/0.4506, allocations: 3.453 MB / 0.5751 GB, free: 12.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.4507, allocations: 12.03 kB / 0.5751 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.4617, allocations: 3.294 MB / 0.5784 GB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004737/0.4665, allocations: 2.029 MB / 0.5803 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.4667, allocations: 184.9 kB / 0.5805 GB, free: 6.938 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.4681, allocations: 331.6 kB / 0.5808 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01655/0.4847, allocations: 10.47 MB / 0.5911 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.122e-05/0.4848, allocations: 31.75 kB / 0.5911 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000371/0.4852, allocations: 111.8 kB / 0.5912 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003621/0.4888, allocations: 2.498 MB / 0.5936 GB, free: 9.055 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01891/0.5078, allocations: 9.971 MB / 0.6034 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05638/0.5642, allocations: 35.04 MB / 0.6376 GB, free: 11.17 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008002/0.5722, allocations: 4.292 MB / 0.6418 GB, free: 6.648 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00329/0.5756, allocations: 2.147 MB / 0.6439 GB, free: 4.504 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001523/0.5771, allocations: 1.315 MB / 0.6452 GB, free: 2.965 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.445e-05/0.5772, allocations: 56.5 kB / 0.6452 GB, free: 2.902 MB / 458.7 MB Notification: Performance of pre-optimization done (n=236): time 1.415e-05/0.5773, allocations: 3.984 kB / 0.6452 GB, free: 2.898 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.04166/0.6189, allocations: 16.73 MB / 0.6616 GB, free: 2.055 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001416/0.6204, allocations: 1.531 MB / 0.663 GB, free: 376 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.6252, allocations: 2.697 MB / 0.6657 GB, free: 13.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005124/0.6257, allocations: 61.61 kB / 0.6657 GB, free: 13.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002071/0.6278, allocations: 2.659 MB / 0.6683 GB, free: 10.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001351/0.6292, allocations: 0.9327 MB / 0.6692 GB, free: 9.941 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005747/0.6298, allocations: 104 kB / 0.6693 GB, free: 9.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004815/0.6303, allocations: 0.5496 MB / 0.6699 GB, free: 9.281 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004/0.6343, allocations: 2.4 MB / 0.6722 GB, free: 6.875 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007036/0.6413, allocations: 5.371 MB / 0.6775 GB, free: 60 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2578/0.8991, allocations: 8.448 MB / 0.6857 GB, free: 119.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000122/0.8993, allocations: 30.28 kB / 0.6858 GB, free: 119.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=740) (initialization): time 0.02208/0.9214, allocations: 9.695 MB / 0.6952 GB, free: 117.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.9216, allocations: 50.12 kB / 0.6953 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01435/0.936, allocations: 4.885 MB / 0.7 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/0.948, allocations: 2.459 MB / 0.7024 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004787/0.9528, allocations: 1.26 MB / 0.7037 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008592/0.9614, allocations: 5.866 MB / 0.7094 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004454/0.9659, allocations: 399.6 kB / 0.7098 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/0.9673, allocations: 322.6 kB / 0.7101 GB, free: 112.2 MB / 490.7 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 (678): * Single equations (assignments): 666 * 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.005066/0.9723, allocations: 2.052 MB / 0.7121 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008933/0.9733, allocations: 268.9 kB / 0.7123 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/0.9835, allocations: 5.32 MB / 0.7175 GB, free: 109.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00804/0.9916, allocations: 4.585 MB / 0.722 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/0.9917, allocations: 2.406 kB / 0.722 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/0.9917, allocations: 15.19 kB / 0.722 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02098/1.013, allocations: 14.41 MB / 0.7361 GB, free: 95.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/1.013, allocations: 8.219 kB / 0.7361 GB, free: 95.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/1.014, allocations: 411.3 kB / 0.7365 GB, free: 94.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003804/1.018, allocations: 1.232 MB / 0.7377 GB, free: 93.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002459/1.018, allocations: 64.67 kB / 0.7378 GB, free: 93.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/1.022, allocations: 4.45 MB / 0.7421 GB, free: 88.83 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006831/1.023, allocations: 1.469 MB / 0.7436 GB, free: 87.23 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/1.033, allocations: 7.974 MB / 0.7513 GB, free: 79.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007877/1.034, allocations: 333.5 kB / 0.7517 GB, free: 78.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/1.034, allocations: 51.98 kB / 0.7517 GB, free: 78.81 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/1.035, allocations: 203.5 kB / 0.7519 GB, free: 78.61 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/1.036, allocations: 164.8 kB / 0.7521 GB, free: 78.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001672/1.036, allocations: 75.98 kB / 0.7521 GB, free: 78.38 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001946/1.038, allocations: 1.64 MB / 0.7537 GB, free: 76.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.038, allocations: 0 / 0.7537 GB, free: 76.73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004072/1.042, allocations: 1.057 MB / 0.7548 GB, free: 75.68 MB / 490.7 MB 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.000452/1.042, allocations: 186.9 kB / 0.7549 GB, free: 75.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008357/1.051, allocations: 6.423 MB / 0.7612 GB, free: 69.03 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/1.051, allocations: 0 / 0.7612 GB, free: 69.03 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003847/1.055, allocations: 2.834 MB / 0.764 GB, free: 66.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004866/1.059, allocations: 381.1 kB / 0.7644 GB, free: 65.77 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.075, allocations: 12.66 MB / 0.7767 GB, free: 52.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002814/1.078, allocations: 3.238 MB / 0.7799 GB, free: 49.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.079, allocations: 263.4 kB / 0.7801 GB, free: 49.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.593e-06/1.079, allocations: 0 / 0.7801 GB, free: 49.41 MB / 490.7 MB Notification: Performance of Templates: time 0.3918/1.471, allocations: 129.1 MB / 0.9062 GB, free: 156.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches