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.002036/0.002036, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.002119/0.002119, allocations: 181 kB / 18.71 MB, free: 4.207 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2071/0.2071, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 63.89 kB / 470 MB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1248, allocations: 60.82 MB / 0.5184 GB, free: 4.965 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01339/0.1382, allocations: 11.86 MB / 0.53 GB, free: 9.035 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008147/0.1464, allocations: 3.948 MB / 0.5339 GB, free: 5.074 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002003/0.1485, allocations: 63.81 kB / 0.5339 GB, free: 5.012 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.1515, allocations: 1.195 MB / 0.5351 GB, free: 3.812 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004676/0.1562, allocations: 1.825 MB / 0.5369 GB, free: 1.984 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.1576, allocations: 491 kB / 0.5374 GB, free: 1.504 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.3193/0.4769, allocations: 4.013 MB / 0.5413 GB, free: 38.82 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002661/0.4796, allocations: 1.799 MB / 0.543 GB, free: 38.75 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002112/0.4817, allocations: 1.196 MB / 0.5442 GB, free: 38.63 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.4837, allocations: 1.678 MB / 0.5458 GB, free: 38.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005006/0.4842, allocations: 219.2 kB / 0.546 GB, free: 38.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.4861, allocations: 1.104 MB / 0.5471 GB, free: 38.43 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.4872, allocations: 1.63 MB / 0.5487 GB, free: 38.25 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001443/0.4887, allocations: 1.894 MB / 0.5506 GB, free: 37.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006235/0.4949, allocations: 6.303 MB / 0.5567 GB, free: 36.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.495, allocations: 0 / 0.5567 GB, free: 36.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.495, allocations: 0 / 0.5567 GB, free: 36.43 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001836/0.4952, allocations: 0 / 0.5567 GB, free: 36.43 MB / 462.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.008404/0.5036, allocations: 4.339 MB / 0.561 GB, free: 34.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.5037, allocations: 9.875 kB / 0.561 GB, free: 34.52 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001671/0.5053, allocations: 0.6994 MB / 0.5616 GB, free: 34.45 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01429/0.5197, allocations: 3.196 MB / 0.5648 GB, free: 34.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007154/0.5269, allocations: 2.718 MB / 0.5674 GB, free: 33.63 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.5271, allocations: 181.1 kB / 0.5676 GB, free: 33.62 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/0.5285, allocations: 333.6 kB / 0.5679 GB, free: 33.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.5493, allocations: 10.49 MB / 0.5782 GB, free: 30.3 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.5494, allocations: 30.11 kB / 0.5782 GB, free: 30.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000468/0.5499, allocations: 116.7 kB / 0.5783 GB, free: 30.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004926/0.5548, allocations: 2.496 MB / 0.5807 GB, free: 29.84 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.5778, allocations: 10.01 MB / 0.5905 GB, free: 26.99 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05367/0.6315, allocations: 34.89 MB / 0.6246 GB, free: 9.688 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008021/0.6396, allocations: 4.298 MB / 0.6288 GB, free: 5.176 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.6427, allocations: 2.155 MB / 0.6309 GB, free: 3.02 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001303/0.6441, allocations: 1.317 MB / 0.6322 GB, free: 1.488 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.6441, allocations: 52.56 kB / 0.6322 GB, free: 1.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=236): time 7.985e-06/0.6441, allocations: 4 kB / 0.6322 GB, free: 1.426 MB / 478.1 MB Notification: Performance of matching and sorting (n=252): time 0.04078/0.6849, allocations: 16.83 MB / 0.6486 GB, free: 0.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001548/0.6865, allocations: 1.621 MB / 0.6502 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005344/0.6919, allocations: 2.73 MB / 0.6529 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006785/0.6926, allocations: 57.7 kB / 0.653 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00259/0.6952, allocations: 2.773 MB / 0.6557 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001435/0.6966, allocations: 0.9692 MB / 0.6566 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002826/0.6995, allocations: 1.106 MB / 0.6577 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.6996, allocations: 309.2 kB / 0.658 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003826/0.7034, allocations: 2.396 MB / 0.6603 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006475/0.7099, allocations: 5.363 MB / 0.6656 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/0.722, allocations: 8.443 MB / 0.6738 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/0.7222, allocations: 28 kB / 0.6738 GB, free: 4.168 MB / 0.5137 GB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02471/0.7469, allocations: 9.334 MB / 0.6829 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.7471, allocations: 52 kB / 0.683 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01466/0.7618, allocations: 4.5 MB / 0.6874 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/0.7727, allocations: 2.008 MB / 0.6893 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004827/0.7776, allocations: 1.255 MB / 0.6906 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007985/0.7856, allocations: 5.278 MB / 0.6957 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004422/0.7901, allocations: 391.6 kB / 0.6961 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/0.7912, allocations: 321.1 kB / 0.6964 GB, free: 13 MB / 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.004574/0.7957, allocations: 2.053 MB / 0.6984 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007606/0.7965, allocations: 290.7 kB / 0.6987 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/0.8075, allocations: 5.316 MB / 0.7039 GB, free: 5.297 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01005/0.8176, allocations: 4.608 MB / 0.7084 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.064e-05/0.8177, allocations: 7.938 kB / 0.7084 GB, free: 0.668 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.327e-05/0.8177, allocations: 7.969 kB / 0.7084 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03551/0.8533, allocations: 14.42 MB / 0.7225 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/0.8534, allocations: 8 kB / 0.7225 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/0.8556, allocations: 403.9 kB / 0.7229 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004906/0.8605, allocations: 1.244 MB / 0.7241 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005476/0.8611, allocations: 59.97 kB / 0.7241 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005365/0.8665, allocations: 4.739 MB / 0.7288 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001177/0.8677, allocations: 1.562 MB / 0.7303 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/0.8828, allocations: 8.018 MB / 0.7381 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.884, allocations: 343.8 kB / 0.7385 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009967/0.885, allocations: 55.98 kB / 0.7385 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002167/0.8872, allocations: 193.2 kB / 0.7387 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005353/0.8877, allocations: 160.9 kB / 0.7388 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003027/0.8881, allocations: 82.7 kB / 0.7389 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003539/0.8916, allocations: 1.674 MB / 0.7406 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8916, allocations: 0 / 0.7406 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006757/0.8984, allocations: 1.039 MB / 0.7416 GB, free: 13.87 MB / 0.5919 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.0166/0.915, allocations: 8.569 MB / 0.7499 GB, free: 5.129 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01371/0.9288, allocations: 6.432 MB / 0.7562 GB, free: 14.65 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/0.9288, allocations: 4 kB / 0.7562 GB, free: 14.65 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.005694/0.9345, allocations: 2.847 MB / 0.759 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/0.9381, allocations: 397.9 kB / 0.7594 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3323/1.27, allocations: 44.69 MB / 0.803 GB, free: 181.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00395/1.274, allocations: 3.224 MB / 0.8062 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.004958/1.279, allocations: 2.07 MB / 0.8082 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002221/1.282, allocations: 1.728 MB / 0.8099 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.112e-06/1.282, allocations: 0 / 0.8099 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/1.382, allocations: 61.08 MB / 0.8695 GB, free: 133.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.97/21.36, allocations: 19.69 kB / 0.8696 GB, free: 133.6 MB / 0.6075 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