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.001109/0.001109, allocations: 102.8 kB / 16.27 MB, free: 5.93 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.00123/0.00123, allocations: 190.7 kB / 17.2 MB, free: 5.574 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.395/1.395, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2189/0.2189, 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.001863/0.001863, allocations: 69.95 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1037, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01436/0.1181, allocations: 15.74 MB / 456.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.1285, allocations: 4.502 MB / 460.9 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.131, allocations: 83.81 kB / 460.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004399/0.1354, allocations: 2.254 MB / 463.2 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006154/0.1417, allocations: 2.07 MB / 465.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002013/0.1437, allocations: 0.6161 MB / 465.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006166/0.1499, allocations: 4.45 MB / 470.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004816/0.1548, allocations: 3.22 MB / 473.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003047/0.1578, allocations: 1.639 MB / 475.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003467/0.1613, allocations: 2.274 MB / 477.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.1627, allocations: 348 kB / 477.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002849/0.1656, allocations: 1.049 MB / 478.9 MB, free: 396 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002885/0.1685, allocations: 2.065 MB / 480.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004184/0.1727, allocations: 2.496 MB / 483.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.1835, allocations: 7.713 MB / 491.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.1836, allocations: 0 / 491.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1836, allocations: 3.938 kB / 491.1 MB, free: 4.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003677/0.1839, allocations: 0 / 491.1 MB, free: 4.062 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.01487/0.1988, allocations: 5.285 MB / 496.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.567e-05/0.1989, allocations: 11.89 kB / 496.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002337/0.2013, allocations: 0.886 MB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/0.213, allocations: 3.207 MB / 0.4888 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006442/0.2195, allocations: 2.857 MB / 0.4916 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.2198, allocations: 262.7 kB / 0.4918 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.2209, allocations: 347.7 kB / 0.4922 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01961/0.2406, allocations: 12.66 MB / 0.5045 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.2407, allocations: 27.75 kB / 0.5045 GB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005021/0.2412, allocations: 163.8 kB / 0.5047 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005321/0.2465, allocations: 3.02 MB / 0.5077 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02241/0.269, allocations: 11.34 MB / 0.5187 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.262/0.531, allocations: 42.3 MB / 0.56 GB, free: 58.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008356/0.5394, allocations: 4.707 MB / 0.5646 GB, free: 56.01 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002504/0.542, allocations: 2.433 MB / 0.567 GB, free: 54.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008091/0.5428, allocations: 1.327 MB / 0.5683 GB, free: 53.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.5428, allocations: 56 kB / 0.5684 GB, free: 53.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=250): time 4.569e-06/0.5428, allocations: 3.984 kB / 0.5684 GB, free: 53.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=268): time 0.03903/0.5819, allocations: 19.56 MB / 0.5875 GB, free: 39.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.5819, allocations: 103.1 kB / 0.5876 GB, free: 39.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/0.5857, allocations: 3.279 MB / 0.5908 GB, free: 36.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004307/0.5862, allocations: 61.22 kB / 0.5908 GB, free: 36.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/0.5875, allocations: 3.272 MB / 0.594 GB, free: 32.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007361/0.5883, allocations: 0.9777 MB / 0.595 GB, free: 31.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.5895, allocations: 1.214 MB / 0.5962 GB, free: 30.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.782e-05/0.5896, allocations: 301.1 kB / 0.5964 GB, free: 30.4 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/0.5922, allocations: 2.487 MB / 0.5989 GB, free: 27.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00364/0.5959, allocations: 5.884 MB / 0.6046 GB, free: 20.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007483/0.6034, allocations: 9.178 MB / 0.6136 GB, free: 9.504 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.658e-05/0.6034, allocations: 39.94 kB / 0.6136 GB, free: 9.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.01365/0.6171, allocations: 9.153 MB / 0.6226 GB, free: 320 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.6172, allocations: 56 kB / 0.6226 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.6173, allocations: 116 kB / 0.6227 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00314/0.6205, allocations: 1.066 MB / 0.6238 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/0.6248, allocations: 1.384 MB / 0.6251 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007298/0.6321, allocations: 5.555 MB / 0.6305 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004062/0.6362, allocations: 326.8 kB / 0.6309 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000915/0.6371, allocations: 348 kB / 0.6312 GB, free: 7.344 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.004819/0.642, allocations: 2.501 MB / 0.6336 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000969/0.643, allocations: 319.8 kB / 0.6339 GB, free: 4.516 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0099/0.6529, allocations: 5.373 MB / 0.6392 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.34e-05/0.653, allocations: 52 kB / 0.6392 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.653, allocations: 0 / 0.6392 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/0.653, allocations: 15.95 kB / 0.6392 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/0.6773, allocations: 13.36 MB / 0.6523 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/0.6773, allocations: 11.98 kB / 0.6523 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/0.6792, allocations: 430.6 kB / 0.6527 GB, free: 1.035 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002929/0.6822, allocations: 0.8948 MB / 0.6536 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/0.6824, allocations: 63.58 kB / 0.6537 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006596/0.689, allocations: 4.832 MB / 0.6584 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.625e-05/0.689, allocations: 15.94 kB / 0.6584 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/0.7019, allocations: 8.035 MB / 0.6662 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002398/0.7043, allocations: 0.7274 MB / 0.6669 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005595/0.7049, allocations: 55.98 kB / 0.667 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.7065, allocations: 155.7 kB / 0.6671 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004151/0.7069, allocations: 165.5 kB / 0.6673 GB, free: 1.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/0.7071, allocations: 87.27 kB / 0.6674 GB, free: 1.629 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003219/0.7103, allocations: 2.018 MB / 0.6694 GB, free: 15.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.7103, allocations: 0 / 0.6694 GB, free: 15.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0051/0.7154, allocations: 1.111 MB / 0.6704 GB, free: 14.51 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.01235/0.7278, allocations: 8.716 MB / 0.679 GB, free: 5.578 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01611/0.7439, allocations: 9.707 MB / 0.6884 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/0.744, allocations: 8.062 kB / 0.6884 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003404/0.7474, allocations: 2.253 MB / 0.6906 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/0.7504, allocations: 448.2 kB / 0.6911 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2767/1.027, allocations: 52.86 MB / 0.7427 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006121/1.033, allocations: 3.83 MB / 0.7464 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00441/1.038, allocations: 2.186 MB / 0.7486 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002419/1.04, allocations: 2.207 MB / 0.7507 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.022e-06/1.04, allocations: 0 / 0.7507 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1651/1.205, allocations: 70.97 MB / 0.82 GB, free: 104 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.42, allocations: 19.5 kB / 0.82 GB, free: 104 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 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.mat","/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