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: translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 110.9 kB / 16.41 MB, free: 6.477 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.001305/0.001305, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.701/1.701, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2443/0.2443, allocations: 43.53 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.001794/0.001794, allocations: 68.45 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1637, allocations: 57.8 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02006/0.1838, allocations: 15.73 MB / 0.5033 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.1979, allocations: 4.498 MB / 0.5077 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005527/0.2034, allocations: 79.81 kB / 0.5077 GB, free: 7.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005558/0.209, allocations: 2.254 MB / 0.5099 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00773/0.2169, allocations: 2.129 MB / 0.512 GB, free: 3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.219, allocations: 0.62 MB / 0.5126 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007871/0.2269, allocations: 4.463 MB / 0.517 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005873/0.2328, allocations: 3.217 MB / 0.5201 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00414/0.237, allocations: 1.67 MB / 0.5218 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004396/0.2414, allocations: 2.282 MB / 0.524 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001583/0.243, allocations: 348 kB / 0.5243 GB, free: 6.328 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.2466, allocations: 1.045 MB / 0.5253 GB, free: 5.281 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003455/0.25, allocations: 2.057 MB / 0.5273 GB, free: 3.219 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006663/0.2567, allocations: 2.489 MB / 0.5298 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.409/0.6657, allocations: 8.044 MB / 0.5376 GB, free: 10.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.229e-05/0.6658, allocations: 0.7031 kB / 0.5376 GB, free: 10.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.6658, allocations: 3.375 kB / 0.5376 GB, free: 10.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004685/0.6663, allocations: 1.531 kB / 0.5376 GB, free: 10.73 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.0225/0.6888, allocations: 5.269 MB / 0.5428 GB, free: 8.617 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.6889, allocations: 13.55 kB / 0.5428 GB, free: 8.613 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01356/0.7024, allocations: 3.193 MB / 0.5459 GB, free: 8.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009395/0.7119, allocations: 2.482 MB / 0.5483 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004015/0.7123, allocations: 260.9 kB / 0.5486 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002016/0.7144, allocations: 346.4 kB / 0.5489 GB, free: 7.688 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02894/0.7433, allocations: 12.66 MB / 0.5613 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001865/0.7436, allocations: 29.06 kB / 0.5613 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006275/0.7442, allocations: 159.2 kB / 0.5615 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005746/0.75, allocations: 3.037 MB / 0.5644 GB, free: 3.238 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02741/0.7774, allocations: 11.33 MB / 0.5755 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09029/0.8677, allocations: 42.08 MB / 0.6166 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01292/0.8807, allocations: 4.711 MB / 0.6212 GB, free: 12.88 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004759/0.8855, allocations: 2.44 MB / 0.6236 GB, free: 10.44 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001769/0.8874, allocations: 1.316 MB / 0.6248 GB, free: 8.914 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.52e-05/0.8875, allocations: 55.84 kB / 0.6249 GB, free: 8.852 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 1.034e-05/0.8875, allocations: 0 / 0.6249 GB, free: 8.852 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.06035/0.9479, allocations: 19.52 MB / 0.644 GB, free: 5.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/0.948, allocations: 99.11 kB / 0.6441 GB, free: 5.105 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008884/0.9569, allocations: 3.26 MB / 0.6472 GB, free: 1.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001218/0.9581, allocations: 61.73 kB / 0.6473 GB, free: 1.773 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004129/0.9623, allocations: 3.285 MB / 0.6505 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002182/0.9645, allocations: 0.9729 MB / 0.6515 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004495/0.969, allocations: 1.214 MB / 0.6526 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.9692, allocations: 305.1 kB / 0.6529 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005687/0.9749, allocations: 2.495 MB / 0.6554 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008838/0.9838, allocations: 5.894 MB / 0.6611 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/0.9981, allocations: 9.203 MB / 0.6701 GB, free: 7.629 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001833/0.9983, allocations: 33.97 kB / 0.6702 GB, free: 7.598 MB / 0.5137 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02821/1.027, allocations: 9.173 MB / 0.6791 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001669/1.027, allocations: 56 kB / 0.6792 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000244/1.027, allocations: 116 kB / 0.6793 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003436/1.03, allocations: 1.061 MB / 0.6803 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005977/1.036, allocations: 1.392 MB / 0.6817 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008687/1.045, allocations: 5.543 MB / 0.6871 GB, free: 6.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006105/1.051, allocations: 331.8 kB / 0.6874 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002045/1.053, allocations: 359.5 kB / 0.6877 GB, free: 5.938 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 (751): * Single equations (assignments): 744 * 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.01014/1.064, allocations: 2.482 MB / 0.6902 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001475/1.065, allocations: 319.8 kB / 0.6905 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01479/1.08, allocations: 5.384 MB / 0.6957 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/1.08, allocations: 48.86 kB / 0.6958 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.619e-05/1.08, allocations: 4 kB / 0.6958 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-05/1.08, allocations: 7.969 kB / 0.6958 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03495/1.115, allocations: 13.33 MB / 0.7088 GB, free: 112 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.698e-05/1.115, allocations: 12 kB / 0.7088 GB, free: 100 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002029/1.117, allocations: 423.3 kB / 0.7092 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002862/1.12, allocations: 0.8929 MB / 0.7101 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004088/1.121, allocations: 58.48 kB / 0.7101 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006873/1.127, allocations: 4.828 MB / 0.7149 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.865e-05/1.127, allocations: 31.56 kB / 0.7149 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/1.142, allocations: 8.026 MB / 0.7227 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002758/1.145, allocations: 0.735 MB / 0.7234 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001313/1.146, allocations: 54.41 kB / 0.7235 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00264/1.149, allocations: 151.8 kB / 0.7236 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005587/1.149, allocations: 161.6 kB / 0.7238 GB, free: 396 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/1.149, allocations: 79.66 kB / 0.7239 GB, free: 320 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004155/1.154, allocations: 2.022 MB / 0.7258 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.154, allocations: 6.625 kB / 0.7259 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007572/1.161, allocations: 1.113 MB / 0.7269 GB, free: 13.18 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.0007221/1.162, allocations: 198.3 kB / 0.7271 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01114/1.173, allocations: 6.122 MB / 0.7331 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/1.173, allocations: 4 kB / 0.7331 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003551/1.177, allocations: 2.257 MB / 0.7353 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/1.18, allocations: 433.7 kB / 0.7357 GB, free: 4.172 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.026/1.206, allocations: 11.61 MB / 0.7471 GB, free: 8.387 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006543/1.212, allocations: 3.831 MB / 0.7508 GB, free: 4.527 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00572/1.218, allocations: 2.185 MB / 0.7529 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008967/1.219, allocations: 239.4 kB / 0.7532 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of SimCode: time 1.422e-06/1.219, allocations: 0 / 0.7532 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of Templates: time 0.4216/1.641, allocations: 34.93 MB / 0.7873 GB, free: 199.7 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins/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