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.001169/0.001169, allocations: 106.2 kB / 16.27 MB, free: 5.98 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.001796/0.001796, allocations: 191.9 kB / 17.2 MB, free: 5.613 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.465/1.465, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2277/0.2277, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.001753/0.001753, allocations: 70.48 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1031, allocations: 57.78 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01655/0.1197, allocations: 15.73 MB / 456.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.1305, allocations: 4.517 MB / 460.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003397/0.134, allocations: 79.88 kB / 460.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005214/0.1392, allocations: 2.25 MB / 463.2 MB, free: 144 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006296/0.1456, allocations: 2.062 MB / 465.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.1476, allocations: 0.6277 MB / 465.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006667/0.1543, allocations: 4.451 MB / 470.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005411/0.1597, allocations: 3.217 MB / 473.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003262/0.163, allocations: 1.643 MB / 475.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003822/0.1668, allocations: 2.274 MB / 477.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.1682, allocations: 348 kB / 477.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003685/0.172, allocations: 1.049 MB / 478.9 MB, free: 400 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003243/0.1752, allocations: 2.057 MB / 480.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005081/0.1803, allocations: 2.5 MB / 483.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.1908, allocations: 7.714 MB / 491.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.1909, allocations: 0 / 491.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1909, allocations: 0 / 491.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003308/0.1912, allocations: 0 / 491.1 MB, free: 4.074 MB / 366.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.01158/0.2028, allocations: 5.285 MB / 496.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.2029, allocations: 23.83 kB / 496.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001715/0.2046, allocations: 0.886 MB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01143/0.2161, allocations: 3.203 MB / 0.4888 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0064/0.2225, allocations: 2.846 MB / 0.4916 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002912/0.2228, allocations: 266.7 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/0.2244, allocations: 347.6 kB / 0.4922 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.2483, allocations: 12.65 MB / 0.5045 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.2484, allocations: 35.75 kB / 0.5045 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004694/0.2489, allocations: 155.8 kB / 0.5047 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005312/0.2542, allocations: 3.032 MB / 0.5077 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02339/0.2777, allocations: 11.34 MB / 0.5187 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2874/0.5651, allocations: 42.3 MB / 0.56 GB, free: 58.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008066/0.5732, allocations: 4.705 MB / 0.5646 GB, free: 56.03 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00254/0.5757, allocations: 2.44 MB / 0.567 GB, free: 54.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008166/0.5766, allocations: 1.313 MB / 0.5683 GB, free: 53.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.5766, allocations: 61.19 kB / 0.5684 GB, free: 53.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 5.189e-06/0.5766, allocations: 4 kB / 0.5684 GB, free: 53.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.03726/0.6139, allocations: 19.55 MB / 0.5875 GB, free: 39.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.614, allocations: 111 kB / 0.5876 GB, free: 39.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/0.6174, allocations: 3.275 MB / 0.5908 GB, free: 36.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002461/0.6177, allocations: 61.7 kB / 0.5908 GB, free: 36.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.6189, allocations: 3.277 MB / 0.594 GB, free: 32.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006246/0.6196, allocations: 0.9755 MB / 0.595 GB, free: 31.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/0.6208, allocations: 1.206 MB / 0.5962 GB, free: 30.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.72e-05/0.6208, allocations: 309.2 kB / 0.5964 GB, free: 30.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/0.6235, allocations: 2.491 MB / 0.5989 GB, free: 27.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004564/0.6281, allocations: 5.88 MB / 0.6046 GB, free: 20.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008009/0.6361, allocations: 9.19 MB / 0.6136 GB, free: 9.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.584e-05/0.6362, allocations: 32 kB / 0.6136 GB, free: 9.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01372/0.65, allocations: 9.149 MB / 0.6226 GB, free: 356 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.1e-05/0.65, allocations: 56 kB / 0.6226 GB, free: 300 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.6502, allocations: 120 kB / 0.6227 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003313/0.6535, allocations: 1.062 MB / 0.6238 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005187/0.6587, allocations: 1.384 MB / 0.6251 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007946/0.6666, allocations: 5.556 MB / 0.6305 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004319/0.671, allocations: 331.1 kB / 0.6309 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00098/0.672, allocations: 355.3 kB / 0.6312 GB, free: 7.367 MB / 430.1 MB 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.004657/0.6767, allocations: 2.482 MB / 0.6336 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008244/0.6775, allocations: 319.8 kB / 0.6339 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01012/0.6876, allocations: 5.381 MB / 0.6392 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.714e-05/0.6878, allocations: 55.91 kB / 0.6392 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.142e-05/0.6878, allocations: 4 kB / 0.6392 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.68e-05/0.6878, allocations: 11.95 kB / 0.6392 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/0.715, allocations: 13.37 MB / 0.6523 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.772e-05/0.715, allocations: 12 kB / 0.6523 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/0.717, allocations: 427.4 kB / 0.6527 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002932/0.72, allocations: 0.894 MB / 0.6536 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003901/0.7204, allocations: 59.38 kB / 0.6536 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007091/0.7275, allocations: 4.828 MB / 0.6584 GB, free: 11.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.801e-05/0.7276, allocations: 19.88 kB / 0.6584 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/0.742, allocations: 8.038 MB / 0.6662 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/0.744, allocations: 0.7274 MB / 0.6669 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008516/0.7448, allocations: 55.98 kB / 0.667 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/0.7467, allocations: 147.8 kB / 0.6671 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004585/0.7472, allocations: 169.5 kB / 0.6673 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000212/0.7474, allocations: 87.94 kB / 0.6674 GB, free: 1.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004033/0.7515, allocations: 2.022 MB / 0.6694 GB, free: 15.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7515, allocations: 0 / 0.6694 GB, free: 15.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006665/0.7582, allocations: 1.114 MB / 0.6704 GB, free: 14.54 MB / 478.1 MB 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.01544/0.7736, allocations: 8.716 MB / 0.679 GB, free: 5.602 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01707/0.7907, allocations: 9.706 MB / 0.6884 GB, free: 11.92 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/0.7908, allocations: 4 kB / 0.6884 GB, free: 11.92 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004041/0.7948, allocations: 2.258 MB / 0.6906 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004066/0.7989, allocations: 443.9 kB / 0.6911 GB, free: 9.223 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3001/1.099, allocations: 52.86 MB / 0.7427 GB, free: 171.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006255/1.105, allocations: 3.83 MB / 0.7464 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005038/1.11, allocations: 2.182 MB / 0.7486 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003099/1.114, allocations: 2.207 MB / 0.7507 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of SimCode: time 2.214e-06/1.114, allocations: 0 / 0.7507 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1042/1.218, allocations: 70.98 MB / 0.82 GB, free: 104.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12.68, allocations: 11.2 kB / 0.82 GB, free: 104.2 MB / 0.5137 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