Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 95.95 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 200.1 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1887/0.1887, allocations: 46.19 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002621, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 63.56 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.2505/0.3666, allocations: 44.8 MB / 0.5161 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01756/0.3842, allocations: 9.48 MB / 0.5254 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006874/0.3911, allocations: 189.8 kB / 0.5256 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.3928, allocations: 0.5164 MB / 0.5261 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004873/0.3977, allocations: 1.867 MB / 0.5279 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.3993, allocations: 0.5645 MB / 0.5285 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006564/0.4059, allocations: 6.026 MB / 0.5343 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00473/0.4106, allocations: 3.876 MB / 0.5381 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00203/0.4127, allocations: 1.214 MB / 0.5393 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002251/0.415, allocations: 2.118 MB / 0.5414 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004152/0.4154, allocations: 168.7 kB / 0.5415 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.417, allocations: 0.9326 MB / 0.5425 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.4182, allocations: 1.801 MB / 0.5442 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001758/0.42, allocations: 2.195 MB / 0.5464 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005195/0.4252, allocations: 5.898 MB / 0.5521 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.4252, allocations: 0 / 0.5521 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4252, allocations: 0 / 0.5521 GB, free: 10.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001709/0.4254, allocations: 0 / 0.5521 GB, free: 10.41 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.007292/0.4327, allocations: 4.12 MB / 0.5561 GB, free: 6.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.4328, allocations: 12.03 kB / 0.5562 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/0.4438, allocations: 3.276 MB / 0.5594 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.4483, allocations: 2.345 MB / 0.5616 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.4485, allocations: 256.2 kB / 0.5619 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000874/0.4494, allocations: 332.2 kB / 0.5622 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01907/0.4685, allocations: 12.24 MB / 0.5742 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.4687, allocations: 43.64 kB / 0.5742 GB, free: 3.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005236/0.4692, allocations: 154.2 kB / 0.5744 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/0.4738, allocations: 2.841 MB / 0.5771 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02077/0.4946, allocations: 11.14 MB / 0.588 GB, free: 5.344 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05193/0.5466, allocations: 40.72 MB / 0.6278 GB, free: 11.81 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009298/0.5559, allocations: 4.69 MB / 0.6324 GB, free: 6.902 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003463/0.5594, allocations: 2.428 MB / 0.6347 GB, free: 4.477 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001243/0.5607, allocations: 1.318 MB / 0.636 GB, free: 2.945 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/0.5607, allocations: 56.56 kB / 0.6361 GB, free: 2.883 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.141e-06/0.5608, allocations: 4 kB / 0.6361 GB, free: 2.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04614/0.6069, allocations: 18.67 MB / 0.6543 GB, free: 72 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/0.607, allocations: 77.45 kB / 0.6544 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005476/0.6125, allocations: 3.163 MB / 0.6575 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003876/0.6129, allocations: 69.64 kB / 0.6575 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00225/0.6152, allocations: 3.107 MB / 0.6606 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001226/0.6165, allocations: 0.9782 MB / 0.6615 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000999/0.6175, allocations: 0.519 MB / 0.662 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.6176, allocations: 305.1 kB / 0.6623 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004081/0.6217, allocations: 2.463 MB / 0.6647 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006537/0.6282, allocations: 5.734 MB / 0.6703 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.6395, allocations: 8.988 MB / 0.6791 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/0.6396, allocations: 36 kB / 0.6791 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01817/0.6578, allocations: 9.007 MB / 0.6879 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.658, allocations: 56 kB / 0.688 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002789/0.6583, allocations: 116.1 kB / 0.6881 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003247/0.6616, allocations: 1.046 MB / 0.6891 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004657/0.6662, allocations: 1.349 MB / 0.6904 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007547/0.6738, allocations: 5.135 MB / 0.6954 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003908/0.6777, allocations: 323.7 kB / 0.6958 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009914/0.6788, allocations: 340 kB / 0.6961 GB, free: 1.898 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.004697/0.6835, allocations: 2.423 MB / 0.6984 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006178/0.6841, allocations: 308 kB / 0.6987 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0099/0.694, allocations: 5.371 MB / 0.704 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.35e-05/0.6941, allocations: 47.98 kB / 0.704 GB, free: 9.684 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.6941, allocations: 4 kB / 0.704 GB, free: 9.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.6942, allocations: 7.969 kB / 0.704 GB, free: 9.672 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2716/0.9658, allocations: 13.06 MB / 0.7168 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.53e-05/0.9659, allocations: 10.41 kB / 0.7168 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/0.9679, allocations: 424.6 kB / 0.7172 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002987/0.9709, allocations: 0.8926 MB / 0.7181 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003418/0.9713, allocations: 54.72 kB / 0.7181 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005958/0.9773, allocations: 4.5 MB / 0.7225 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.568e-05/0.9773, allocations: 16.75 kB / 0.7225 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01203/0.9893, allocations: 8.009 MB / 0.7304 GB, free: 184.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007483/0.9901, allocations: 372 kB / 0.7307 GB, free: 184.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004175/0.9906, allocations: 52.61 kB / 0.7308 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.9919, allocations: 149 kB / 0.7309 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.9923, allocations: 175.4 kB / 0.7311 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/0.9925, allocations: 77.44 kB / 0.7312 GB, free: 183.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00289/0.9954, allocations: 1.955 MB / 0.7331 GB, free: 183.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9954, allocations: 0 / 0.7331 GB, free: 183.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004625/1, allocations: 1.061 MB / 0.7341 GB, free: 183.2 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.0006635/1.001, allocations: 204.4 kB / 0.7343 GB, free: 183 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007912/1.009, allocations: 5.997 MB / 0.7402 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/1.009, allocations: 0 / 0.7402 GB, free: 181 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002567/1.011, allocations: 2.255 MB / 0.7424 GB, free: 180.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00677/1.018, allocations: 445.9 kB / 0.7428 GB, free: 180 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.037, allocations: 14.43 MB / 0.7569 GB, free: 171.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003365/1.041, allocations: 3.706 MB / 0.7605 GB, free: 168.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/1.042, allocations: 286.1 kB / 0.7608 GB, free: 167.9 MB / 0.545 GB Notification: Performance of SimCode: time 9.42e-07/1.042, allocations: 0 / 0.7608 GB, free: 167.9 MB / 0.545 GB Notification: Performance of Templates: time 0.08619/1.128, allocations: 83.13 MB / 0.8419 GB, free: 85.43 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches