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.0007996/0.0007996, allocations: 92.39 kB / 18 MB, free: 5.602 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.0008353/0.0008353, allocations: 177.8 kB / 18.91 MB, free: 4.738 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.364/1.364, allocations: 223.3 MB / 243 MB, free: 14.29 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.1959/0.1959, allocations: 44.24 MB / 338.3 MB, free: 2.379 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 15.94 kB / 411 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 61.93 MB / 472.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02806/0.1405, allocations: 28.34 MB / 0.4895 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.1558, allocations: 6.809 MB / 0.4962 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005083/0.1609, allocations: 123.7 kB / 0.4963 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.1623, allocations: 418.2 kB / 0.4967 GB, free: 9.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004379/0.1667, allocations: 1.678 MB / 0.4983 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.168, allocations: 463.2 kB / 0.4988 GB, free: 7.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007089/0.1751, allocations: 5.53 MB / 0.5042 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2485/0.4237, allocations: 2.282 MB / 0.5064 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002895/0.4266, allocations: 0.9575 MB / 0.5073 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003896/0.4305, allocations: 1.708 MB / 0.509 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001221/0.4318, allocations: 127.2 kB / 0.5091 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.4355, allocations: 1.067 MB / 0.5102 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003111/0.4386, allocations: 1.567 MB / 0.5117 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003986/0.4426, allocations: 1.804 MB / 0.5134 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007081/0.4497, allocations: 4.729 MB / 0.5181 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4497, allocations: 0 / 0.5181 GB, free: 10.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4497, allocations: 5.094 kB / 0.5181 GB, free: 10.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002277/0.45, allocations: 0 / 0.5181 GB, free: 10.77 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.008429/0.4584, allocations: 3.471 MB / 0.5215 GB, free: 9.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.4585, allocations: 13.12 kB / 0.5215 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01267/0.4712, allocations: 3.239 MB / 0.5246 GB, free: 7.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005064/0.4763, allocations: 2.074 MB / 0.5267 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.4765, allocations: 181.2 kB / 0.5268 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001385/0.4778, allocations: 336.4 kB / 0.5271 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02598/0.5038, allocations: 10.49 MB / 0.5374 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001495/0.504, allocations: 33.05 kB / 0.5374 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008367/0.5049, allocations: 122.4 kB / 0.5375 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005683/0.5106, allocations: 2.49 MB / 0.54 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02774/0.5384, allocations: 10.01 MB / 0.5498 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05751/0.5959, allocations: 35.03 MB / 0.584 GB, free: 6.328 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008159/0.6041, allocations: 4.311 MB / 0.5882 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003203/0.6074, allocations: 2.158 MB / 0.5903 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/0.6086, allocations: 1.305 MB / 0.5916 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.6087, allocations: 56.5 kB / 0.5916 GB, free: 14.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 6.672e-06/0.6087, allocations: 0 / 0.5916 GB, free: 14.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.04052/0.6492, allocations: 16.76 MB / 0.608 GB, free: 13.23 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001456/0.6507, allocations: 1.525 MB / 0.6095 GB, free: 11.55 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005644/0.6564, allocations: 2.713 MB / 0.6121 GB, free: 8.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005449/0.657, allocations: 60.52 kB / 0.6122 GB, free: 8.758 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.6593, allocations: 2.659 MB / 0.6148 GB, free: 6.094 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001618/0.6609, allocations: 0.927 MB / 0.6157 GB, free: 5.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/0.6625, allocations: 494.5 kB / 0.6161 GB, free: 4.684 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.6626, allocations: 301.1 kB / 0.6164 GB, free: 4.387 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00453/0.6672, allocations: 2.426 MB / 0.6188 GB, free: 1.957 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006903/0.6741, allocations: 5.387 MB / 0.6241 GB, free: 11.17 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/0.6858, allocations: 8.48 MB / 0.6323 GB, free: 1.672 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/0.686, allocations: 28 kB / 0.6324 GB, free: 1.645 MB / 478.1 MB Notification: Performance of matching and sorting (n=740) (initialization): time 0.02471/0.7107, allocations: 9.681 MB / 0.6418 GB, free: 8.566 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.7109, allocations: 51.98 kB / 0.6419 GB, free: 8.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01459/0.7255, allocations: 4.81 MB / 0.6466 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.7375, allocations: 2.377 MB / 0.6489 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004733/0.7423, allocations: 1.263 MB / 0.6501 GB, free: 76 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008396/0.7507, allocations: 5.837 MB / 0.6558 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007019/0.7577, allocations: 399.5 kB / 0.6562 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/0.7592, allocations: 318.3 kB / 0.6565 GB, free: 9.266 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.005742/0.765, allocations: 2.055 MB / 0.6585 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008589/0.7659, allocations: 272.5 kB / 0.6588 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.7779, allocations: 5.333 MB / 0.664 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01007/0.788, allocations: 4.605 MB / 0.6685 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.788, allocations: 3.938 kB / 0.6685 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-05/0.7881, allocations: 11.95 kB / 0.6685 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03191/0.82, allocations: 14.44 MB / 0.6826 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-05/0.8201, allocations: 12 kB / 0.6826 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/0.822, allocations: 407.3 kB / 0.683 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004681/0.8267, allocations: 1.245 MB / 0.6842 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005001/0.8273, allocations: 63.97 kB / 0.6843 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005212/0.8325, allocations: 4.446 MB / 0.6886 GB, free: 7.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001227/0.8337, allocations: 1.459 MB / 0.69 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/0.8484, allocations: 7.999 MB / 0.6979 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.8494, allocations: 345.5 kB / 0.6982 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000812/0.8503, allocations: 47.98 kB / 0.6982 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002136/0.8524, allocations: 193.9 kB / 0.6984 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006246/0.8531, allocations: 172.8 kB / 0.6986 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003131/0.8534, allocations: 71.98 kB / 0.6986 GB, free: 13.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004906/0.8583, allocations: 1.664 MB / 0.7003 GB, free: 11.57 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.9e-07/0.8584, allocations: 0 / 0.7003 GB, free: 11.57 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006918/0.8653, allocations: 1.065 MB / 0.7013 GB, free: 10.5 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.001043/0.8663, allocations: 202.2 kB / 0.7015 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01213/0.8785, allocations: 6.434 MB / 0.7078 GB, free: 3.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/0.8785, allocations: 0 / 0.7078 GB, free: 3.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005445/0.884, allocations: 2.851 MB / 0.7106 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005618/0.8896, allocations: 381.7 kB / 0.7109 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2842/1.174, allocations: 13.05 MB / 0.7237 GB, free: 165.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003978/1.178, allocations: 3.235 MB / 0.7268 GB, free: 164.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.179, allocations: 265.1 kB / 0.7271 GB, free: 164.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.833e-06/1.179, allocations: 0 / 0.7271 GB, free: 164.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1199/1.299, allocations: 129 MB / 0.8531 GB, free: 52.84 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