Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0009462/0.0009463, allocations: 95.17 kB / 18 MB, free: 5.609 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.0008798/0.0008799, allocations: 176.6 kB / 18.91 MB, free: 4.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.3 MB / 243 MB, free: 14.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2139/0.2139, allocations: 44.24 MB / 338.3 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.0003389, allocations: 12 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1083, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.04004/0.1484, allocations: 45.11 MB / 0.5059 GB, free: 4 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2448/0.3932, allocations: 9.577 MB / 0.5152 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.4035, allocations: 192.4 kB / 0.5154 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.4057, allocations: 0.5061 MB / 0.5159 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006818/0.4126, allocations: 1.894 MB / 0.5178 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.4146, allocations: 0.5672 MB / 0.5183 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009549/0.4241, allocations: 6.001 MB / 0.5242 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007273/0.4315, allocations: 3.899 MB / 0.528 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003272/0.4348, allocations: 1.233 MB / 0.5292 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003695/0.4385, allocations: 2.118 MB / 0.5313 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.4397, allocations: 168.2 kB / 0.5314 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.4428, allocations: 0.9481 MB / 0.5323 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002442/0.4453, allocations: 1.83 MB / 0.5341 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003795/0.4491, allocations: 2.209 MB / 0.5363 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007304/0.4564, allocations: 5.952 MB / 0.5421 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4564, allocations: 0 / 0.5421 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.4565, allocations: 0 / 0.5421 GB, free: 13.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003505/0.4568, allocations: 0 / 0.5421 GB, free: 13.95 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01041/0.4672, allocations: 4.155 MB / 0.5462 GB, free: 10.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4673, allocations: 8.031 kB / 0.5462 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01198/0.4793, allocations: 3.28 MB / 0.5494 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005871/0.4852, allocations: 2.376 MB / 0.5517 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002823/0.4855, allocations: 252.4 kB / 0.5519 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00152/0.4871, allocations: 330.6 kB / 0.5522 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/0.5109, allocations: 12.24 MB / 0.5642 GB, free: 7.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002011/0.5111, allocations: 39.64 kB / 0.5642 GB, free: 7.852 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001286/0.5124, allocations: 155.5 kB / 0.5644 GB, free: 7.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005202/0.5177, allocations: 2.84 MB / 0.5672 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02276/0.5404, allocations: 11.14 MB / 0.578 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06639/0.6069, allocations: 40.74 MB / 0.6178 GB, free: 224 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01412/0.621, allocations: 4.683 MB / 0.6224 GB, free: 11.31 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004091/0.6252, allocations: 2.431 MB / 0.6248 GB, free: 8.879 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001586/0.6268, allocations: 1.325 MB / 0.6261 GB, free: 7.34 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.706e-05/0.6269, allocations: 48.56 kB / 0.6261 GB, free: 7.285 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 7.083e-06/0.6269, allocations: 4 kB / 0.6261 GB, free: 7.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.05988/0.6868, allocations: 18.68 MB / 0.6444 GB, free: 4.461 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.6869, allocations: 73.41 kB / 0.6444 GB, free: 4.379 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005877/0.6928, allocations: 3.176 MB / 0.6475 GB, free: 1.191 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005175/0.6933, allocations: 57.7 kB / 0.6476 GB, free: 1.129 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002473/0.6958, allocations: 3.115 MB / 0.6506 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001283/0.6971, allocations: 0.9754 MB / 0.6516 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.6982, allocations: 0.5229 MB / 0.6521 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.6983, allocations: 301.1 kB / 0.6524 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004175/0.7025, allocations: 2.471 MB / 0.6548 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006859/0.7094, allocations: 5.727 MB / 0.6604 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/0.7222, allocations: 8.984 MB / 0.6691 GB, free: 7.828 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.7223, allocations: 32 kB / 0.6692 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01847/0.7408, allocations: 9.01 MB / 0.678 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.741, allocations: 52 kB / 0.678 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002056/0.7412, allocations: 116 kB / 0.6781 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003203/0.7444, allocations: 1.051 MB / 0.6792 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004697/0.7492, allocations: 1.345 MB / 0.6805 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.7564, allocations: 5.141 MB / 0.6855 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004043/0.7605, allocations: 334.4 kB / 0.6858 GB, free: 6.605 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009627/0.7615, allocations: 340 kB / 0.6861 GB, free: 6.273 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,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 (729): * Single equations (assignments): 722 * 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.005185/0.7667, allocations: 2.416 MB / 0.6885 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007443/0.7675, allocations: 308 kB / 0.6888 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/0.7781, allocations: 5.368 MB / 0.694 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.019e-05/0.7782, allocations: 48 kB / 0.6941 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.7782, allocations: 0 / 0.6941 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.107e-05/0.7783, allocations: 15.95 kB / 0.6941 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02742/0.8057, allocations: 13.06 MB / 0.7069 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.14e-05/0.8058, allocations: 16.25 kB / 0.7069 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.8076, allocations: 423.3 kB / 0.7073 GB, free: 376 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2194/1.027, allocations: 0.8877 MB / 0.7081 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006751/1.028, allocations: 54.39 kB / 0.7082 GB, free: 198.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007133/1.035, allocations: 4.5 MB / 0.7126 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.57e-05/1.035, allocations: 17.47 kB / 0.7126 GB, free: 197.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01419/1.049, allocations: 8.011 MB / 0.7204 GB, free: 194.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/1.05, allocations: 364.4 kB / 0.7208 GB, free: 194.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008997/1.051, allocations: 57.23 kB / 0.7208 GB, free: 194.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/1.053, allocations: 159 kB / 0.721 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004674/1.054, allocations: 170 kB / 0.7211 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/1.054, allocations: 75.97 kB / 0.7212 GB, free: 194.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004014/1.058, allocations: 1.958 MB / 0.7231 GB, free: 193.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.058, allocations: 3.875 kB / 0.7231 GB, free: 193.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005531/1.064, allocations: 1.085 MB / 0.7242 GB, free: 193.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 (208): * Single equations (assignments): 201 * 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.0006634/1.064, allocations: 193.8 kB / 0.7244 GB, free: 193.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008989/1.073, allocations: 5.988 MB / 0.7302 GB, free: 191.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.952e-05/1.073, allocations: 7.594 kB / 0.7302 GB, free: 191.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/1.076, allocations: 2.26 MB / 0.7324 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007078/1.083, allocations: 437.9 kB / 0.7329 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/1.104, allocations: 14.45 MB / 0.747 GB, free: 182.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005224/1.109, allocations: 3.706 MB / 0.7506 GB, free: 180.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/1.11, allocations: 288.5 kB / 0.7509 GB, free: 180.4 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/1.11, allocations: 0 / 0.7509 GB, free: 180.4 MB / 0.545 GB Notification: Performance of Templates: time 0.09106/1.201, allocations: 83.31 MB / 0.8322 GB, free: 98.43 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches