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.001443/0.001443, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001202/0.001202, allocations: 179.1 kB / 18.71 MB, free: 4.363 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.421/1.421, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2263/0.2263, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 75.88 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3613, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01722/0.3786, allocations: 15 MB / 0.5331 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.3903, allocations: 4.405 MB / 0.5374 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003618/0.394, allocations: 84.22 kB / 0.5375 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004717/0.3987, allocations: 2.225 MB / 0.5396 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006009/0.4048, allocations: 2.017 MB / 0.5416 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001895/0.4067, allocations: 0.6146 MB / 0.5422 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008208/0.4149, allocations: 4.29 MB / 0.5464 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005646/0.4206, allocations: 3.157 MB / 0.5495 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003454/0.4241, allocations: 1.577 MB / 0.551 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004385/0.4285, allocations: 2.223 MB / 0.5532 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001618/0.4302, allocations: 344 kB / 0.5535 GB, free: 8.043 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.4336, allocations: 1.053 MB / 0.5545 GB, free: 6.988 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003671/0.4372, allocations: 1.991 MB / 0.5565 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005006/0.4423, allocations: 2.399 MB / 0.5588 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.013/0.4553, allocations: 7.847 MB / 0.5665 GB, free: 10.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4553, allocations: 0 / 0.5665 GB, free: 10.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4554, allocations: 0 / 0.5665 GB, free: 10.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003628/0.4557, allocations: 4 kB / 0.5665 GB, free: 10.7 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.01473/0.4705, allocations: 5.253 MB / 0.5716 GB, free: 5.363 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.4705, allocations: 8.031 kB / 0.5716 GB, free: 5.355 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001823/0.4724, allocations: 0.8487 MB / 0.5725 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01155/0.4839, allocations: 3.23 MB / 0.5756 GB, free: 1.258 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007207/0.4912, allocations: 2.714 MB / 0.5783 GB, free: 14.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/0.4915, allocations: 258.4 kB / 0.5785 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001477/0.493, allocations: 323.8 kB / 0.5788 GB, free: 13.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02396/0.517, allocations: 12.24 MB / 0.5908 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001239/0.5171, allocations: 35.75 kB / 0.5908 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.5177, allocations: 155.8 kB / 0.591 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005126/0.5228, allocations: 2.844 MB / 0.5937 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02438/0.5472, allocations: 11.13 MB / 0.6046 GB, free: 2.965 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06385/0.6111, allocations: 40.59 MB / 0.6442 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009582/0.6207, allocations: 4.698 MB / 0.6488 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003567/0.6243, allocations: 2.435 MB / 0.6512 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001408/0.6257, allocations: 1.307 MB / 0.6525 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.587e-05/0.6258, allocations: 56.5 kB / 0.6525 GB, free: 384 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=249): time 6.432e-06/0.6258, allocations: 0 / 0.6525 GB, free: 384 kB / 0.4981 GB Notification: Performance of matching and sorting (n=267): time 0.0454/0.6712, allocations: 18.78 MB / 0.6709 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.6713, allocations: 77.39 kB / 0.6709 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004742/0.676, allocations: 3.189 MB / 0.6741 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004021/0.6765, allocations: 61.7 kB / 0.6741 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002596/0.6791, allocations: 3.241 MB / 0.6773 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001326/0.6804, allocations: 1.019 MB / 0.6783 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001777/0.6822, allocations: 1.188 MB / 0.6794 GB, free: 4.598 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.6823, allocations: 305.1 kB / 0.6797 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003957/0.6863, allocations: 2.459 MB / 0.6821 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007251/0.6936, allocations: 5.715 MB / 0.6877 GB, free: 10.51 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/0.707, allocations: 8.973 MB / 0.6965 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001097/0.7072, allocations: 32 kB / 0.6965 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01917/0.7263, allocations: 8.997 MB / 0.7053 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.7265, allocations: 52 kB / 0.7053 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002096/0.7267, allocations: 112 kB / 0.7054 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003494/0.7302, allocations: 1.055 MB / 0.7065 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004872/0.7351, allocations: 1.349 MB / 0.7078 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00867/0.7438, allocations: 5.545 MB / 0.7132 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/0.7479, allocations: 323.7 kB / 0.7135 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007655/0.7487, allocations: 340.1 kB / 0.7138 GB, free: 14 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.004784/0.7535, allocations: 2.413 MB / 0.7162 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/0.7541, allocations: 329.8 kB / 0.7165 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/0.7646, allocations: 5.368 MB / 0.7218 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.788e-05/0.7647, allocations: 47.98 kB / 0.7218 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.7647, allocations: 4 kB / 0.7218 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.233e-05/0.7647, allocations: 11.95 kB / 0.7218 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3024/1.067, allocations: 13.03 MB / 0.7345 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-05/1.067, allocations: 15.61 kB / 0.7346 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001741/1.069, allocations: 422.1 kB / 0.735 GB, free: 178.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002705/1.072, allocations: 0.8909 MB / 0.7358 GB, free: 178.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.072, allocations: 52.22 kB / 0.7359 GB, free: 178.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00586/1.078, allocations: 4.837 MB / 0.7406 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.455e-05/1.078, allocations: 20.62 kB / 0.7406 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.088, allocations: 8.031 MB / 0.7485 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008315/1.089, allocations: 383.8 kB / 0.7488 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003674/1.09, allocations: 50.67 kB / 0.7489 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/1.091, allocations: 153.8 kB / 0.749 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/1.091, allocations: 165.9 kB / 0.7492 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/1.091, allocations: 82.08 kB / 0.7493 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002607/1.094, allocations: 1.969 MB / 0.7512 GB, free: 172 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/1.094, allocations: 0 / 0.7512 GB, free: 172 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005511/1.099, allocations: 1.077 MB / 0.7522 GB, free: 171.9 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.01027/1.11, allocations: 8.702 MB / 0.7607 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007109/1.117, allocations: 6.038 MB / 0.7666 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.117, allocations: 4 kB / 0.7666 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002381/1.119, allocations: 2.25 MB / 0.7688 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.00253/1.122, allocations: 468 kB / 0.7693 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05618/1.178, 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.003479/1.182, allocations: 3.7 MB / 0.8189 GB, free: 104.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003725/1.185, allocations: 2.165 MB / 0.821 GB, free: 102 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002263/1.188, allocations: 2.105 MB / 0.823 GB, free: 99.92 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/1.188, allocations: 0 / 0.823 GB, free: 99.92 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/1.294, allocations: 66.73 MB / 0.8882 GB, free: 33.54 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.68/27.97, allocations: 10.2 kB / 0.8882 GB, free: 33.54 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