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.001359/0.001359, allocations: 113.8 kB / 17.08 MB, free: 5.945 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.001326/0.001326, allocations: 194.5 kB / 18.01 MB, free: 5.031 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.426/1.426, allocations: 205.1 MB / 223.9 MB, free: 12.27 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.2097/0.2097, allocations: 43.52 MB / 314.8 MB, free: 456 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.001452/0.001453, allocations: 73.39 kB / 442.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1168, allocations: 57.78 MB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01551/0.1324, allocations: 15.74 MB / 0.5039 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009498/0.1419, allocations: 4.501 MB / 0.5083 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002704/0.1447, allocations: 83.81 kB / 0.5084 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004567/0.1492, allocations: 2.242 MB / 0.5106 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005495/0.1548, allocations: 2.074 MB / 0.5126 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.1563, allocations: 0.6239 MB / 0.5132 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005666/0.162, allocations: 4.459 MB / 0.5176 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00405/0.1661, allocations: 3.224 MB / 0.5207 GB, free: 10.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.1692, allocations: 1.658 MB / 0.5223 GB, free: 9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003914/0.1731, allocations: 2.289 MB / 0.5246 GB, free: 6.703 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00114/0.1742, allocations: 348 kB / 0.5249 GB, free: 6.363 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.1768, allocations: 1.042 MB / 0.5259 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001951/0.1787, allocations: 2.065 MB / 0.5279 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002766/0.1815, allocations: 2.489 MB / 0.5304 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3012/0.4827, allocations: 8.041 MB / 0.5382 GB, free: 10.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.4828, allocations: 0 / 0.5382 GB, free: 10.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4828, allocations: 0.6562 kB / 0.5382 GB, free: 10.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004855/0.4833, allocations: 0 / 0.5382 GB, free: 10.7 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.02029/0.5036, allocations: 5.27 MB / 0.5434 GB, free: 8.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/0.5037, allocations: 13.55 kB / 0.5434 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01301/0.5167, allocations: 3.189 MB / 0.5465 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008106/0.5248, allocations: 2.48 MB / 0.5489 GB, free: 7.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004128/0.5253, allocations: 263.3 kB / 0.5492 GB, free: 7.664 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/0.528, allocations: 341.4 kB / 0.5495 GB, free: 7.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02819/0.5561, allocations: 12.66 MB / 0.5619 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/0.5564, allocations: 31.22 kB / 0.5619 GB, free: 4.414 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001078/0.5575, allocations: 161.3 kB / 0.562 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004802/0.5623, allocations: 3.038 MB / 0.565 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02249/0.5848, allocations: 11.32 MB / 0.5761 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06742/0.6523, allocations: 42.09 MB / 0.6172 GB, free: 1.738 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009891/0.6622, allocations: 4.701 MB / 0.6218 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/0.6659, allocations: 2.444 MB / 0.6242 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001297/0.6672, allocations: 1.316 MB / 0.6254 GB, free: 8.832 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.6673, allocations: 69.14 kB / 0.6255 GB, free: 8.762 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 1.944e-05/0.6673, allocations: 0 / 0.6255 GB, free: 8.762 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.04982/0.7172, allocations: 19.51 MB / 0.6446 GB, free: 5.145 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.331e-05/0.7173, allocations: 103.1 kB / 0.6447 GB, free: 5.023 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006317/0.7236, allocations: 3.264 MB / 0.6478 GB, free: 1.754 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005029/0.7241, allocations: 61.7 kB / 0.6479 GB, free: 1.688 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002673/0.7268, allocations: 3.275 MB / 0.6511 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001543/0.7284, allocations: 0.9813 MB / 0.6521 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003009/0.7314, allocations: 1.214 MB / 0.6532 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.7316, allocations: 301.1 kB / 0.6535 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004262/0.7358, allocations: 2.501 MB / 0.656 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007148/0.743, allocations: 5.891 MB / 0.6617 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01327/0.7563, allocations: 9.192 MB / 0.6707 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/0.7565, allocations: 36 kB / 0.6707 GB, free: 7.523 MB / 0.5137 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02029/0.7768, allocations: 9.177 MB / 0.6797 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.777, allocations: 58.5 kB / 0.6798 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002269/0.7772, allocations: 120 kB / 0.6799 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003512/0.7807, allocations: 1.058 MB / 0.6809 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005334/0.7861, allocations: 1.392 MB / 0.6823 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008065/0.7942, allocations: 5.552 MB / 0.6877 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/0.7989, allocations: 327.8 kB / 0.688 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/0.8001, allocations: 359.4 kB / 0.6883 GB, free: 5.852 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.006094/0.8062, allocations: 2.486 MB / 0.6908 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009278/0.8072, allocations: 327.9 kB / 0.6911 GB, free: 3.027 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/0.8182, allocations: 5.373 MB / 0.6963 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.818e-05/0.8183, allocations: 47.98 kB / 0.6964 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/0.8184, allocations: 4 kB / 0.6964 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.949e-05/0.8184, allocations: 11.95 kB / 0.6964 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02792/0.8463, allocations: 13.32 MB / 0.7094 GB, free: 24 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-05/0.8464, allocations: 10.62 kB / 0.7094 GB, free: 16 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/0.8484, allocations: 431.5 kB / 0.7098 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002863/0.8513, allocations: 0.8824 MB / 0.7107 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000425/0.8518, allocations: 59.98 kB / 0.7107 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006621/0.8584, allocations: 4.829 MB / 0.7155 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.566e-05/0.8585, allocations: 23.88 kB / 0.7155 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/0.872, allocations: 8.029 MB / 0.7233 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/0.874, allocations: 0.7415 MB / 0.724 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009049/0.8749, allocations: 53.95 kB / 0.7241 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/0.8769, allocations: 151.8 kB / 0.7242 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004819/0.8774, allocations: 169.5 kB / 0.7244 GB, free: 296 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/0.8776, allocations: 74.58 kB / 0.7245 GB, free: 224 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004319/0.882, allocations: 2.015 MB / 0.7264 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.7e-07/0.882, allocations: 0 / 0.7264 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006601/0.8886, allocations: 1.125 MB / 0.7275 GB, free: 13.09 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.0008122/0.8894, allocations: 190 kB / 0.7277 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01037/0.8998, allocations: 6.136 MB / 0.7337 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.8999, allocations: 0 / 0.7337 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003696/0.9036, allocations: 2.255 MB / 0.7359 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003457/0.9071, allocations: 448.2 kB / 0.7363 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02579/0.9329, allocations: 12.12 MB / 0.7482 GB, free: 7.766 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00709/0.94, allocations: 3.836 MB / 0.7519 GB, free: 3.902 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001378/0.9414, allocations: 291.4 kB / 0.7522 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of SimCode: time 8.81e-07/0.9414, allocations: 0 / 0.7522 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of Templates: time 0.3355/1.277, allocations: 87.25 MB / 0.8374 GB, free: 148.4 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/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