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.001557/0.001557, allocations: 116.5 kB / 17.08 MB, free: 5.961 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.001773/0.001773, allocations: 198.9 kB / 18.02 MB, free: 5.043 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.413/1.413, allocations: 205.1 MB / 223.9 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.2063/0.2063, allocations: 43.51 MB / 314.8 MB, free: 464 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.001557/0.001557, allocations: 73.45 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.118, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0165/0.1346, allocations: 15.74 MB / 0.5039 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.1454, allocations: 4.494 MB / 0.5083 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002891/0.1483, allocations: 87.75 kB / 0.5084 GB, free: 7.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005036/0.1534, allocations: 2.25 MB / 0.5106 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006012/0.1595, allocations: 2.062 MB / 0.5126 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.1614, allocations: 0.62 MB / 0.5132 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006416/0.1678, allocations: 4.463 MB / 0.5176 GB, free: 13.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004794/0.1726, allocations: 3.22 MB / 0.5207 GB, free: 10.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003385/0.1761, allocations: 1.635 MB / 0.5223 GB, free: 9.043 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003786/0.1799, allocations: 2.285 MB / 0.5245 GB, free: 6.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001337/0.1812, allocations: 348 kB / 0.5249 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00275/0.184, allocations: 1.045 MB / 0.5259 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002632/0.1867, allocations: 2.065 MB / 0.5279 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00421/0.1909, allocations: 2.492 MB / 0.5303 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2908/0.4817, allocations: 8.034 MB / 0.5382 GB, free: 10.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.4817, allocations: 0.75 kB / 0.5382 GB, free: 10.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4818, allocations: 4.125 kB / 0.5382 GB, free: 10.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003844/0.4821, allocations: 1.062 kB / 0.5382 GB, free: 10.66 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.01559/0.4977, allocations: 5.264 MB / 0.5433 GB, free: 8.547 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.4978, allocations: 12.55 kB / 0.5433 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01198/0.5098, allocations: 3.185 MB / 0.5465 GB, free: 8.211 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006763/0.5166, allocations: 2.486 MB / 0.5489 GB, free: 7.629 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002774/0.5169, allocations: 262.1 kB / 0.5491 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001902/0.5188, allocations: 340.9 kB / 0.5495 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02989/0.5487, allocations: 12.66 MB / 0.5618 GB, free: 4.402 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003145/0.5491, allocations: 36.19 kB / 0.5619 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002241/0.5514, allocations: 155.9 kB / 0.562 GB, free: 4.336 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005598/0.557, allocations: 3.033 MB / 0.565 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02557/0.5826, allocations: 11.33 MB / 0.576 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07446/0.6571, allocations: 42.09 MB / 0.6171 GB, free: 1.777 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01023/0.6674, allocations: 4.709 MB / 0.6217 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003825/0.6712, allocations: 2.443 MB / 0.6241 GB, free: 10.39 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.6726, allocations: 1.315 MB / 0.6254 GB, free: 8.867 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.151e-05/0.6727, allocations: 64.2 kB / 0.6255 GB, free: 8.797 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 6.302e-06/0.6727, allocations: 0 / 0.6255 GB, free: 8.797 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05371/0.7264, allocations: 19.52 MB / 0.6445 GB, free: 5.176 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.7265, allocations: 99.11 kB / 0.6446 GB, free: 5.059 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007505/0.734, allocations: 3.266 MB / 0.6478 GB, free: 1.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006255/0.7347, allocations: 61.61 kB / 0.6479 GB, free: 1.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002865/0.7376, allocations: 3.274 MB / 0.6511 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001598/0.7392, allocations: 0.9788 MB / 0.652 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003466/0.7426, allocations: 1.217 MB / 0.6532 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.7428, allocations: 301.1 kB / 0.6535 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004505/0.7473, allocations: 2.495 MB / 0.6559 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007164/0.7545, allocations: 5.895 MB / 0.6617 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/0.7667, allocations: 9.195 MB / 0.6707 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/0.7669, allocations: 32 kB / 0.6707 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02014/0.787, allocations: 9.177 MB / 0.6797 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.7872, allocations: 56 kB / 0.6797 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002091/0.7874, allocations: 116 kB / 0.6798 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003104/0.7905, allocations: 1.066 MB / 0.6809 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004962/0.7955, allocations: 1.392 MB / 0.6822 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008107/0.8036, allocations: 5.55 MB / 0.6876 GB, free: 6.559 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004913/0.8086, allocations: 326.4 kB / 0.688 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001272/0.8098, allocations: 355.9 kB / 0.6883 GB, free: 5.895 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.006037/0.8159, allocations: 2.493 MB / 0.6907 GB, free: 3.391 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/0.8169, allocations: 315.9 kB / 0.691 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/0.8277, allocations: 5.379 MB / 0.6963 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.287e-05/0.8278, allocations: 47.98 kB / 0.6963 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.8278, allocations: 0 / 0.6963 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.888e-05/0.8279, allocations: 15.95 kB / 0.6963 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02671/0.8546, allocations: 13.32 MB / 0.7094 GB, free: 72 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.292e-05/0.8547, allocations: 12 kB / 0.7094 GB, free: 60 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/0.8566, allocations: 427.4 kB / 0.7098 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002842/0.8594, allocations: 0.8927 MB / 0.7106 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003053/0.8597, allocations: 51.75 kB / 0.7107 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007097/0.8669, allocations: 4.84 MB / 0.7154 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/0.8669, allocations: 19.88 kB / 0.7154 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.8803, allocations: 8.038 MB / 0.7233 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002295/0.8827, allocations: 0.7389 MB / 0.724 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/0.8838, allocations: 48 kB / 0.7241 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/0.8859, allocations: 159.1 kB / 0.7242 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004661/0.8864, allocations: 161.6 kB / 0.7244 GB, free: 340 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000227/0.8866, allocations: 76 kB / 0.7244 GB, free: 264 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004496/0.8911, allocations: 2.014 MB / 0.7264 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8911, allocations: 0 / 0.7264 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006993/0.8981, allocations: 1.125 MB / 0.7275 GB, free: 13.13 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.0008642/0.899, allocations: 190.8 kB / 0.7277 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01058/0.9096, allocations: 6.131 MB / 0.7337 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.9097, allocations: 4 kB / 0.7337 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003525/0.9132, allocations: 2.254 MB / 0.7359 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00389/0.9171, allocations: 451.8 kB / 0.7363 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02932/0.9465, allocations: 12.13 MB / 0.7482 GB, free: 7.797 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007945/0.9545, allocations: 3.83 MB / 0.7519 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/0.9561, allocations: 295.4 kB / 0.7522 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of SimCode: time 1.263e-06/0.9561, allocations: 0 / 0.7522 GB, free: 3.648 MB / 0.5919 GB Notification: Performance of Templates: time 0.3673/1.323, allocations: 86.61 MB / 0.8367 GB, free: 149.2 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