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.0008143/0.0008144, allocations: 94.8 kB / 17.35 MB, free: 6.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.0009649/0.000965, allocations: 171.1 kB / 18.25 MB, free: 5.508 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.245/1.245, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1773/0.1773, allocations: 44.24 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002882, allocations: 8 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1097, allocations: 61.92 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02717/0.1369, allocations: 28.34 MB / 0.489 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01334/0.1503, allocations: 6.816 MB / 0.4956 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004385/0.1547, allocations: 119.7 kB / 0.4957 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.1559, allocations: 426.2 kB / 0.4961 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003845/0.1598, allocations: 1.667 MB / 0.4978 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1608, allocations: 467.3 kB / 0.4982 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005826/0.1667, allocations: 5.52 MB / 0.5036 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2119/0.3786, allocations: 2.292 MB / 0.5059 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.3808, allocations: 0.9563 MB / 0.5068 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002801/0.3836, allocations: 1.706 MB / 0.5084 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005685/0.3842, allocations: 130.8 kB / 0.5086 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.3864, allocations: 1.07 MB / 0.5096 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.3881, allocations: 1.558 MB / 0.5111 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.3897, allocations: 1.816 MB / 0.5129 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006238/0.396, allocations: 5.816 MB / 0.5186 GB, free: 9.805 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.396, allocations: 0 / 0.5186 GB, free: 9.805 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.396, allocations: 1.156 kB / 0.5186 GB, free: 9.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000181/0.3962, allocations: 0 / 0.5186 GB, free: 9.805 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.006628/0.4029, allocations: 3.486 MB / 0.522 GB, free: 8.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4029, allocations: 8.906 kB / 0.522 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001058/0.404, allocations: 0.7039 MB / 0.5227 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.4148, allocations: 3.263 MB / 0.5259 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004769/0.4196, allocations: 2.686 MB / 0.5285 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.4198, allocations: 181 kB / 0.5287 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009751/0.4207, allocations: 340 kB / 0.529 GB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.4349, allocations: 10.49 MB / 0.5392 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.051e-05/0.4351, allocations: 30.09 kB / 0.5393 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003649/0.4354, allocations: 113.7 kB / 0.5394 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003346/0.4388, allocations: 2.494 MB / 0.5418 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.4561, allocations: 10.02 MB / 0.5516 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04707/0.5032, allocations: 34.99 MB / 0.5858 GB, free: 3.879 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007268/0.5105, allocations: 4.317 MB / 0.59 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002694/0.5132, allocations: 2.154 MB / 0.5921 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001102/0.5143, allocations: 1.314 MB / 0.5934 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.5143, allocations: 56.56 kB / 0.5934 GB, free: 11.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=236): time 7.314e-06/0.5144, allocations: 3.984 kB / 0.5934 GB, free: 11.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.03665/0.551, allocations: 16.75 MB / 0.6098 GB, free: 10.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001277/0.5523, allocations: 1.531 MB / 0.6113 GB, free: 9.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004557/0.5569, allocations: 2.718 MB / 0.6139 GB, free: 6.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002613/0.5572, allocations: 65.06 kB / 0.614 GB, free: 6.289 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/0.559, allocations: 2.662 MB / 0.6166 GB, free: 3.621 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009485/0.56, allocations: 0.9228 MB / 0.6175 GB, free: 2.707 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008128/0.5608, allocations: 489.2 kB / 0.618 GB, free: 2.223 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.198e-05/0.5609, allocations: 305.1 kB / 0.6183 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003584/0.5645, allocations: 2.404 MB / 0.6206 GB, free: 15.52 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005414/0.5699, allocations: 5.359 MB / 0.6258 GB, free: 8.758 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009498/0.5794, allocations: 8.438 MB / 0.6341 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.039e-05/0.5795, allocations: 32 kB / 0.6341 GB, free: 15.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02096/0.6005, allocations: 9.325 MB / 0.6432 GB, free: 6.543 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.6006, allocations: 50.34 kB / 0.6433 GB, free: 6.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01386/0.6145, allocations: 4.499 MB / 0.6477 GB, free: 1.992 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01123/0.6258, allocations: 2.012 MB / 0.6496 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/0.6301, allocations: 1.255 MB / 0.6509 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007151/0.6373, allocations: 4.943 MB / 0.6557 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004067/0.6414, allocations: 395.5 kB / 0.6561 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009797/0.6424, allocations: 319 kB / 0.6564 GB, free: 8.816 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 (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.005046/0.6475, allocations: 2.059 MB / 0.6584 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008519/0.6483, allocations: 276.4 kB / 0.6586 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/0.6598, allocations: 5.323 MB / 0.6638 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009182/0.669, allocations: 4.603 MB / 0.6683 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.6691, allocations: 4 kB / 0.6683 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.6691, allocations: 7.969 kB / 0.6683 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/0.696, allocations: 14.45 MB / 0.6825 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.62e-05/0.6961, allocations: 8 kB / 0.6825 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.6978, allocations: 407.3 kB / 0.6828 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004679/0.7025, allocations: 1.24 MB / 0.6841 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003226/0.7028, allocations: 59.97 kB / 0.6841 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00481/0.7077, allocations: 4.465 MB / 0.6885 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001043/0.7087, allocations: 1.463 MB / 0.6899 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/0.7223, allocations: 7.996 MB / 0.6977 GB, free: 13.61 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008508/0.7232, allocations: 333.5 kB / 0.698 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006921/0.7239, allocations: 51.98 kB / 0.6981 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/0.726, allocations: 198.7 kB / 0.6983 GB, free: 13.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005141/0.7265, allocations: 164.8 kB / 0.6984 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/0.7268, allocations: 75.97 kB / 0.6985 GB, free: 12.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003584/0.7304, allocations: 1.676 MB / 0.7001 GB, free: 11.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7304, allocations: 4 kB / 0.7001 GB, free: 11.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005372/0.7358, allocations: 1.038 MB / 0.7012 GB, free: 10.06 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.01431/0.7501, allocations: 8.555 MB / 0.7095 GB, free: 1.336 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2472/0.9974, allocations: 6.352 MB / 0.7157 GB, free: 177.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.9974, allocations: 4.438 kB / 0.7157 GB, free: 177.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004917/1.002, allocations: 2.838 MB / 0.7185 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005174/1.008, allocations: 385.7 kB / 0.7189 GB, free: 176.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06992/1.077, allocations: 49.7 MB / 0.7674 GB, free: 141.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002815/1.08, allocations: 3.24 MB / 0.7706 GB, free: 138.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004071/1.084, allocations: 2.068 MB / 0.7726 GB, free: 136 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002013/1.086, allocations: 1.729 MB / 0.7743 GB, free: 134.3 MB / 0.545 GB Notification: Performance of SimCode: time 2.164e-06/1.086, allocations: 0 / 0.7743 GB, free: 134.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/1.197, allocations: 61.95 MB / 0.8348 GB, free: 72.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/1.197, allocations: 231.9 kB / 0.835 GB, free: 72.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.1/4.297, allocations: 0 / 0.835 GB, free: 72.44 MB / 0.545 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