Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001878/0.001877, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002828/0.002828, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.939/1.939, allocations: 222.9 MB / 242.4 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2099/0.2099, allocations: 44.18 MB / 336.8 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 64.16 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1347, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03181/0.1666, allocations: 29.26 MB / 498.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.1846, allocations: 6.879 MB / 0.4935 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006022/0.1907, allocations: 119.8 kB / 0.4936 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.1939, allocations: 1.133 MB / 0.4947 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004721/0.1987, allocations: 1.674 MB / 0.4963 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.2001, allocations: 459.2 kB / 0.4968 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007022/0.2071, allocations: 5.535 MB / 0.5022 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2424/0.4496, allocations: 1.762 MB / 0.5039 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.4525, allocations: 1.023 MB / 0.5049 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003606/0.4561, allocations: 1.784 MB / 0.5066 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001162/0.4573, allocations: 154.9 kB / 0.5068 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.4608, allocations: 1.098 MB / 0.5079 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003197/0.464, allocations: 1.591 MB / 0.5094 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002561/0.4666, allocations: 1.834 MB / 0.5112 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007296/0.4739, allocations: 4.83 MB / 0.5159 GB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4739, allocations: 3.094 kB / 0.5159 GB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.4739, allocations: 1.438 kB / 0.5159 GB, free: 10.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000232/0.4742, allocations: 1.188 kB / 0.5159 GB, free: 10.61 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.011/0.4852, allocations: 4.187 MB / 0.52 GB, free: 8.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.4853, allocations: 13.72 kB / 0.52 GB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/0.4965, allocations: 3.156 MB / 0.5231 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005222/0.5018, allocations: 2.084 MB / 0.5251 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.5019, allocations: 183.3 kB / 0.5253 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001229/0.5032, allocations: 338.3 kB / 0.5256 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01735/0.5205, allocations: 10.48 MB / 0.5359 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.5207, allocations: 21.88 kB / 0.5359 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004633/0.5212, allocations: 112.9 kB / 0.536 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/0.5246, allocations: 2.499 MB / 0.5384 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/0.5444, allocations: 10 MB / 0.5482 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05883/0.6033, allocations: 35.02 MB / 0.5824 GB, free: 5.754 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0085/0.6118, allocations: 4.307 MB / 0.5866 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00327/0.6151, allocations: 2.163 MB / 0.5887 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001217/0.6164, allocations: 1.315 MB / 0.59 GB, free: 13.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.322e-05/0.6165, allocations: 57.23 kB / 0.5901 GB, free: 13.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 8.927e-06/0.6165, allocations: 3.984 kB / 0.5901 GB, free: 13.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.06267/0.6792, allocations: 16.74 MB / 0.6064 GB, free: 12.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001984/0.6812, allocations: 1.533 MB / 0.6079 GB, free: 11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008004/0.6892, allocations: 2.705 MB / 0.6106 GB, free: 8.273 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008449/0.6901, allocations: 57.7 kB / 0.6106 GB, free: 8.211 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00336/0.6935, allocations: 2.66 MB / 0.6132 GB, free: 5.547 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/0.6951, allocations: 0.9337 MB / 0.6141 GB, free: 4.625 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002904/0.698, allocations: 1.113 MB / 0.6152 GB, free: 3.504 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.6982, allocations: 305.1 kB / 0.6155 GB, free: 3.203 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/0.7021, allocations: 2.42 MB / 0.6179 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006484/0.7086, allocations: 5.392 MB / 0.6231 GB, free: 9.988 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.7201, allocations: 8.481 MB / 0.6314 GB, free: 500 kB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.7202, allocations: 28 kB / 0.6314 GB, free: 472 kB / 478.1 MB Notification: Performance of matching and sorting (n=740) (initialization): time 0.02646/0.7467, allocations: 9.678 MB / 0.6409 GB, free: 7.387 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.7469, allocations: 48 kB / 0.6409 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01439/0.7613, allocations: 4.814 MB / 0.6456 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/0.7726, allocations: 2.374 MB / 0.648 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00545/0.7781, allocations: 1.263 MB / 0.6492 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00866/0.7868, allocations: 5.838 MB / 0.6549 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004714/0.7915, allocations: 391.7 kB / 0.6553 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/0.7928, allocations: 330.5 kB / 0.6556 GB, free: 8.207 MB / 0.4981 GB 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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005419/0.7983, allocations: 2.054 MB / 0.6576 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007648/0.7991, allocations: 280.4 kB / 0.6579 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01124/0.8103, allocations: 5.318 MB / 0.6631 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01042/0.8208, allocations: 4.604 MB / 0.6675 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/0.8208, allocations: 4 kB / 0.6676 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.886e-05/0.8209, allocations: 11.95 kB / 0.6676 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03076/0.8517, allocations: 14.45 MB / 0.6817 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.229e-05/0.8518, allocations: 8 kB / 0.6817 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/0.8538, allocations: 407.3 kB / 0.6821 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004438/0.8582, allocations: 1.24 MB / 0.6833 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006194/0.8589, allocations: 63.95 kB / 0.6833 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004719/0.8636, allocations: 4.431 MB / 0.6877 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001064/0.8647, allocations: 1.463 MB / 0.6891 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/0.8794, allocations: 8.004 MB / 0.6969 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/0.8805, allocations: 325.6 kB / 0.6972 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/0.8815, allocations: 52.27 kB / 0.6973 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002077/0.8836, allocations: 195.7 kB / 0.6975 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006277/0.8843, allocations: 164.8 kB / 0.6976 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003342/0.8846, allocations: 74.25 kB / 0.6977 GB, free: 12.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003597/0.8882, allocations: 1.676 MB / 0.6993 GB, free: 10.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.71e-07/0.8882, allocations: 0 / 0.6993 GB, free: 10.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006199/0.8945, allocations: 1.061 MB / 0.7004 GB, free: 9.469 MB / 0.545 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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008398/0.8953, allocations: 202.5 kB / 0.7006 GB, free: 9.266 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01197/0.9073, allocations: 6.442 MB / 0.7068 GB, free: 2.777 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/0.9073, allocations: 0 / 0.7068 GB, free: 2.777 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2263/1.134, allocations: 2.849 MB / 0.7096 GB, free: 207.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003167/1.137, allocations: 381.9 kB / 0.71 GB, free: 207.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02276/1.16, allocations: 12.87 MB / 0.7226 GB, free: 202.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004185/1.164, allocations: 3.236 MB / 0.7257 GB, free: 201 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001321/1.165, allocations: 262.1 kB / 0.726 GB, free: 201 MB / 0.545 GB Notification: Performance of SimCode: time 1.413e-06/1.165, allocations: 0 / 0.726 GB, free: 201 MB / 0.545 GB Notification: Performance of Templates: time 0.1308/1.296, allocations: 129.8 MB / 0.8527 GB, free: 81.96 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches