Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",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.001233/0.001233, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001303/0.001303, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.43/1.43, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2203/0.2203, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 67.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3961/0.3977, allocations: 60.82 MB / 0.5184 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01668/0.4144, allocations: 15.01 MB / 0.5331 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.4258, allocations: 4.408 MB / 0.5374 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003743/0.4296, allocations: 80.91 kB / 0.5375 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005093/0.4347, allocations: 2.225 MB / 0.5396 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006462/0.4412, allocations: 2.077 MB / 0.5417 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.443, allocations: 0.6064 MB / 0.5423 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007257/0.4503, allocations: 4.294 MB / 0.5464 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003929/0.4542, allocations: 3.157 MB / 0.5495 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002669/0.4569, allocations: 1.612 MB / 0.5511 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002912/0.4599, allocations: 2.219 MB / 0.5533 GB, free: 8.312 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007111/0.4606, allocations: 348 kB / 0.5536 GB, free: 7.973 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002168/0.4628, allocations: 1.045 MB / 0.5546 GB, free: 6.926 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001919/0.4647, allocations: 1.995 MB / 0.5566 GB, free: 4.926 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002951/0.4677, allocations: 2.403 MB / 0.5589 GB, free: 2.508 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009579/0.4773, allocations: 7.847 MB / 0.5666 GB, free: 10.63 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4773, allocations: 0 / 0.5666 GB, free: 10.63 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4773, allocations: 4 kB / 0.5666 GB, free: 10.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002422/0.4776, allocations: 0 / 0.5666 GB, free: 10.62 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01109/0.4887, allocations: 5.246 MB / 0.5717 GB, free: 5.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.4887, allocations: 8.031 kB / 0.5717 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001428/0.4902, allocations: 0.8526 MB / 0.5726 GB, free: 4.43 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/0.5011, allocations: 3.234 MB / 0.5757 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006317/0.5074, allocations: 2.71 MB / 0.5784 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.5077, allocations: 254.4 kB / 0.5786 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001034/0.5087, allocations: 327.8 kB / 0.5789 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01874/0.5275, allocations: 12.24 MB / 0.5909 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.5276, allocations: 31.75 kB / 0.5909 GB, free: 1.051 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004866/0.5281, allocations: 151.8 kB / 0.591 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004654/0.5328, allocations: 2.848 MB / 0.5938 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02055/0.5534, allocations: 11.12 MB / 0.6047 GB, free: 2.906 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05875/0.6122, allocations: 40.6 MB / 0.6443 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009983/0.6222, allocations: 4.694 MB / 0.6489 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003647/0.6259, allocations: 2.427 MB / 0.6513 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001486/0.6274, allocations: 1.319 MB / 0.6526 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.217e-05/0.6275, allocations: 60.5 kB / 0.6526 GB, free: 308 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 9.277e-06/0.6275, allocations: 0 / 0.6526 GB, free: 308 kB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.04755/0.6751, allocations: 18.77 MB / 0.671 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.6752, allocations: 73.41 kB / 0.671 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005753/0.681, allocations: 3.193 MB / 0.6741 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004428/0.6814, allocations: 65.69 kB / 0.6742 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002588/0.684, allocations: 3.249 MB / 0.6774 GB, free: 6.758 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001393/0.6854, allocations: 1.008 MB / 0.6784 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002772/0.6882, allocations: 1.191 MB / 0.6795 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.6884, allocations: 301.1 kB / 0.6798 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003991/0.6924, allocations: 2.463 MB / 0.6822 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006528/0.6989, allocations: 5.719 MB / 0.6878 GB, free: 10.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01126/0.7102, allocations: 8.973 MB / 0.6966 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/0.7103, allocations: 32 kB / 0.6966 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.0177/0.7281, allocations: 9.002 MB / 0.7054 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.7282, allocations: 56.03 kB / 0.7054 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/0.7285, allocations: 112 kB / 0.7055 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00322/0.7317, allocations: 1.046 MB / 0.7066 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004749/0.7365, allocations: 1.349 MB / 0.7079 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007749/0.7442, allocations: 5.541 MB / 0.7133 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004487/0.7488, allocations: 323.7 kB / 0.7136 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/0.75, allocations: 340 kB / 0.7139 GB, free: 13.94 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (725): * Single equations (assignments): 718 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005362/0.7553, allocations: 2.405 MB / 0.7163 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.7564, allocations: 329.8 kB / 0.7166 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01114/0.7676, allocations: 5.368 MB / 0.7218 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.432e-05/0.7677, allocations: 51.98 kB / 0.7219 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/0.7677, allocations: 4 kB / 0.7219 GB, free: 5.711 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.402e-05/0.7678, allocations: 11.95 kB / 0.7219 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2927/1.061, allocations: 13.03 MB / 0.7346 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-05/1.061, allocations: 11.59 kB / 0.7346 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/1.063, allocations: 420.7 kB / 0.735 GB, free: 178.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002749/1.065, allocations: 0.8884 MB / 0.7359 GB, free: 178.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004055/1.066, allocations: 58.77 kB / 0.736 GB, free: 178.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005875/1.072, allocations: 4.839 MB / 0.7407 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/1.072, allocations: 15.62 kB / 0.7407 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.084, allocations: 8.034 MB / 0.7485 GB, free: 172.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000977/1.085, allocations: 380.9 kB / 0.7489 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000665/1.086, allocations: 58.16 kB / 0.749 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/1.087, allocations: 153.5 kB / 0.7491 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/1.087, allocations: 160.5 kB / 0.7493 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/1.088, allocations: 81.62 kB / 0.7493 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002917/1.091, allocations: 1.971 MB / 0.7513 GB, free: 172 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/1.091, allocations: 3.938 kB / 0.7513 GB, free: 172 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005593/1.096, allocations: 1.073 MB / 0.7523 GB, free: 171.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0119/1.108, allocations: 8.706 MB / 0.7608 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008295/1.116, allocations: 6.034 MB / 0.7667 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.925e-05/1.117, allocations: 4 kB / 0.7667 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002588/1.119, allocations: 2.255 MB / 0.7689 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/1.122, allocations: 463.3 kB / 0.7694 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0583/1.18, allocations: 47.08 MB / 0.8153 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003917/1.184, allocations: 3.708 MB / 0.819 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003968/1.188, allocations: 2.158 MB / 0.8211 GB, free: 102 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002789/1.191, allocations: 2.1 MB / 0.8231 GB, free: 99.91 MB / 0.5762 GB Notification: Performance of SimCode: time 1.223e-06/1.191, allocations: 0 / 0.8231 GB, free: 99.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09534/1.286, allocations: 66.73 MB / 0.8883 GB, free: 33.54 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.03/26.31, allocations: 10.69 kB / 0.8883 GB, free: 33.53 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_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_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches