Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_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.001085/0.001085, allocations: 109 kB / 16.41 MB, free: 6.488 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.001161/0.001161, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2071/0.2071, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 71.91 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1019, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01624/0.1182, allocations: 15.74 MB / 0.5028 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009346/0.1276, allocations: 4.494 MB / 0.5072 GB, free: 7.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.1307, allocations: 83.81 kB / 0.5073 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005322/0.1361, allocations: 2.25 MB / 0.5094 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006548/0.1427, allocations: 2.125 MB / 0.5115 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00227/0.145, allocations: 0.62 MB / 0.5121 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007415/0.1524, allocations: 4.475 MB / 0.5165 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005415/0.1579, allocations: 3.22 MB / 0.5196 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003004/0.1609, allocations: 1.67 MB / 0.5213 GB, free: 9.445 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003385/0.1643, allocations: 2.282 MB / 0.5235 GB, free: 7.156 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001103/0.1655, allocations: 351.9 kB / 0.5238 GB, free: 6.812 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002497/0.168, allocations: 1.049 MB / 0.5249 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002424/0.1704, allocations: 2.053 MB / 0.5269 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003774/0.1742, allocations: 2.5 MB / 0.5293 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2463/0.4205, allocations: 8.083 MB / 0.5372 GB, free: 10.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.4206, allocations: 1.156 kB / 0.5372 GB, free: 10.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.4206, allocations: 0 / 0.5372 GB, free: 10.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000338/0.421, allocations: 0 / 0.5372 GB, free: 10.11 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: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01614/0.4371, allocations: 5.433 MB / 0.5425 GB, free: 7.836 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.4372, allocations: 17.48 kB / 0.5425 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002599/0.4398, allocations: 0.8858 MB / 0.5434 GB, free: 7.746 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01245/0.4522, allocations: 3.236 MB / 0.5466 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007291/0.4596, allocations: 2.9 MB / 0.5494 GB, free: 6.773 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.4599, allocations: 259.5 kB / 0.5496 GB, free: 6.766 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/0.4615, allocations: 345.1 kB / 0.55 GB, free: 6.758 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02111/0.4826, allocations: 12.66 MB / 0.5623 GB, free: 3.121 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.4828, allocations: 35.08 kB / 0.5624 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005542/0.4833, allocations: 157.8 kB / 0.5625 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004806/0.4882, allocations: 3.028 MB / 0.5655 GB, free: 1.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02159/0.5098, allocations: 11.33 MB / 0.5765 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06718/0.577, allocations: 42.19 MB / 0.6177 GB, free: 4 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.5872, allocations: 4.708 MB / 0.6223 GB, free: 11.07 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003591/0.5908, allocations: 2.434 MB / 0.6247 GB, free: 8.629 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001256/0.5921, allocations: 1.323 MB / 0.626 GB, free: 7.102 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.5922, allocations: 60.55 kB / 0.626 GB, free: 7.031 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 6.181e-06/0.5922, allocations: 0 / 0.626 GB, free: 7.031 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05089/0.6431, allocations: 19.69 MB / 0.6453 GB, free: 3.246 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.6432, allocations: 103.1 kB / 0.6454 GB, free: 3.125 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005968/0.6492, allocations: 3.286 MB / 0.6486 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000524/0.6498, allocations: 61.7 kB / 0.6486 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002536/0.6523, allocations: 3.419 MB / 0.652 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001572/0.6539, allocations: 1.018 MB / 0.653 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00292/0.6568, allocations: 1.224 MB / 0.6542 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.6569, allocations: 305.1 kB / 0.6545 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00398/0.6609, allocations: 2.484 MB / 0.6569 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006158/0.6671, allocations: 5.885 MB / 0.6626 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01112/0.6783, allocations: 9.181 MB / 0.6716 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001168/0.6784, allocations: 32 kB / 0.6716 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of matching and sorting (n=809) (initialization): time 0.02036/0.6988, allocations: 9.172 MB / 0.6806 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001961/0.699, allocations: 56 kB / 0.6806 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002621/0.6993, allocations: 124.2 kB / 0.6808 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003331/0.7027, allocations: 1.06 MB / 0.6818 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005322/0.708, allocations: 1.38 MB / 0.6831 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00775/0.7158, allocations: 5.556 MB / 0.6886 GB, free: 4.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004884/0.7207, allocations: 330.4 kB / 0.6889 GB, free: 4.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/0.7222, allocations: 348 kB / 0.6892 GB, free: 3.82 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (747): * Single equations (assignments): 740 * 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.0065/0.7287, allocations: 2.492 MB / 0.6917 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009321/0.7296, allocations: 333.8 kB / 0.692 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/0.7403, allocations: 5.376 MB / 0.6972 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.43e-05/0.7404, allocations: 55.98 kB / 0.6973 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.7404, allocations: 4 kB / 0.6973 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/0.7404, allocations: 7.969 kB / 0.6973 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02553/0.766, allocations: 13.34 MB / 0.7103 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/0.766, allocations: 12 kB / 0.7103 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001866/0.7679, allocations: 423 kB / 0.7107 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002735/0.7707, allocations: 0.8972 MB / 0.7116 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002727/0.771, allocations: 51.98 kB / 0.7117 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006109/0.7771, allocations: 4.842 MB / 0.7164 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-05/0.7771, allocations: 19.88 kB / 0.7164 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/0.7894, allocations: 8.048 MB / 0.7243 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/0.7916, allocations: 0.7525 MB / 0.725 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00088/0.7925, allocations: 55.27 kB / 0.725 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/0.7943, allocations: 147.8 kB / 0.7252 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004191/0.7948, allocations: 169.6 kB / 0.7253 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/0.795, allocations: 75.98 kB / 0.7254 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004554/0.7996, allocations: 2.022 MB / 0.7274 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7996, allocations: 0 / 0.7274 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006207/0.8058, allocations: 1.116 MB / 0.7285 GB, free: 11 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.01258/0.8184, allocations: 8.723 MB / 0.737 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008993/0.8274, allocations: 6.112 MB / 0.743 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.8274, allocations: 0 / 0.743 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003074/0.8305, allocations: 2.258 MB / 0.7452 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003085/0.8336, allocations: 450.1 kB / 0.7456 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2886/1.122, allocations: 48.4 MB / 0.7929 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005844/1.128, allocations: 3.822 MB / 0.7966 GB, free: 190.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004215/1.132, allocations: 2.188 MB / 0.7987 GB, free: 189.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002946/1.135, allocations: 2.202 MB / 0.8009 GB, free: 187.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.052e-06/1.135, allocations: 0 / 0.8009 GB, free: 187.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09681/1.232, allocations: 67.61 MB / 0.8669 GB, free: 119.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.58/26.81, allocations: 23.64 kB / 0.8669 GB, free: 119.5 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches