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.001445/0.001445, allocations: 104.7 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.001697/0.001697, 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.442/1.442, allocations: 222.9 MB / 242.3 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.2033/0.2033, allocations: 44.17 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 64.55 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1445, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01389/0.1585, allocations: 11.86 MB / 481.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1689, allocations: 3.933 MB / 485.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002539/0.1715, allocations: 67.88 kB / 485.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003025/0.1746, allocations: 1.179 MB / 486.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004888/0.1795, allocations: 1.787 MB / 488.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.181, allocations: 491 kB / 488.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006206/0.1872, allocations: 4.016 MB / 492.7 MB, free: 6.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003059/0.1903, allocations: 1.823 MB / 494.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002458/0.1928, allocations: 1.183 MB / 495.7 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.1954, allocations: 1.678 MB / 497.4 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008342/0.1963, allocations: 224 kB / 497.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.1988, allocations: 1.104 MB / 498.7 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001835/0.2007, allocations: 1.624 MB / 0.4886 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.2032, allocations: 1.894 MB / 0.4904 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005885/0.2091, allocations: 5.981 MB / 0.4963 GB, free: 7.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2091, allocations: 7.938 kB / 0.4963 GB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2091, allocations: 0 / 0.4963 GB, free: 7.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.534e-05/0.2092, allocations: 0 / 0.4963 GB, free: 7.258 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.006362/0.2156, allocations: 4.221 MB / 0.5004 GB, free: 2.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2156, allocations: 8.031 kB / 0.5004 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007439/0.2164, allocations: 0.7039 MB / 0.5011 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2645/0.4809, allocations: 3.168 MB / 0.5042 GB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006514/0.4874, allocations: 2.685 MB / 0.5068 GB, free: 45.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.4876, allocations: 185.3 kB / 0.507 GB, free: 45.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.4889, allocations: 331 kB / 0.5073 GB, free: 45.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.506, allocations: 10.49 MB / 0.5176 GB, free: 40.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.662e-05/0.5062, allocations: 24.61 kB / 0.5176 GB, free: 40.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004092/0.5066, allocations: 120.5 kB / 0.5177 GB, free: 40.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003857/0.5104, allocations: 2.495 MB / 0.5201 GB, free: 40.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/0.5279, allocations: 10 MB / 0.5299 GB, free: 32.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04603/0.5739, allocations: 35.01 MB / 0.5641 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008408/0.5824, allocations: 4.312 MB / 0.5683 GB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003139/0.5856, allocations: 2.16 MB / 0.5704 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/0.5869, allocations: 1.311 MB / 0.5717 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.624e-05/0.587, allocations: 56.55 kB / 0.5717 GB, free: 4.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=236): time 7.735e-06/0.587, allocations: 0 / 0.5717 GB, free: 4.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=252): time 0.04208/0.6291, allocations: 16.76 MB / 0.5881 GB, free: 3.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00137/0.6305, allocations: 1.618 MB / 0.5897 GB, free: 1.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004267/0.6348, allocations: 2.714 MB / 0.5923 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004661/0.6353, allocations: 57.7 kB / 0.5924 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002031/0.6374, allocations: 2.671 MB / 0.595 GB, free: 12.31 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001439/0.6388, allocations: 0.925 MB / 0.5959 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002496/0.6413, allocations: 1.099 MB / 0.597 GB, free: 10.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.182e-05/0.6414, allocations: 305.1 kB / 0.5973 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003585/0.645, allocations: 2.396 MB / 0.5996 GB, free: 7.559 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005454/0.6505, allocations: 5.359 MB / 0.6048 GB, free: 0.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.6606, allocations: 8.451 MB / 0.6131 GB, free: 6.848 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.396e-05/0.6607, allocations: 28 kB / 0.6131 GB, free: 6.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.0234/0.6841, allocations: 9.325 MB / 0.6222 GB, free: 13.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.6843, allocations: 48 kB / 0.6223 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01285/0.6972, allocations: 4.492 MB / 0.6267 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0103/0.7075, allocations: 2.02 MB / 0.6286 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.7118, allocations: 1.252 MB / 0.6299 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007428/0.7193, allocations: 5.281 MB / 0.635 GB, free: 64 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/0.7239, allocations: 391.6 kB / 0.6354 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/0.7249, allocations: 316 kB / 0.6357 GB, free: 15.37 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.004772/0.7297, allocations: 2.055 MB / 0.6377 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009717/0.7307, allocations: 276.5 kB / 0.638 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/0.7419, allocations: 5.326 MB / 0.6432 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008769/0.7507, allocations: 4.593 MB / 0.6476 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.7508, allocations: 4 kB / 0.6477 GB, free: 3.051 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.583e-05/0.7508, allocations: 19.83 kB / 0.6477 GB, free: 3.031 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/0.7777, allocations: 14.44 MB / 0.6618 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.011e-05/0.7778, allocations: 20.19 kB / 0.6618 GB, free: 4.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/0.7796, allocations: 403.3 kB / 0.6622 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005475/0.7851, allocations: 1.248 MB / 0.6634 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005836/0.7857, allocations: 55.97 kB / 0.6634 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007118/0.7929, allocations: 4.755 MB / 0.6681 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001169/0.7941, allocations: 1.558 MB / 0.6696 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/0.8148, allocations: 7.992 MB / 0.6774 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.8159, allocations: 333.5 kB / 0.6777 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009408/0.8168, allocations: 47.98 kB / 0.6778 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/0.8196, allocations: 199.7 kB / 0.678 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007931/0.8204, allocations: 168.8 kB / 0.6781 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000411/0.8209, allocations: 71.98 kB / 0.6782 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004443/0.8253, allocations: 1.676 MB / 0.6798 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8253, allocations: 0 / 0.6798 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00761/0.8329, allocations: 1.034 MB / 0.6808 GB, free: 160 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.02156/0.8545, allocations: 8.556 MB / 0.6892 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.2635/1.118, allocations: 9.83 MB / 0.6988 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.118, allocations: 3.844 kB / 0.6988 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005516/1.124, allocations: 2.849 MB / 0.7016 GB, free: 175.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/1.126, allocations: 389.4 kB / 0.702 GB, free: 175.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08326/1.21, 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.003321/1.213, allocations: 3.244 MB / 0.7516 GB, free: 135.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004257/1.217, allocations: 2.064 MB / 0.7536 GB, free: 133.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002338/1.22, allocations: 1.725 MB / 0.7553 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of SimCode: time 3.156e-06/1.22, allocations: 0 / 0.7553 GB, free: 131.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/1.321, allocations: 63.98 MB / 0.8178 GB, free: 67.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/14.4, allocations: 11.75 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 & 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