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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001236, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001314/0.001314, allocations: 192 kB / 18.56 MB, free: 4.434 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.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.2103/0.2103, allocations: 44.18 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 67.69 kB / 408.5 MB, free: 27.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09725, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01211/0.1094, allocations: 11.85 MB / 481.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007158/0.1166, allocations: 3.945 MB / 485.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.1181, allocations: 59.88 kB / 485.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002652/0.1207, allocations: 1.191 MB / 486.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004591/0.1254, allocations: 1.779 MB / 488.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.1268, allocations: 0.4911 MB / 488.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005657/0.1325, allocations: 4.016 MB / 492.7 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004143/0.1367, allocations: 1.819 MB / 494.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.1397, allocations: 1.179 MB / 495.7 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00316/0.1428, allocations: 1.674 MB / 497.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001012/0.1439, allocations: 228 kB / 497.6 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003225/0.1471, allocations: 1.1 MB / 498.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002264/0.1494, allocations: 1.628 MB / 0.4886 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003072/0.1525, allocations: 1.894 MB / 0.4904 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00685/0.1594, allocations: 5.988 MB / 0.4963 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1594, allocations: 0 / 0.4963 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1594, allocations: 0 / 0.4963 GB, free: 7.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001442/0.1596, allocations: 0 / 0.4963 GB, free: 7.242 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.00738/0.167, allocations: 4.225 MB / 0.5004 GB, free: 2.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.167, allocations: 8.031 kB / 0.5004 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007762/0.1678, allocations: 0.7039 MB / 0.5011 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2201/0.388, allocations: 3.164 MB / 0.5042 GB, free: 45.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004908/0.3929, allocations: 2.689 MB / 0.5068 GB, free: 45.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.3931, allocations: 183.7 kB / 0.507 GB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001066/0.3941, allocations: 331.8 kB / 0.5073 GB, free: 45.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/0.4103, allocations: 10.49 MB / 0.5176 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.625e-05/0.4104, allocations: 27.16 kB / 0.5176 GB, free: 40.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003516/0.4108, allocations: 121.2 kB / 0.5177 GB, free: 40.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00394/0.4147, allocations: 2.493 MB / 0.5201 GB, free: 40.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.4307, allocations: 9.999 MB / 0.5299 GB, free: 32.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03979/0.4706, allocations: 35.02 MB / 0.5641 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008484/0.4791, allocations: 4.311 MB / 0.5683 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003449/0.4826, allocations: 2.154 MB / 0.5704 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001349/0.4839, allocations: 1.311 MB / 0.5717 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.484, allocations: 60.55 kB / 0.5717 GB, free: 4.434 MB / 398.1 MB Notification: Performance of pre-optimization done (n=236): time 4.689e-06/0.484, allocations: 0 / 0.5717 GB, free: 4.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=252): time 0.04172/0.5257, allocations: 16.76 MB / 0.5881 GB, free: 3.562 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001655/0.5274, allocations: 1.618 MB / 0.5897 GB, free: 1.781 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003568/0.531, allocations: 2.714 MB / 0.5923 GB, free: 15.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004311/0.5315, allocations: 57.77 kB / 0.5924 GB, free: 14.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.5331, allocations: 2.671 MB / 0.595 GB, free: 12.28 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009068/0.534, allocations: 0.925 MB / 0.5959 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.5354, allocations: 1.099 MB / 0.597 GB, free: 10.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.5356, allocations: 301.1 kB / 0.5973 GB, free: 9.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003437/0.539, allocations: 2.4 MB / 0.5996 GB, free: 7.523 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005203/0.5442, allocations: 5.365 MB / 0.6049 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009928/0.5542, allocations: 8.439 MB / 0.6131 GB, free: 6.824 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.528e-05/0.5543, allocations: 40 kB / 0.6131 GB, free: 6.785 MB / 446.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02177/0.576, allocations: 9.322 MB / 0.6222 GB, free: 13.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.381e-05/0.5762, allocations: 48 kB / 0.6223 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01349/0.5896, allocations: 4.496 MB / 0.6267 GB, free: 8.879 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/0.6012, allocations: 2.02 MB / 0.6286 GB, free: 6.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004261/0.6054, allocations: 1.248 MB / 0.6299 GB, free: 5.594 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007764/0.6132, allocations: 5.281 MB / 0.635 GB, free: 28 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004676/0.6179, allocations: 387.7 kB / 0.6354 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/0.6194, allocations: 315.9 kB / 0.6357 GB, free: 15.34 MB / 478.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 (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.005388/0.6248, allocations: 2.055 MB / 0.6377 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009706/0.6258, allocations: 276.4 kB / 0.638 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/0.6375, allocations: 5.318 MB / 0.6432 GB, free: 7.645 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009617/0.6471, allocations: 4.597 MB / 0.6476 GB, free: 3.027 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.6471, allocations: 0 / 0.6476 GB, free: 3.027 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.221e-05/0.6472, allocations: 19.98 kB / 0.6477 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02847/0.6757, allocations: 14.45 MB / 0.6618 GB, free: 4.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.007e-05/0.6757, allocations: 15.97 kB / 0.6618 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/0.6776, allocations: 403.4 kB / 0.6622 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004922/0.6826, allocations: 1.24 MB / 0.6634 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003692/0.683, allocations: 67.91 kB / 0.6634 GB, free: 2.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005631/0.6886, allocations: 4.751 MB / 0.6681 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001097/0.6897, allocations: 1.566 MB / 0.6696 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/0.7034, allocations: 7.989 MB / 0.6774 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008462/0.7043, allocations: 333.5 kB / 0.6777 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006767/0.705, allocations: 59.97 kB / 0.6778 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.7068, allocations: 191.7 kB / 0.678 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004335/0.7072, allocations: 164.8 kB / 0.6781 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/0.7074, allocations: 71.98 kB / 0.6782 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002784/0.7102, allocations: 1.68 MB / 0.6798 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7102, allocations: 0 / 0.6798 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004918/0.7152, allocations: 1.036 MB / 0.6809 GB, free: 128 kB / 0.4981 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.01542/0.7306, allocations: 8.545 MB / 0.6892 GB, free: 7.406 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.2343/0.9649, allocations: 9.834 MB / 0.6988 GB, free: 176.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/0.965, allocations: 5.219 kB / 0.6988 GB, free: 176.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005265/0.9703, allocations: 2.849 MB / 0.7016 GB, free: 175.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.9728, allocations: 395 kB / 0.702 GB, free: 175.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07083/1.044, allocations: 47.61 MB / 0.7485 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002975/1.047, allocations: 3.232 MB / 0.7516 GB, free: 135.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004229/1.051, allocations: 2.075 MB / 0.7536 GB, free: 133.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002294/1.053, allocations: 1.729 MB / 0.7553 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of SimCode: time 8.82e-07/1.053, allocations: 0 / 0.7553 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1508/1.204, allocations: 63.98 MB / 0.8178 GB, free: 67.72 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.92, allocations: 11.88 kB / 0.8178 GB, free: 67.71 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > 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