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.001643/0.001642, allocations: 112.8 kB / 17.78 MB, free: 5.301 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.001575/0.001575, allocations: 184.1 kB / 18.71 MB, free: 4.375 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.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.228/0.228, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 71.88 kB / 470.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4032, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.02158/0.4249, allocations: 11.86 MB / 0.53 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.4388, allocations: 3.942 MB / 0.5339 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004017/0.4429, allocations: 61.31 kB / 0.5339 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004828/0.4478, allocations: 1.194 MB / 0.5351 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006747/0.4546, allocations: 1.773 MB / 0.5368 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.4565, allocations: 0.491 MB / 0.5373 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007859/0.4644, allocations: 4.015 MB / 0.5412 GB, free: 3.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004529/0.469, allocations: 1.812 MB / 0.543 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004081/0.4731, allocations: 1.183 MB / 0.5441 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004121/0.4773, allocations: 1.682 MB / 0.5458 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.4785, allocations: 220 kB / 0.546 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003512/0.4821, allocations: 1.1 MB / 0.5471 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002615/0.4847, allocations: 1.636 MB / 0.5487 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004308/0.4891, allocations: 1.894 MB / 0.5505 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01132/0.5004, allocations: 6.301 MB / 0.5567 GB, free: 4.812 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.5005, allocations: 3.938 kB / 0.5567 GB, free: 4.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5005, allocations: 0 / 0.5567 GB, free: 4.809 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002496/0.5008, allocations: 0 / 0.5567 GB, free: 4.809 MB / 414.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.01263/0.5134, allocations: 4.341 MB / 0.5609 GB, free: 404 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/0.5135, allocations: 12.03 kB / 0.5609 GB, free: 392 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002397/0.5159, allocations: 0.7 MB / 0.5616 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01251/0.5284, allocations: 3.196 MB / 0.5647 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006099/0.5346, allocations: 2.716 MB / 0.5674 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002369/0.5349, allocations: 188.6 kB / 0.5676 GB, free: 9.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001668/0.5366, allocations: 335.5 kB / 0.5679 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02012/0.5567, allocations: 10.47 MB / 0.5781 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.5569, allocations: 35.75 kB / 0.5781 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000661/0.5576, allocations: 111.8 kB / 0.5783 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004501/0.5621, allocations: 2.502 MB / 0.5807 GB, free: 11.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02164/0.5838, allocations: 9.996 MB / 0.5905 GB, free: 1.609 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06163/0.6454, allocations: 34.87 MB / 0.6245 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009016/0.6545, allocations: 4.308 MB / 0.6287 GB, free: 9.332 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003839/0.6584, allocations: 2.163 MB / 0.6308 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001686/0.6601, allocations: 1.319 MB / 0.6321 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.952e-05/0.6602, allocations: 48.56 kB / 0.6322 GB, free: 5.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=236): time 6.172e-06/0.6602, allocations: 0 / 0.6322 GB, free: 5.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=252): time 0.04646/0.7067, allocations: 16.84 MB / 0.6486 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001769/0.7085, allocations: 1.618 MB / 0.6502 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004771/0.7133, allocations: 2.722 MB / 0.6528 GB, free: 104 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005859/0.714, allocations: 57.7 kB / 0.6529 GB, free: 40 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0029/0.7169, allocations: 2.78 MB / 0.6556 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001706/0.7186, allocations: 0.9688 MB / 0.6566 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002352/0.721, allocations: 1.112 MB / 0.6577 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.7212, allocations: 301.1 kB / 0.6579 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004309/0.7255, allocations: 2.396 MB / 0.6603 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008016/0.7335, allocations: 5.359 MB / 0.6655 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01325/0.7468, allocations: 8.447 MB / 0.6738 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001401/0.747, allocations: 35.88 kB / 0.6738 GB, free: 7.695 MB / 0.5294 GB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02556/0.7726, allocations: 9.335 MB / 0.6829 GB, free: 14.34 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.7727, allocations: 48 kB / 0.683 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01407/0.7868, allocations: 4.498 MB / 0.6873 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01102/0.7979, allocations: 2.004 MB / 0.6893 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004758/0.8027, allocations: 1.259 MB / 0.6905 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008975/0.8117, allocations: 5.273 MB / 0.6957 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005063/0.8168, allocations: 387.7 kB / 0.6961 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001362/0.8183, allocations: 320 kB / 0.6964 GB, free: 256 kB / 0.545 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.006324/0.8246, allocations: 2.059 MB / 0.6984 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009011/0.8255, allocations: 290 kB / 0.6986 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01251/0.838, allocations: 5.318 MB / 0.7038 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01093/0.849, allocations: 4.609 MB / 0.7083 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/0.8491, allocations: 0 / 0.7083 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-05/0.8492, allocations: 7.969 kB / 0.7084 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03153/0.8807, allocations: 14.41 MB / 0.7224 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-05/0.8808, allocations: 8.938 kB / 0.7224 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/0.8828, allocations: 411.3 kB / 0.7228 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004937/0.8878, allocations: 1.236 MB / 0.724 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005174/0.8883, allocations: 71.89 kB / 0.7241 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2901/1.178, allocations: 4.738 MB / 0.7287 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001467/1.18, allocations: 1.558 MB / 0.7302 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01748/1.197, allocations: 8.021 MB / 0.7381 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009582/1.198, allocations: 344.6 kB / 0.7384 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008297/1.199, allocations: 50.98 kB / 0.7385 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0019/1.201, allocations: 196.3 kB / 0.7386 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004997/1.202, allocations: 165.2 kB / 0.7388 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/1.202, allocations: 75.8 kB / 0.7389 GB, free: 177.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002768/1.205, allocations: 1.678 MB / 0.7405 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.4e-07/1.205, allocations: 3.938 kB / 0.7405 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005367/1.21, allocations: 1.037 MB / 0.7415 GB, free: 176.6 MB / 0.5762 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.01274/1.223, allocations: 8.56 MB / 0.7499 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009287/1.232, allocations: 6.435 MB / 0.7562 GB, free: 171 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/1.232, allocations: 3.5 kB / 0.7562 GB, free: 171 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004686/1.237, allocations: 2.847 MB / 0.759 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/1.24, allocations: 402.2 kB / 0.7593 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07119/1.311, allocations: 44.7 MB / 0.803 GB, free: 122.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003613/1.315, allocations: 3.236 MB / 0.8062 GB, free: 119.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003634/1.319, allocations: 2.064 MB / 0.8082 GB, free: 117 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002277/1.321, allocations: 1.729 MB / 0.8099 GB, free: 115.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/1.321, allocations: 0 / 0.8099 GB, free: 115.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/1.424, allocations: 61.06 MB / 0.8695 GB, free: 54.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.66/22.09, allocations: 13.08 kB / 0.8695 GB, free: 54.55 MB / 0.5762 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 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.csv","/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